This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: libgcc_s.so.1: open failed: No such file or directory


What do you get if you run this?

	elfdump -d lisp.run

You should see a line for RPATH.  If so, does it contain the right
directory?  Have you verified that the directory given by your gcc
command given below is really correct?  That is, that the library is
indeed in that directory?

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Sam Steingold
Sent: Wednesday, May 12, 2004 10:49 AM
To: gcc-help@gcc.gnu.org
Subject: libgcc_s.so.1: open failed: No such file or directory

SunOS monty-burns 5.8 Generic_108528-24 sun4u sparc SUNW,Sun-Blade-1000
gcc (GCC) 3.2.2

After I link an executable (gcc -m64), I cannot run it:

ld.so.1: ./lisp.run: fatal: libgcc_s.so.1: open failed: No such file or
directory

I do not want to add the libgcc_s.so.1 directory to LD_LIBRARY_PATH
(this is not an automated solution), I would prefer that the this path
is somehow saved into the executable.

how can I do it?

I tried adding the output of
  dirname `gcc -m64 -print-file-name=libgcc_s.so.1`
to -R and -L options - and got the same error.

Suggestions?

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
I don't want to be young again, I just don't want to get any older.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]