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]

Re: During link: cannot find libgcc.a - Please help me (2)


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


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