On Fri, 22 Sep 2017 20:55:16 +0200 Pol Vangheluwe <[email protected]> wrote:
> cannot find crt1.o: No such file or directory . . > The missing libs do exist on my system: > > bash-4.3$ ls -l $LFS/tools/lib/crt* > -rw-r--r-- 1 lfs users 3084 Sep 20 11:16 /mnt/build_dir/tools/lib/crt1.o > -rw-r--r-- 1 lfs users 2024 Sep 20 11:16 /mnt/build_dir/tools/lib/crti.o > -rw-r--r-- 1 lfs users 1780 Sep 20 11:16 /mnt/build_dir/tools/lib/crtn.o > > I have no idea why they are not found by the linker. Pol, From https://techoverflow.net/2013/02/28/how-to-fix-cannot-find-crt1-o-on-ubuntu/ https://stackoverflow.com/questions/40233088/ld-cannot-find-crt1-o-no-such-file-or-directory https://stackoverflow.com/questions/7934642/cross-compile-cannot-find-crt1-o Try putting the libary path in $LIBRARY_PATH: LIBRARY_PATH=/mnt/build_dir/tools/lib:$LIBRARY_PATH export LIBRARY_PATH or just for make LIBRARY_PATH=/mnt/build_dir/tools/lib make also, you can try setting --sysroot= in CFLAGS during the build: CFLAGS="--sysroot=/mnt/build_dir/tools" make Cheers, Mike Shell -- 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
