On Thu, Feb 23, 2017 at 10:23:59AM -0700, Devin Duren wrote: > > >Sounds as if /tools/bin/gcc is linked against a library on the host > >system. In chroot, ldd /tools/bin/gcc might help. Also running > >that outside chroot. > > This seems to be the case. > > Running "ldd /bin/tools/gcc" inside chroot: > /tools/bin/ldd: line 117: /tools/bin/gcc: No such file or directory > > Running outside the chroot: > linux-vdso.so.1 => (0x00007ffd203c8000) > libm.so.6 => /lib64/libm.so.6 (0x00007f9489f2f000) > libc.so.6 => /lib64/libc.so.6 (0x00007f9489b6e000) > /lib64/ld-linux-x86-64.so.2 (0x00007f948a24d000) > > > Given that 4th line of output from ldd outside the chroot, I interpret > as meaning your suggestion is correct. I feel this means I need to > restart Chapter 5 from the beginning to get gcc properly linked again? > Is it possible to re-install just gcc without needing to also > re-install the other packages in chapter 5? > > Thanks for your help so far. > If it is _only_ gcc using host libraries, it might be possible to reinstall it - but because pass-1 gcc is at least partly overwritten by pass-2, I'm not sure.
Maybe using the current gcc to rebuild itself (pass-2) might work, but the process is untested. Restarting from the beginning is the safer option, ĸen -- `I shall take my mountains', said Lu-Tze. `The climate will be good for them.' -- Small Gods -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
