gcc/ld problem

Declan Moriarty declan.moriarty at ntlworld.ie
Fri Oct 29 01:31:01 PDT 2004


On Thu, Oct 28, 2004 at 04:38:40PM +0200, Miguel Bazdresch enlightened us thusly
> > installation problem, cannot exec
> > `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld':
> > No such file or directory
> > collect2: ld returned 255 exit status
> > 
> > Hmmmph! The thing is there. I did the 'cd' from the appropiate directory
> > just to check. But despite permissions of 751, it isn't executable
> > 
> > [From my LFS-3.3, hence the extra '/lfs']
> > 
> > root:~#cd /lfs/usr/i686-pc-linux-gnu/bin
> > root:/lfs/usr/i686-pc-linux-gnu/bin#./ld
> > bash: ./ld: No such file or directory
> > root:/lfs/usr/i686-pc-linux-gnu/bin#ls
> > ld*
> > root:/lfs/usr/i686-pc-linux-gnu/bin#ls -l
> > total 988
> > -rwxr-xr-x    1 root     root      1004838 Oct 14  2003 ld*
> 
> I don't understand why the extra /lfs, but anyway, your problem is
> likely to be that ld is linked against libraries that don't exist/cannot
> be found in your system.

I did try to explain why the extra /lfs
> > [From my LFS-3.3, hence the extra '/lfs']
I have mail and net access in LFS-3.3, but not in 5.0. I'm not tempted
to go too far beyond 5.0 yet with all the mayhem about gcc versions.

> 
> My system is BE-LFS from around july, but:
> 
> $ ldd /usr/bin/ld
>         linux-gate.so.1 =>  (0xffffe000)
>         libbfd-2.15.91.0.1.so => /usr/lib/libbfd-2.15.91.0.1.so
> (0x40020000)
>         libdl.so.2 => /lib/libdl.so.2 (0x4009a000)
>         libc.so.6 => /lib/libc.so.6 (0x4009e000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> See that you have those libs in your system, and that they are in
> either /lib or /usr/lib. (don't worry about linux-gate.so.1)

You were dead right. The error messages came as if the file didn't
exist, but of course it did. There was an extra /tools in that 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld, 

and I eventually found it with hexedit, but a symlink to the one in
/usr/bin fixed that and I can start. BTW, there is also a file 'a.out'
in there, but the ldd output seems OK.



-- 

	With best Regards,


	Declan Moriarty.



More information about the blfs-support mailing list