This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: During link: cannot find libgcc.a - Please help me (2)
- To: help-gcc at gnu dot org
- Subject: Re: During link: cannot find libgcc.a - Please help me (2)
- From: Gerhard Heinzel <ghh at mpq dot mpg dot de>
- Date: Sat, 13 Nov 1999 07:35:35 +0100
- Newsgroups: gnu.gcc.help
- Organization: Rechenzentrum der Max-Planck-Gesellschaft in Garching
- References: <80hj3n$tl$1@nnrp1.deja.com>
- Xref: wodc7nx0 gnu.gcc.help:1810
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