Re: GCC-4.3.0 install from src fails during "make"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sangamesh B wrote:
> On Thu, Oct 23, 2008 at 8:28 PM, Andrew Haley <aph@xxxxxxxxxx> wrote:
>> 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

^^^ This is weird.  It's getting all this stuff from somewhere.

It should be

checking for x86_64-unknown-linux-gnu-gcc... (cached) gcc

>>> 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.
>>
> I unset all environment variables. Did configure & make. But it fails
> at same point.

OK, please delete the build dir, then re-run configure.

We need to see the output of configure.  It should look like

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
...

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux