I was trying to use gcc 5.4, mostly to use the latest cilk version.
Here are some notes on what needs to be set up in order for gcc to compile (assuming the compiler is already built)
The variables that need to be set up are
(prepend to LD_LIBRARY_PATH to make sure that no older gcc libs are used)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: path/mpc-1.0.3/lib: path/mpfr-2.4.2/lib:path/gmp-4.3.2/lib
To see the dependencies of gcc5.4
Using built-in specs.
Configured with: ./configure –prefix=path/gcc-5.4 –with-gmp=path/gmp-4.3.2/ –with-mpc=path/mpc-1.0.3/ –with-mpfr=path/mpfr-2.4.2/ –program-suffix=-5.4 –enable-languages=c,c++,fortran –disable-werror –disable-bootstrap –enable-multilib –enable-threads=posix
Thread model: posix
gcc version 5.4.0 (GCC)