This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC-4.3.0 install from src fails during "make"
- From: Andrew Haley <aph at redhat dot com>
- To: Sangamesh B <forum dot san at gmail dot com>
- Cc: gcc ML <gcc-help at gcc dot gnu dot org>
- Date: Thu, 23 Oct 2008 15:58:40 +0100
- Subject: Re: GCC-4.3.0 install from src fails during "make"
- References: <cb60cbc40810230729g1f2502ccu9b02d5512357588e@mail.gmail.com>
Sangamesh B wrote:
> Hello everyone,
>
> I'm trying to install GCC-4.3.0 from source on Rocks-5.0. Rocks
> is a clustering tool based on Cent OS 5.0 LINUX.
>
> The configure is:
>
> # /export/packages/compilers/GNU/gcc-4.3.0/configure
> --with-mpfr=/export/packages/compilers/GNU/mpfr
> --with-gmp=/export/packages/compilers/GNU/gmp
> --enable-languages=c,c++,fortran | tee gcc430_ccf_config_out
>
> During make, its failing with following error:
>
> checking for --enable-version-specific-runtime-libs... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gawk... gawk
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking for x86_64-unknown-linux-gnu-ar... ar
> checking for x86_64-unknown-linux-gnu-lipo... lipo
> checking for x86_64-unknown-linux-gnu-nm...
> /export/packages/compilers/GNU/gcc430/./gcc/nm
> checking for x86_64-unknown-linux-gnu-ranlib... ranlib
> checking for x86_64-unknown-linux-gnu-strip... strip
> checking whether ln -s works... yes
> checking for x86_64-unknown-linux-gnu-gcc...
> /export/packages/compilers/GNU/gcc430/./gcc/xgcc
> -B/export/packages/compilers/GNU/gcc430/./gcc/
> -B/usr/local/x86_64-unknown-linux-gnu/bin/
> -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
> /usr/local/x86_64-unknown-linux-gnu/include -isystem
> /usr/local/x86_64-unknown-linux-gnu/sys-include
> checking for suffix of object files... configure: error: cannot
> compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[2]: *** [configure-stage1-target-libgcc] Error 1
> make[2]: Leaving directory `/export/packages/compilers/GNU/gcc430'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/export/packages/compilers/GNU/gcc430'
> make: *** [all] Error 2
>
> For more details, attached here the config.log.
>
> Can anyone point out why its failing?
You have the environment variable CC set to something very weird.
Andrew.