public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/40360] New: configure: error: cannot compute suffix of object files: cannot compile
@ 2009-06-06 14:32 david dot kirkby at onetel dot net
2009-06-13 19:14 ` [Bug bootstrap/40360] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: david dot kirkby at onetel dot net @ 2009-06-06 14:32 UTC (permalink / raw)
To: gcc-bugs
First, this bug report is very similar to the closed bug 35693. I could find no
way to re-open that bug report, and in any case this is a different version of
gcc, a different machine etc.
I believe the 'solution' given there, which involves setting LD_LIBRARY_PATH is
not really the right answer, and instead the code should be fixed.
LD_LIBRARY_PATH should be used as a last resort - see for example
'Why LD_LIBRARY_PATH is bad'
http://xahlee.org/UnixResource_dir/_/ldpath.html
'The evil LD_LIBRARY_PATH'
http://www.sunmanagers.org/pipermail/sunmanagers/2002-May/014159.html
gcc has been told the location of the library with switches - it should not
need LD_LIBRARY_PATH set.
This bug comes up time and again. Numerous people find it. Really the code
should be fixed, and not workarounds suggested.
../gcc-4.4.0/configure --with-gnu-as --with-as=/usr/sfw/bin/gas --with-gnu-ld
--with-ld=/usr/sfw/bin/gld
--with-gmp=/usr/local/gmp-4.3.1-Solaris-10-u4-ABI=32-gcc-3.4.3
--with-mpfr=/usr/local/mpfr-2.4.1p5-Solaris-10-u4-gcc-3.4.3
--enable-languages=c,c++,fortran --prefix=/usr/local/gcc-4.4.0
fails with:
checking for sparc-sun-solaris2.10-strip... strip
checking whether ln -s works... yes
checking for sparc-sun-solaris2.10-gcc...
/home/kirkby/build-gcc-4.4.0/./gcc/xgcc -B/home/kirkby/build-gcc-4.4.0/./gcc/
-B/usr/local/gcc-4.4.0/sparc-sun-solaris2.10/bin/
-B/usr/local/gcc-4.4.0/sparc-sun-solaris2.10/lib/ -isystem
/usr/local/gcc-4.4.0/sparc-sun-solaris2.10/include -isystem
/usr/local/gcc-4.4.0/sparc-sun-solaris2.10/sys-include
checking for suffix of object files... configure: error: in
`/home/kirkby/build-gcc-4.4.0/sparc-sun-solaris2.10/libgcc':
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 `/home/kirkby/build-gcc-4.4.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/kirkby/build-gcc-4.4.0'
make: *** [bootstrap] Error 2
--
Summary: configure: error: cannot compute suffix of object files:
cannot compile
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: david dot kirkby at onetel dot net
GCC host triplet: Sun T5240
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40360
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-13 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-06 14:32 [Bug bootstrap/40360] New: configure: error: cannot compute suffix of object files: cannot compile david dot kirkby at onetel dot net
2009-06-13 19:14 ` [Bug bootstrap/40360] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).