GCC

From CLONWiki
Revision as of 13:56, 12 July 2017 by Boiarino (talk | contribs)
Jump to navigation Jump to search

GCC installation:


  • download gmp-4.3.2.tar.bz2, mpfr-2.4.2.tar.bz2, mpc-0.8.1.tar.gz (similar place, for example http://mirrors.concertpass.com/gcc/infrastructure/), copy to /apps and untar
  • cd gmp-4.3.2, type './configure --prefix=/apps/gmp-4.3.2', 'make' and 'make install'
  • cd mpfr-2.4.2, type './configure --prefix=/apps/mpfr-2.4.2', 'make' and 'make install'
  • cd mpc-0.8.1, type './configure --prefix=/apps/mpc-0.8.1', 'make' and 'make install'

OR ???

  • yum install gmp-devel
  • yum install mpfr-devel


  • copy gcc-4.9.4.tar.gz to /apps/gcc/ and untar
  • cd gcc-4.9.4
  • ./configure --prefix=/apps/gcc/4.9.4 --with-gmp=/apps/gmp-4.3.2 --with-mpfr=/apps/mpfr-2.4.2 --with-mpc=/apps/mpc-0.8.1 --disable-multilib --enable-languages=c,c++,fortran
  • make
  • make install




info from Kelvin:

#
# Quick note on how I built gcc 4.9.2
#
0) ensure the environment variable CCC does *not* exist prior to configure
1) make sure /apps/(gmp, mpc, mpfr, isl) exist
2) foreach (gmp, mpc, mpfr, isl) create lib/shared and mv *.so* into it
   -- This is so that gcc links (statically) with the required libraries and,
   thus, does not need to have LD_LIBRARY_PATH set for compiling.
3) setup a separate build environment for gcc (gcc-4.9.2-obj)
3) do the configure (note that this only builds teh 64bit gcc compiler):
   ../gcc-4.9.2/configure --prefix=/apps/gcc/4.9.2 --with-gmp=/apps/gmp --with-mpfr=/apps/mpfr --with-mpc=/apps/mpc --with-isl=/apps/isl/0.12.2 --disable-multilib --enable-languages=c,c++,fortran
4) make
5) make install
6) make clean
7) go back and mv [gmp, mpc, mpfr, isl]/lib/shared/*.so* to appropriate lib area
8) Create /site/cuesw/gcc/4.9.2/use.conf