wget https://mirrors.ustc.edu.cn/golang//go1.13.3.linux-amd64.tar.gz sha256sum go1.13.3.linux-amd64.tar.gz tar -xvzf go1.8.1.linux-amd64.tar.gz -C ~/bin/go
add the following paths to .zshrc export GOROOT=~/bin/go export PATH=$GOROOT/bin:$PATH
GCC
1 2 3 4 5 6 7 8
wget https://ftp.gnu.org/gnu/gcc/gcc-8.1.0/gcc-8.1.0.tar.gz tar -zxvf gcc-8.1.0.tar.gz cd gcc-8.1.0 ./configure --prefix=~/bin/gcc-8.1.0 make make install gcc --version which gcc
syzkaller
1 2 3 4 5 6 7 8
set $GOPATH source ~/.zshrc go get -u -d github.com/google/syzkaller/... cd $GOPATH/src/github.com/google/syzkaller make
find compiled binaries in the $GOPATH/bin dir.
Linux Kernel
1 2
git clone https://mirrors.tuna.tsinghua.edu.cn/git/linux.git cd ~/source/linux
GCC
1 2
make CC="$GCC/bin/gcc" defconfig make CC="$GCC/bin/gcc" kvmconfig
Clang
1 2 3 4
make CC="$CLANGBIN/bin/clang" defconfig make CC="$CLANGBIN/bin/clang" kvmconfig make CC="$CLANGBIN/bin/clang" oldconfig make CC="$CLANGBIN/bin/clang" -j64