public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug bootstrap/39273] New: cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0,
@ 2009-02-23 15:06 rvatne at gmail dot com
2009-02-23 15:08 ` [Bug bootstrap/39273] " rvatne at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: rvatne at gmail dot com @ 2009-02-23 15:06 UTC (permalink / raw)
To: gcc-bugs
The configure options:
/t3-0/shared/gnu/gcc-4.3.3/configure --prefix=/t3-0/shared/gnu/gcc-trunk
--srcdir=/t3-0/shared/gnu/gcc-4.3.3 --enable-languages=c,fortran
--with-mpfr=/usr/local --with-gmp=/usr/local --with-pkgversion=432
--disable-bootstrap CC=gcc
Using this compiler:
>gcc -v
Reading specs from /t3-0/local/bin/../lib/gcc/sparc-sun-solaris2.7/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
gmake output:
gmake[2]: Leaving directory `/t3-0/shared/gnu/gcc-bld3/gcc'
Checking multilib configuration for libgcc...
mkdir sparc-sun-solaris2.8
mkdir sparc-sun-solaris2.8/libgcc
Configuring in sparc-sun-solaris2.8/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /t3-0/shared/gnu/gcc-4.3.3/install-sh
-c
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for sparc-sun-solaris2.8-ar... ar
checking for sparc-sun-solaris2.8-lipo... lipo
checking for sparc-sun-solaris2.8-nm... /t3-0/shared/gnu/gcc-bld3/./gcc/nm
checking for sparc-sun-solaris2.8-ranlib... ranlib
checking for sparc-sun-solaris2.8-strip... strip
checking whether ln -s works... yes
checking for sparc-sun-solaris2.8-gcc... /t3-0/shared/gnu/gcc-bld3/./gcc/xgcc
-B/t3-0/shared/gnu/gcc-bld3/./gcc/
-B/t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/bin/
-B/t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/lib/ -isystem
/t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/include -isystem
/t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/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[1]: *** [configure-target-libgcc] Error 1
gmake[1]: Leaving directory `/t3-0/shared/gnu/gcc-bld3'
gmake: *** [all] Error 2
looking in configure.log in sparc-sun-solaris2.8/libgcc
configure:2567: checking for suffix of object files
configure:2588: /t3-0/shared/gnu/gcc-bld3/./gcc/xgcc
-B/t3-0/shared/gnu/gcc-bld3/./gcc/
-B/t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/bin/ -B/t3-0/shared/gnu/g
cc-trunk/sparc-sun-solaris2.8/lib/ -isystem
/t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/include -isystem
/t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/sys-in
clude -c -O2 -g -g -O2 conftest.c >&5
ld.so.1: cc1: fatal: .libs/libmpfr.so.1.2.0: open failed: No such file or
directory
xgcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:2591: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2604: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
It seems that the newly buildt "xgcc" does not use the LD_LIBRARY_PATH to find
the "libmpfr.so.1.2.0" library, but instead prepends at fixed path (.libs/).
--
Summary: cc1 Cannot find library mpfr. ".libs" prepended to
library name libmpfr.so.1.2.0,
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rvatne at gmail dot com
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39273
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/39273] cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, 2009-02-23 15:06 [Bug bootstrap/39273] New: cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, rvatne at gmail dot com @ 2009-02-23 15:08 ` rvatne at gmail dot com 2009-02-23 15:09 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rvatne at gmail dot com @ 2009-02-23 15:08 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from rvatne at gmail dot com 2009-02-23 15:08 ------- Created an attachment (id=17347) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17347&action=view) the failing config.log the config.log from sparc-sun-solaris2.8/libgcc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39273 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/39273] cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, 2009-02-23 15:06 [Bug bootstrap/39273] New: cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, rvatne at gmail dot com 2009-02-23 15:08 ` [Bug bootstrap/39273] " rvatne at gmail dot com @ 2009-02-23 15:09 ` pinskia at gcc dot gnu dot org 2009-02-23 15:19 ` rvatne at gmail dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2009-02-23 15:09 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2009-02-23 15:09 ------- No the .libs/libmpfr.so.1.2.0 is embeded into libmpfr.so.1.2.0 . So something is incorrect in your building of MPRF. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39273 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/39273] cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, 2009-02-23 15:06 [Bug bootstrap/39273] New: cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, rvatne at gmail dot com 2009-02-23 15:08 ` [Bug bootstrap/39273] " rvatne at gmail dot com 2009-02-23 15:09 ` pinskia at gcc dot gnu dot org @ 2009-02-23 15:19 ` rvatne at gmail dot com 2009-02-23 15:23 ` pinskia at gcc dot gnu dot org 2009-02-24 15:01 ` rvatne at gmail dot com 4 siblings, 0 replies; 6+ messages in thread From: rvatne at gmail dot com @ 2009-02-23 15:19 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from rvatne at gmail dot com 2009-02-23 15:18 ------- (In reply to comment #2) > No the .libs/libmpfr.so.1.2.0 is embeded into libmpfr.so.1.2.0 . So something > is incorrect in your building of MPRF. > NO, I don't think so. The MPRF is "pkgadded" from sunfreeware.com - and here's a truss output from running cc1 (directly) gcc-bld3$ truss /t3-0/shared/gnu/gcc-bld3/./gcc/cc1 -quiet -iprefix /t3-0/shared/gnu/gcc-bld3/gcc/../lib/gcc/sparc-sun-solaris2.8/4.3.3/ -isystem /t3-0/shared/gnu/gcc-bld3/./gcc/include -isystem /t3-0/shared/gnu/gcc-bld3/./gcc/include-fixed -D__sparcv8 -isystem /t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/include -isystem /t3-0/shared/gnu/gcc-trunk/sparc-sun-solaris2.8/sys-include conftest.c -quiet -dumpbase conftest.c -mcpu=v9 -auxbase conftest -g -g -O2 -O2 -o /tmp/conftest.s execve("/t3-0/shared/gnu/gcc-bld3/gcc/cc1", 0xFFBEE05C, 0xFFBEE0C8) argc = 26 resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16 open("/var/ld/ld.config", O_RDONLY) = 3 fstat(3, 0xFFBED8B8) = 0 mmap(0x00000000, 112, PROT_READ, MAP_SHARED, 3, 0) = 0xFF390000 close(3) = 0 stat("/usr/local/lib/libintl.so.8", 0xFFBED940) = 0 resolvepath("/usr/local/lib/libintl.so.8", "/t3-0/local/lib/libintl.so.8.0.2", 1023) = 32 open("/usr/local/lib/libintl.so.8", O_RDONLY) = 3 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF380000 mmap(0x00000000, 106496, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF360000 mmap(0xFF360000, 35170, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF360000 mmap(0xFF378000, 4404, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 32768) = 0xFF378000 munmap(0xFF36A000, 57344) = 0 memcntl(0xFF360000, 8836, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/local/lib/libiconv.so.2", 0xFFBED940) = 0 resolvepath("/usr/local/lib/libiconv.so.2", "/t3-0/local/lib/libiconv.so.2.4.0", 1023) = 33 open("/usr/local/lib/libiconv.so.2", O_RDONLY) = 3 mmap(0xFF380000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF380000 mmap(0x00000000, 999424, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF200000 mmap(0xFF200000, 924047, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF200000 mmap(0xFF2F0000, 11904, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 917504) = 0xFF2F0000 munmap(0xFF2E2000, 57344) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF350000 memcntl(0xFF200000, 13660, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat(".libs/libmpfr.so.1.2.0", 0xFFBED9A8) Err#2 ENOENT ld.so.1: cc1: fatal: .libs/libmpfr.so.1.2.0: open failed: No such file or directory write(2, " l d . s o . 1 : c c 1".., 84) = 84 munmap(0xFF380000, 8192) = 0 lwp_self() = 1 *** process killed *** I shows (i think) that the loader (ld.so) finds libiconv etc. in a normal way, but libmpfr is opend "direct path" ?? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39273 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/39273] cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, 2009-02-23 15:06 [Bug bootstrap/39273] New: cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, rvatne at gmail dot com ` (2 preceding siblings ...) 2009-02-23 15:19 ` rvatne at gmail dot com @ 2009-02-23 15:23 ` pinskia at gcc dot gnu dot org 2009-02-24 15:01 ` rvatne at gmail dot com 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2009-02-23 15:23 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from pinskia at gcc dot gnu dot org 2009-02-23 15:23 ------- That only shows that .libs/libmpfr.so.1.2.0 is inside cc1's path. I think you should try a simple programed linked with MPFR using the old GCC and you most likely get the same behavior. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39273 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/39273] cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, 2009-02-23 15:06 [Bug bootstrap/39273] New: cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, rvatne at gmail dot com ` (3 preceding siblings ...) 2009-02-23 15:23 ` pinskia at gcc dot gnu dot org @ 2009-02-24 15:01 ` rvatne at gmail dot com 4 siblings, 0 replies; 6+ messages in thread From: rvatne at gmail dot com @ 2009-02-24 15:01 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from rvatne at gmail dot com 2009-02-24 15:01 ------- (In reply to comment #4) > That only shows that .libs/libmpfr.so.1.2.0 is inside cc1's path. I think you > should try a simple programed linked with MPFR using the old GCC and you most > likely get the same behavior. > You are right. Fixing mpfr fixed the problem.... -- rvatne at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39273 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-02-24 15:01 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-02-23 15:06 [Bug bootstrap/39273] New: cc1 Cannot find library mpfr. ".libs" prepended to library name libmpfr.so.1.2.0, rvatne at gmail dot com 2009-02-23 15:08 ` [Bug bootstrap/39273] " rvatne at gmail dot com 2009-02-23 15:09 ` pinskia at gcc dot gnu dot org 2009-02-23 15:19 ` rvatne at gmail dot com 2009-02-23 15:23 ` pinskia at gcc dot gnu dot org 2009-02-24 15:01 ` rvatne at gmail dot com
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).