somehow gcc-4.3.0 fails to build on sparc-solaris. gcc-4.[012].x and
gcc-3.4.x worked without problems, but this looks somehow weird,
especially as I am unable to find anything in the config.log that shows
what goes wrong.
I did the following:
$ ../gcc-4.3.0/configure --prefix=/opt/local --without-gnu-as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as
--with-mpfr=/opt/csw --with-gmp=/opt/csw --enable-languages=c,c++
CC=/usr/sfw/bin/gcc CFLAGS=-O2 CXX=/usr/sfw/bin/gcc CXXFLAGS=-O2
[snip]
$ gmake
[snip]
gmake[3]: Leaving directory `/opt/local/src/gcc43-native/gcc'
Checking multilib configuration for libgcc...
Configuring stage 1 in sparc-sun-solaris2.10/libgcc
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /opt/sfw/bin/install -c
checking for gawk... gawk
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for sparc-sun-solaris2.10-ar...
/opt/local/sparc-sun-solaris2.10/bin/ar
checking for sparc-sun-solaris2.10-lipo... lipo
checking for sparc-sun-solaris2.10-nm...
/opt/local/src/gcc43-native/./gcc/nm
checking for sparc-sun-solaris2.10-ranlib...
/opt/local/sparc-sun-solaris2.10/bin/ranlib
checking for sparc-sun-solaris2.10-strip...
/opt/local/sparc-sun-solaris2.10/bin/strip
checking whether ln -s works... yes
checking for sparc-sun-solaris2.10-gcc...
/opt/local/src/gcc43-native/./gcc/xgcc
-B/opt/local/src/gcc43-native/./gcc/
-B/opt/local/sparc-sun-solaris2.10/bin/
-B/opt/local/sparc-sun-solaris2.10/lib/ -isystem
/opt/local/sparc-sun-solaris2.10/include -isystem
/opt/local/sparc-sun-solaris2.10/sys-include
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.
gmake[2]: *** [configure-stage1-target-libgcc] Error 1
gmake[2]: Leaving directory `/opt/local/src/gcc43-native'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/opt/local/src/gcc43-native'
gmake: *** [all] Error 2
it doesn't matter if 'env CONFIG_SHELL=/bin/bash' is prefixed to
'./configure bla bla' or not. Passing AR=/usr/ccs/bin/as and friends
doesn't help anything, too.
Any ideas, what might be wrong?
- Thomas
> checking forsuffixof object files... configure: error: cannotcomputesuffixof object files: cannot compile
Check out this bug report:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35577
Specifically, find the right config.log (http://gcc.gnu.org/bugzilla/
show_bug.cgi?id=35577#c2)
Then verify it's not finding libmpfr.so.1 because a host-type
directory is being interpolated.
Then fix by adding the mpfr lib dir to LD_LIBRARY_PATH.