2010年6月8日 星期二

How to build older gcc - build gcc 3.4.6 by using gcc 4.3.2

How to build gcc
http://www.faqs.org/docs/ldev/0130091154_71.htm

unzip file
./configure
(or ./configure --prefix=/home/nelsonchung/gcc)
make bootstrap

make install (將會把build好的gcc移到之前所定義的prefix地方) 



log
nelsonchung@debian:~/gcc/Binary/gcc-3.4.6/bin$ ./gcc -v
Reading specs from /home/nelsonchung/gcc/Binary/gcc-3.4.6/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/specs
Configured with: ./configure --prefix=/home/nelsonchung/gcc
Thread model: posix
gcc version 3.4.6
nelsonchung@debian:~/gcc/Binary/gcc-3.4.6/bin$ gcc
gcc: no input files
nelsonchung@debian:~/gcc/Binary/gcc-3.4.6/bin$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
nelsonchung@debian:~/gcc/Binary/gcc-3.4.6/bin$

透過Facebook分享

沒有留言: