help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc can't find libgcc_s.so.1


From: Paul Dubuc
Subject: gcc can't find libgcc_s.so.1
Date: Fri, 10 Sep 2004 14:00:19 -0400
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0

I'm having trouble building gcc (3.3.4 on Solaris 8 Sparc) so that it doesn't need the location of libgcc_s.so.1 in LD_LIBRARY_PATH. I thought I could do this in the bootstrap step by saying

   gmake LDFLAGS="-Wl,--rpath -Wl,${GCCRUNLIBDIR}" bootstrap

or

   gmake LDFLAGS="-R${GCCRUNLIBDIR}" bootstrap

this has worked in the past when libstdc++.so developed a dependency on this library:

dump -Lv libstdc++.so

libstdc++.so:

  **** DYNAMIC SECTION INFORMATION ****
.dynamic:
[INDEX] Tag         Value
[1]     NEEDED          libm.so.1
[2]     NEEDED          libgcc_s.so.1
[3]     NEEDED          libc.so.1
[4]     SONAME          libstdc++.so.5
[5]     RPATH           /volws/pmd25/ldatae/gnu/gcc-3.3.4/lib
[6]     INIT            0x26468
[7]     FINI            0x5c970
[8]     HASH            0x94
...

The RPATH is the location of libgcc_s.so.1. Now, I notice that the gcc and g++ executables also have this dependency:

dump -Lv g++

g++:

  **** DYNAMIC SECTION INFORMATION ****
.dynamic:
[INDEX] Tag         Value
[1]     NEEDED          libgcc_s.so.1
[2]     NEEDED          libc.so.1
[3]     INIT            0x11468
[4]     FINI            0x25778
[5]     HASH            0x100e8


This wasn't the case in 3.3.1
How do I run gmake bootstrap to get the RPATH into the executable so I don't get

ld.so.1: ./g++: fatal: libgcc_s.so.1: open failed: No such file or directory
Killed

when I run the compiler and so I don't have to set LD_LIBRARY_PATH?

Any help would be appreciated.

--
Paul M. Dubuc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]