-
Notifications
You must be signed in to change notification settings - Fork 7
GCC
Shawfeng Dong edited this page Nov 4, 2016
·
2 revisions
Note:
Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify their locations. Source code for these libraries can be found at their respective hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also http://gcc.gnu.org/install/prerequisites.html for additional info. If you obtained GMP, MPFR and/or MPC from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages.
$ tar xvfj gcc-4.8.4.tar.bz2 $ cd gcc-4.8.4 $ tar xvfj ../gmp-4.3.2.tar.bz2 $ tar xvfj ../mpfr-2.4.2.tar.bz2 $ tar xvfz ../mpc-0.8.1.tar.gz $ tar xvfj ../isl-0.14.tar.bz2 $ mv gmp-4.3.2 gmp $ mv mpfr-2.4.2 mpfr $ mv mpc-0.8.1 mpc $ mv isl-0.14 isl $ ./configure --prefix=/pfs/sw/gcc/4.8.4 --disable-multilib $ make -j8 $ make install
$ tar xvfj gcc-4.9.2.tar.bz2 $ cd gcc-4.9.2 $ tar xvfj ../gmp-4.3.2.tar.bz2 $ tar xvfj ../mpfr-2.4.2.tar.bz2 $ tar xvfz ../mpc-0.8.1.tar.gz $ tar xvfj ../isl-0.14.tar.bz2 $ mv gmp-4.3.2 gmp $ mv mpfr-2.4.2 mpfr $ mv mpc-0.8.1 mpc $ mv isl-0.14 isl $ ./configure --prefix=/pfs/sw/gcc/4.9.2 --disable-multilib $ make -j8 $ make install