Skip to content

Instantly share code, notes, and snippets.

@maxlevesque
Last active May 3, 2024 23:53
Show Gist options
  • Save maxlevesque/5813df2fcee107c757f4 to your computer and use it in GitHub Desktop.
Save maxlevesque/5813df2fcee107c757f4 to your computer and use it in GitHub Desktop.
how to build gcc from sources
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment