public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/45806] New: gcc build failure
@ 2010-09-27 10:54 terry at chem dot gu.se
  2010-09-27 11:10 ` [Bug other/45806] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: terry at chem dot gu.se @ 2010-09-27 10:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45806

           Summary: gcc build failure
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: terry@chem.gu.se
              Host: i686-pc-linux-gnu
            Target: i686-pc-linux-gnu


I find it hard to believe this is actually a gcc bug, but I'm reporting it
anyway because I don't know what else to do.

make for 4.5.1 fails on i686 with Ubuntu 8.04.

I configure with:
../gcc-4.5.1/configure --disable-multilib --enable-languages=c,c++,fortran

After some make progress, I hit this:

make[3]: Leaving directory `/home/tjf/InstallTrees/gcc-4.5.1-build/gcc'
Checking multilib configuration for libgcc...
Configuring stage 1 in i686-pc-linux-gnu/libgcc
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... mawk
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-lipo... lipo
checking for i686-pc-linux-gnu-nm...
/home/tjf/InstallTrees/gcc-4.5.1-build/./gcc/nm
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for i686-pc-linux-gnu-gcc...
/home/tjf/InstallTrees/gcc-4.5.1-build/./gcc/xgcc
-B/home/tjf/InstallTrees/gcc-4.5.1-build/./gcc/
-B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/
-isystem /usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in
`/home/tjf/InstallTrees/gcc-4.5.1-build/i686-pc-linux-gnu/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/tjf/InstallTrees/gcc-4.5.1-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/tjf/InstallTrees/gcc-4.5.1-build'
make: *** [all] Error 2


The gcc that's currently running is:
gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.4-20100323/configure --disable-multilib
--enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.4.4 20100323 (prerelease) (GCC) 


uname -a gives
Linux rscpc28 2.6.24-28-generic #1 SMP Thu Sep 16 15:01:14 UTC 2010 i686
GNU/Linux


What on Earth is going on here?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/45806] gcc build failure
  2010-09-27 10:54 [Bug other/45806] New: gcc build failure terry at chem dot gu.se
@ 2010-09-27 11:10 ` redi at gcc dot gnu.org
  2010-09-27 17:23 ` terry at chem dot gu.se
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2010-09-27 11:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45806

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2010.09.27 09:13:07
               date|                            |
     Ever Confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-09-27 09:13:07 UTC ---
(In reply to comment #0)
> checking for suffix of object files... configure: error: in
> `/home/tjf/InstallTrees/gcc-4.5.1-build/i686-pc-linux-gnu/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.

Like it says, see config.log for more details, it could be a number of things.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/45806] gcc build failure
  2010-09-27 10:54 [Bug other/45806] New: gcc build failure terry at chem dot gu.se
  2010-09-27 11:10 ` [Bug other/45806] " redi at gcc dot gnu.org
@ 2010-09-27 17:23 ` terry at chem dot gu.se
  2010-09-27 17:44 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: terry at chem dot gu.se @ 2010-09-27 17:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45806

--- Comment #3 from terry at chem dot gu.se 2010-09-27 12:23:45 UTC ---
I could see nothing in config.log that looked to my untrained eye like the
problem, so I didn't attach it before.  Here it is.  What am I missing here?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/45806] gcc build failure
  2010-09-27 10:54 [Bug other/45806] New: gcc build failure terry at chem dot gu.se
  2010-09-27 11:10 ` [Bug other/45806] " redi at gcc dot gnu.org
  2010-09-27 17:23 ` terry at chem dot gu.se
@ 2010-09-27 17:44 ` redi at gcc dot gnu.org
  2010-09-27 17:48 ` terry at chem dot gu.se
  2010-09-27 17:50 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2010-09-27 17:44 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45806

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-09-27 12:31:53 UTC ---
That looks like the top-level log, the problem is while configuring libgcc, so
you need to look in i686-pc-linux-gnu/libgcc/config.log


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/45806] gcc build failure
  2010-09-27 10:54 [Bug other/45806] New: gcc build failure terry at chem dot gu.se
                   ` (2 preceding siblings ...)
  2010-09-27 17:44 ` redi at gcc dot gnu.org
@ 2010-09-27 17:48 ` terry at chem dot gu.se
  2010-09-27 17:50 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: terry at chem dot gu.se @ 2010-09-27 17:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45806

terry at chem dot gu.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #5 from terry at chem dot gu.se 2010-09-27 13:13:43 UTC ---
OK, this is a bit strange.

The offending error is:
/home/tjf/InstallTrees/gcc-4.5.1-build/./gcc/cc1: error while loading shared
libraries: libmpc.so.2: cannot open shared object file: No such file or
directory

Now libmpc.so.2 -> libmpc.so.2.0.0 both exist in /usr/local/lib, along with all
the other libraries that are regularly linked to.  Back up in the top-level
config.log we have
configure:5665: gcc -o conftest -g -O2    conftest.c  -lmpc -lmpfr -lgmp >&5
which worked happily.

/usr/local/lib is listed in /etc/ld.so.conf.d/libc.conf and usually works. 
LD_LIBRARY_PATH is unset.

Explicitly setting LD_LIBRARY_PATH to /usr/local/lib has gcc compiling past
this point as we speak.

I've never before had library path issues on this machine.  On a very similar
x86_64 machine (that has LD_LIBRARY_PATH explicitly set by default) 4.5.1
compiled without issue.

I'll close this now, but will nonetheless welcome any comments anyone wants to
make that might shed light on why my configuration appears to have gone
selectively bung.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/45806] gcc build failure
  2010-09-27 10:54 [Bug other/45806] New: gcc build failure terry at chem dot gu.se
                   ` (3 preceding siblings ...)
  2010-09-27 17:48 ` terry at chem dot gu.se
@ 2010-09-27 17:50 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-09-27 17:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45806

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-09-27 14:02:11 UTC ---
Perhaps you didn't run /sbin/ldconfig after installing libmpc.so.2 into
/usr/local/lib ?


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-27 14:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-27 10:54 [Bug other/45806] New: gcc build failure terry at chem dot gu.se
2010-09-27 11:10 ` [Bug other/45806] " redi at gcc dot gnu.org
2010-09-27 17:23 ` terry at chem dot gu.se
2010-09-27 17:44 ` redi at gcc dot gnu.org
2010-09-27 17:48 ` terry at chem dot gu.se
2010-09-27 17:50 ` jakub at gcc dot gnu.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).