Wednesday, September 05, 2012

[gnwwpiug] Compiling gcc from svn

Some notes on compiling gcc from subversion:

Ubuntu Precise 12.04 AMD64

time svn checkout -q svn://gcc.gnu.org/svn/gcc/trunk gcc

real 32m7.837s
user 1m4.044s
sys 0m30.038s

1070274560 gcc-svn-190962.tar
87758868 gcc-svn-190962.tar.xz
/afs/sipb.mit.edu/project/gcc-4.0/.build/tarballs/gcc-svn-190962.tar.xz

apt-get install libmpfr-dev
apt-get install libmpc-dev
apt-get install flex
apt-get install libc6-dev-i386
# installs the symlink /usr/include/bits -> x86_64-linux-gnu/bits

../gcc/configure --prefix=/tmp/bleeding-edge-gcc --enable-languages=c,c++

LIBRARY_PATH=/usr/lib/x86_64-linux-gnu nice -19 time make -j16

7787.91user 244.98system 25:48.10elapsed 518%CPU (0avgtext+0avgdata 1493216maxresident)k
466528inputs+13075928outputs (6740major+145722530minor)pagefaults 0swaps

No comments :