On Mon, Jul 02, 2012 at 09:11:47AM +0800, Archie Arevalo wrote: > On Monday, July 02, 2012 01:50:44 Ken Moffat wrote: > > > > I'm lacking ideas. Is your PATH /tools/bin:/bin:/usr/bin ? > > lfs:~$ echo $PATH > /tools/bin:/bin:/usr/bin > > > > Is /tools a symlink to /mnt/lfs/tools ? > > lfs:/mnt/lfs$ ls -l > total 24 > drwx------ 2 root root 16384 Jun 29 17:27 lost+found > drwxrwxrwt 4 lfs lfs 4096 Jun 30 19:15 sources > drwxr-xr-x 6 lfs lfs 4096 Jun 29 18:39 tools > > I'm pretty sure I executed, ln -sv $LFS/tools /
ls -l / | grep '/tools' > > > > > Can you see the binutils programs in > > /mnt/lfs/tools/i686-lfs-linux-gnu/bin/ ? > > lfs:/mnt/lfs$ ls -l tools/i686-lfs-linux-gnu/bin/ > total 34908 > -rwxr-xr-x 2 lfs lfs 3336578 Jun 29 18:39 ar > -rwxr-xr-x 2 lfs lfs 4721536 Jun 29 18:39 as > -rwxr-xr-x 4 lfs lfs 4485086 Jun 29 18:39 ld > -rwxr-xr-x 4 lfs lfs 4485086 Jun 29 18:39 ld.bfd > -rwxr-xr-x 2 lfs lfs 3228995 Jun 29 18:39 nm > -rwxr-xr-x 2 lfs lfs 3817294 Jun 29 18:39 objcopy > -rwxr-xr-x 2 lfs lfs 4438182 Jun 29 18:39 objdump > -rwxr-xr-x 2 lfs lfs 3336573 Jun 29 18:39 ranlib > -rwxr-xr-x 2 lfs lfs 3817289 Jun 29 18:39 strip > Yes, that looks like you did make the symlink. > > What do 'file' and 'ldd' say about the 'as' program there ? > > Sorry, I don't know how to answer that. > file /mnt/lfs/tools/i686-lfs-linux-gnu/bin/as ldd /mnt/lfs/tools/i686-lfs-linux-gnu/bin/as I expect it to be a 32-bit (i686) elf file, but since *something* is wrong it is as well to check. You've barely started, so it should be linking to your host's libraries without difficulty. > > > > Sorry, I'm scratching around for ideas and getting nowhere. > > You're the one helping me out. Thank you so much and sorry for giving you a > headache. ;) > > > > > Can you run 'i686-lfs-linux-gnu-ld -V' ? It ought to say it's GNU > > ld and report a few lines of emulations. ( It's the same file as > > i686-lfs-linux-gnu-bin/ld i.e. they are hardlinks, but the plain > > 'ld' version is not on your PATH ) > > lfs:/mnt/lfs$ i686-lfs-linux-gnu-ld -V > bash: i686-lfs-linux-gnu-ld: command not found Ah. Please try ls -i /mnt/lfs/tools/i686-lfs-linux-gnu/bin/ld and ls -i /mnt/lfs/tools/bin/i686-lfs-linux-gnu-ld They should have the same inode number, because they are hardlinks. We know that the second version is on your PATH, but it doesn't work. If you were in chroot I would suggest it was linked to host libs. I've never seen this problem (in chapter 5) before. Maybe the output from ldd will explain. > lfs:/mnt/lfs$ ld -V > GNU ld (Linux/GNU Binutils) 2.21.52.0.2.20110610 > Supported emulations: > elf_i386 > i386linux > elf_x86_64 > elf32_x86_64 > elf_l1om > That is ld on your host. I'm surprised it can handle x86_64. Fedora ? Out of interest, are you running a 64-bit kernel with 32-bit userspace (and a 32-bit kernel personality), or is it all 32-bit ? ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
