From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ulrich-W. Kaestner" To: help-gcc@gnu.org Subject: Re: During link: cannot find libgcc.a - Please help me (2) Date: Mon, 15 Nov 1999 11:44:00 -0000 Message-id: <80pmok$gde$1@nnrp1.deja.com> References: <80hj3n$tl$1@nnrp1.deja.com> X-SW-Source: 1999-11/msg00238.html In article < Pine.LNX.3.96.991113073323.4751A-100000@mpqpc63.mpq.mpg.de >, Gerhard Heinzel wrote: > On Fri, 12 Nov 1999, Ulrich-W. Kaestner wrote: > > > I use the gnu compiler egcs 2.91.60 > > During linking with the following command ... > > > > gcc my.o -bI:$TOFF_SOURCE/MEMPISHR.exp -lbsd > > > > ... I get the following error message: > > > > ld: 0706-005 Cannot find or open file: libgcc.a > > ld:open(): A file or directory in the path name > > does not exist. > > > > Several versions of the named file exist in the filesystem ! Do I have > > to define some environment variables (additional to the > > smit-installation of the compiler) ? > > I had the same problem and it turned out that > "make install" set some permissions wrongly, > i.e. directories and library files were owned by "root" > and not readable for anyone else. > After fixing the permissions it worked fine. > > Good Luck, > > Gerhard Gerhard, thanks a lot for your hints ! I checked the file permissions. World has read-access, so there must be an other problem. I copied the file /usr/local/lib/gcc-lib/.../libgcc.a to /lib. Now the error message doesn´t appear any longer. I´ll test tomorrow, if the code works correctly. Thanks again, Ulrich Sent via Deja.com http://www.deja.com/ Before you buy. From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ulrich-W. Kaestner" To: help-gcc@gnu.org Subject: Re: During link: cannot find libgcc.a - Please help me (2) Date: Tue, 30 Nov 1999 23:28:00 -0000 Message-ID: <80pmok$gde$1@nnrp1.deja.com> References: <80hj3n$tl$1@nnrp1.deja.com> X-SW-Source: 1999-11n/msg00238.html Message-ID: <19991130232800.8QdjuTB8pbnVtuiZ56XAge_w6w2jWyyIlenJLnkKZdM@z> In article < Pine.LNX.3.96.991113073323.4751A-100000@mpqpc63.mpq.mpg.de >, Gerhard Heinzel wrote: > On Fri, 12 Nov 1999, Ulrich-W. Kaestner wrote: > > > I use the gnu compiler egcs 2.91.60 > > During linking with the following command ... > > > > gcc my.o -bI:$TOFF_SOURCE/MEMPISHR.exp -lbsd > > > > ... I get the following error message: > > > > ld: 0706-005 Cannot find or open file: libgcc.a > > ld:open(): A file or directory in the path name > > does not exist. > > > > Several versions of the named file exist in the filesystem ! Do I have > > to define some environment variables (additional to the > > smit-installation of the compiler) ? > > I had the same problem and it turned out that > "make install" set some permissions wrongly, > i.e. directories and library files were owned by "root" > and not readable for anyone else. > After fixing the permissions it worked fine. > > Good Luck, > > Gerhard Gerhard, thanks a lot for your hints ! I checked the file permissions. World has read-access, so there must be an other problem. I copied the file /usr/local/lib/gcc-lib/.../libgcc.a to /lib. Now the error message doesn´t appear any longer. I´ll test tomorrow, if the code works correctly. Thanks again, Ulrich Sent via Deja.com http://www.deja.com/ Before you buy.