gcc/ld problem

Declan Moriarty declan.moriarty at ntlworld.ie
Thu Oct 28 05:13:24 PDT 2004


In a fit of energy, I grabbed a kernel and tried to build it, because my
lfs-5.0 half-installation won't do dhcp and I have absolutely no excuse
with broadband. I got nowhere. This was the 'make menuconfig'

[in LFS-5.0]

[root at genius /usr/src/linux-2.6.9]# make menuconfig
  HOSTCC  scripts/basic/fixdep
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld:
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
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
[root at genius /usr/src/linux-2.6.9]#

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*


Any ideas? I built the lfs, and more, even a 2.6.0 kernel before I
realised releases these days (when it comes to kernels and gcc) appear
more like alpha versions, and left 2.6x to settle. It gets funnier

root:/lfs/usr/i686-pc-linux-gnu/bin#ldd -v ld
/usr/bin/ldd: ./ld: No such file or directory
root:/lfs/usr/i686-pc-linux-gnu/bin#ls
ld*

WT<expletives deleted>? Next step is X. I've built up to that (The LFS,
and a hunk of libraries, links, wvdial, etc.)

All the directories, btw, are 751 and as root I am the guy with '7'

root:/lfs/usr/i686-pc-linux-gnu/bin#ls -l ld
-rwxr-xr-x    1 root     root      1004838 Oct 14  2003 ld*
root:/lfs/usr/i686-pc-linux-gnu/bin#ls -l /lfs/usr/bin/ld
-rwxr-xr-x    1 root     root      1004838 Oct 14  2003 /lfs/usr/bin/ld*

If I try them from lfs-3.3, /lfs/usr/bin/ld complains about a lack of
glib-2.3 and lfs/usr/i686-pc-linux-gnu/bin/ld "isn't there"

-- 

	With best Regards,


	Declan Moriarty.



More information about the blfs-support mailing list