Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When I try to compile Binutils, Glibc and Zlib using chroot on my LFS system, I get this error:

ar: error while loading shared libraries: libbfd-2.22.so: cannot open shared object file: No such file or directory

I compiled Binutils before without using chroot, the files libbfd.a, libbfd.so, libbfd-2.22.so and libbfd.la exist both in /tools/lib/ and /usr/lib/

I don't know where the compiler is searching for it. How to continue compilation?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.