public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "david dot kirkby at onetel dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/40360]  New: configure: error: cannot compute suffix of object files: cannot compile
Date: Sat, 06 Jun 2009 14:32:00 -0000	[thread overview]
Message-ID: <bug-40360-16025@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2009-06-06 14:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-06 14:32 david dot kirkby at onetel dot net [this message]
2009-06-13 19:14 ` [Bug bootstrap/40360] " pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-40360-16025@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).