Things required:
- Linux headers: https://cdn.kernel.org/pub/linux/kernel/
- Binutils: https://www.gnu.org/software/binutils/
- GCC: https://www.gnu.org/software/gcc/
- glibc: https://www.gnu.org/software/libc/
| sudo apt install libgmp-dev libmpc-dev libisl-dev libmpfr-dev | |
| # change 6.3 to anything you'd like | |
| wget http://mirrors-usa.go-parts.com/gcc/releases/gcc-6.3.0/gcc-6.3.0.tar.bz2 | |
| tar jxvf gcc-6.3.0.tar.bz2 | |
| mkdir objdir | |
| cd objdir | |
| # change /tmp/mygcc6.3 to any output folder you'd like | |
| ../gcc-6.3.0/configure --prefix=/tmp/mygcc6.3 --disable-multilib --disable-werror | |
| make -j | |
| make install |
| sudo apt update && \ | |
| sudo apt install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
| sudo apt update && \ | |
| sudo apt install gcc-6 g++-6 -y && \ | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \ | |
| gcc -v |
| #! /bin/bash | |
| # | |
| # build-xnu-6153.11.26.sh | |
| # Scott Knight | |
| # | |
| # Based on the script by Brandon Azad | |
| # https://gist.github.com/bazad/654959120a423b226dc564073b435453 | |
| # | |
| # A script showing how to build XNU version 6153.11.26 on macOS Catalina | |
| # 10.15 with Xcode 11.13.1. |
| #!/bin/bash | |
| url=http://redefininggod.com | |
| webarchive=https://web.archive.org | |
| wget="wget -e robots=off -nv" | |
| tab="$(printf '\t')" | |
| additional_url=url.list | |
| # Construct listing.txt from url.list | |
| # The list of archived pages, including some wildcard url |
| #!/bin/bash | |
| export TARGET=amd64-marcel-freebsd9.2 | |
| export PREFIX=/usr/cross-build | |
| export TARGET_PREFIX=$PREFIX/$TARGET | |
| export PATH=$PATH:$PREFIX/bin | |
| mkdir -p $TARGET_PREFIX{,/lib,/include} | |
| mkdir build-{binutils,gmp,mpfr,mpci,gcc} |
| # If you're looking to preserve the existing branches and commit history, here's one way that worked for me. | |
| git clone --mirror https://github.com/account/repo.git cloned-repo | |
| cd cloned-repo | |
| git push --mirror {URL of new (empty) repo} | |
| # at this point only remote cloned-repo is correct, local has auto-generated repo structure with folders such as "branches" or "refs" | |
| cd .. | |
| rm -rf cloned-repo | |
| git clone {URL of new (empty) repo} |
| #!/bin/sh | |
| clear | |
| # Preparing the build environment | |
| # https://github.com/fuchsia-mirror/manifest#prerequisites | |
| # https://github.com/fuchsia-mirror/magenta/blob/master/docs/getting_started.md#preparing-the-build-environment | |
| sudo apt-get install golang git-all curl texinfo libglib2.0-dev autoconf libtool libsdl-dev build-essential | |
| # Creating a new checkout (https://github.com/fuchsia-mirror/manifest#creating-a-new-checkout) | |
| curl -s https://raw.githubusercontent.com/vanadium/go.jiri/master/scripts/bootstrap_jiri | bash -s fuchsia |
Things required:
| #! /bin/bash | |
| curl http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz -O | |
| tar xvzf llvm-6.0.0.src.tar.xz | |
| rm llvm-6.0.0.src.tar.xz | |
| cd llvm-6.0.0.src | |
| # get clang | |
| pushd tools | |
| curl http://releases.llvm.org/6.0.0/cfe-6.0.0.src.tar.xz -O |
| build-* | |
| clang | |
| compiler-rt | |
| install | |
| libcxx | |
| libcxxabi | |
| libomp | |
| libunwind | |
| lld | |
| llvm |