Hi Jonathan, Thanks for your consideration. GCC: current gcc ============== Simple answer: 4.4.7 Full answer: ---------------- Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) OS: ==== Linux 2.6.32-431.17.1.el6.x86_64 System: ======= Intel Xeon E5-2620 @ 2 GHz And your last question: yes I have tried with not disabling bootstraping. But I got exactly same output. =========== Right now, I think I have overcome above issue. But, a new issue comes up. It is shown in here. It seems the issue is about LibGOMP (which I need it). ===================== ... checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: in `/home/sarood1/millad/gcc-build/x86_64-unknown-linux-gnu/libgomp': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[1]: *** [configure-target-libgomp] Error 1 make[1]: Leaving directory `/home/sarood1/millad/gcc-build' make: *** [all] Error 2 BTW, the configure command is shown below: =================================== /home/sarood1/millad/gcc-5.1.0/configure --prefix=/home/sarood1/millad/gcc-build/ --enable-languages=c,c++,fortran --disable-bootstrap --disable-libsanitizer --disable-nls --disable-multilib --disable-libcilkrts --with-system-zlib --enable-threads=posix --enable-checking=release --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,fortran --disable-dssi --with-ppl --with-cloog --host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu Any idea how to solve it? Thanks in advance, Millad On Tue, Jun 9, 2015 at 4:03 AM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: > 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?