From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21533 invoked by alias); 12 May 2004 17:22:04 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21518 invoked from network); 12 May 2004 17:22:04 -0000 Received: from unknown (HELO masquerade.micron.com) (137.201.242.130) by sourceware.org with SMTP; 12 May 2004 17:22:04 -0000 Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by masquerade.micron.com (8.12.9/8.12.2) with ESMTP id i4CHM27M028373 for ; Wed, 12 May 2004 11:22:02 -0600 (MDT) Received: from ntxboimbx07.micron.com (ntxboimbx07.micron.com [137.201.80.94]) by mail-srv1.micron.com (8.12.9/8.12.2) with ESMTP id i4CHM1oP028370; Wed, 12 May 2004 11:22:01 -0600 (MDT) From: lrtaylor@micron.com content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: libgcc_s.so.1: open failed: No such file or directory Date: Wed, 12 May 2004 17:22:00 -0000 Message-ID: <363801FFD7B74240A329CEC3F7FE4CC4015F3D59@ntxboimbx07.micron.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: To: , X-Scanned-By: MIMEDefang 2.37 X-SW-Source: 2004-05/txt/msg00145.txt.bz2 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=3Dlibgcc_s.so.1` to -R and -L options - and got the same error. Suggestions? --=20 Sam Steingold (http://www.podval.org/~sds) running w2k I don't want to be young again, I just don't want to get any older.