On 9 June 2015 at 05:12, Millad Ghane <millad.mg@xxxxxxxxx> wrote: > Hi all, > > I am trying to install GCC 5.1 version on our system. I followed the > instructions on the GCC FAQ page (configure section). The only > difference is that due to some restrictions on our system to access > Internet, I manually downloaded those three prerequisite packages > (GMP, MPFR, and MPC) and untar'ed them into the gcc folder. So, I have > something like this: > gcc-5.1.0 -> gcc files > gcc-5.1.0/gmp -> latest gmp files > gcc-5.1.0/mpfr -> latest mpfr files > gcc-5.1.0/mpc -> latest mpc files > > What I am trying to say is that I removed the version numbers to make > them visible to gcc build system. > > This is the configuration command: > /home/millad/gcc-5.1.0/configure --prefix=/home/millad/gcc-build/ > --enable-languages=c,c++,fortran --disable-bootstrap > > But, I still get an error about sanitizer: > g++: braced spec '%:sanitize(address):%{!shared:libasan_preinit%O%s} > %{static-libasan:%{!shared:-Bstatic --whole-archive -lasan > --no-whole-archive -Bdynamic}}%{!static-libasan:-lasan}} > %{%:sanitize(thread):%{static-libtsan:%{!shared:-Bstatic > --whole-archive -ltsan --no-whole-archive > -Bdynamic}}%{!static-libtsan:-ltsan}} > %{%:sanitize(leak):%{static-liblsan:%{!shared:-Bstatic --whole-archive > -llsan --no-whole-archive -Bdynamic}}%{!static-liblsan:-llsan}}' is > invalid at '%' > > Any ideas how to solve this issue? This looks like the same error described at https://gcc.gnu.org/ml/gcc-help/2014-12/msg00028.html which suggests the existing GCC being used to build the new one cannot parse the spec file. What version of GCC do you have installed currently, and what type of OS and hardware are you using? Have you tried building without the --disable-bootstrap option?