Summary: | configure: error: cannot compute suffix of object files | ||
---|---|---|---|
Product: | gcc | Reporter: | Al Danial <al.danial> |
Component: | bootstrap | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | gcc-bugs, info |
Priority: | P3 | ||
Version: | 4.3.0 | ||
Target Milestone: | --- | ||
Host: | x86_64-unknown-linux-gnu | Target: | x86_64-unknown-linux-gnu |
Build: | x86_64-unknown-linux-gnu | Known to work: | |
Known to fail: | Last reconfirmed: | ||
Attachments: |
config.log
x86_64-unknown-linux-gnu/libgcc/config.log |
Description
Al Danial
2008-03-13 20:43:10 UTC
Created attachment 15310 [details]
config.log
You attached the wrong config.log. We need the one in the x86_64-unknown-linux-gnu/libgcc subdirectory where configure is failing. Created attachment 15312 [details] x86_64-unknown-linux-gnu/libgcc/config.log The error in x86_64-unknown-linux-gnu/libgcc/config.log suggests it has trouble loading libmpfr.so.1. However the MPFR libraries exist under the "--with-mpfr=" directory I gave to the configure script: > ll /apps/mpfr/2.3.0/lib/ total 3420 drwxr-sr-x 2 s116493 mis 4096 Nov 26 13:44 ./ drwxr-sr-x 5 s116493 mis 4096 Nov 26 13:44 ../ -rw-r--r-- 1 s116493 mis 2409846 Nov 26 13:44 libmpfr.a -rwxr-xr-x 1 s116493 mis 866 Nov 26 13:44 libmpfr.la* lrwxrwxrwx 1 s116493 mis 16 Nov 26 13:44 libmpfr.so -> libmpfr.so.1.1.0* lrwxrwxrwx 1 s116493 mis 16 Nov 26 13:44 libmpfr.so.1 -> libmpfr.so.1.1.0* -rwxr-xr-x 1 s116493 mis 1062796 Nov 26 13:44 libmpfr.so.1.1.0* Subject: Re: configure: error: cannot compute suffix of
object files
al dot danial at gmail dot com wrote:
> The error in x86_64-unknown-linux-gnu/libgcc/config.log suggests it has trouble
> loading libmpfr.so.1. However the MPFR libraries exist under the
> "--with-mpfr=" directory I gave to the configure script:
The fact that they exist there doesn't mean the dynamic loader can find
them unless you tell it. Have you set LD_LIBRARY_PATH? Or edited
ld.conf?
Indeed, adding the MPFR and GPM lib directories to LD_LIBRARY_PATH solves the problem. For some reason I thought configure would handle this for me since I gave it --with-gmp and --with-mpfr settings. Would have been nice if configure tested for this and given a helpful error. In any event I'll close this out as an invalid bug report. Subject: Re: configure: error: cannot compute suffix of
object files
al dot danial at gmail dot com wrote:
> Indeed, adding the MPFR and GPM lib directories to LD_LIBRARY_PATH solves the
> problem. For some reason I thought configure would handle this for me since I
It's the same case when installing any shared library on the system --
you have to inform the dynamic linker of their location (or put them
somewhere it already knows to search) otherwise programs that use that
library can't run. Configure doesn't really know how you want to handle
this: adding a path to LD_LIBRARY_PATH is but one way; you could also
add the path to ld.so.conf, or relink the libraries with the path
hardcoded (RPATH). It wouldn't be very prudent to have configure assume
that it should be adding things to LD_LIBRARY_PATH.
The reason the configure checks succeeded is they are checking for
compile time and link time behavior, i.e. they are exercising the link
editor (ld) not the dynamic linker (ld.so). I suppose it would be
possible for configure to try an additional execute check for sanity if
it's not crosscompiling. But the best you could do there is report a
problem, as again fixing it is outside of the realm of configure.
|