Sample Header Ad - 728x90

How to provide crt1.o and crti.o for LFS?

5 votes
3 answers
8057 views
I have tried to create a Linux distribution with the Linux From Scratch (LFS) website. Everything went good until step **5.7. Glibc-2.19 **, but when I tried: $LFS_TGT-gcc dummy.c I get: /tools/lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory /tools/lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory So I googled it for a while, and I realize that Debian changed some directory, and I searched for those files and I found them in: /usr/libx32/ I realize from those searches that it happen with trying to compile 64 bit in 32 bit structures, and I should create virtual link of theme in: /tools/lib/gcc/i686-lfs-linux-gnu/4.8.2/ But when I did that I got: /tools/lib/gcc/i686-lfs-linux-gnu/4.8.2/crt1.o: file not recognized: File format not recognized In this step I really don't know what to do next. How can I fix it?
Asked by zokit (141 rep)
Sep 6, 2014, 12:21 PM
Last activity: Dec 17, 2023, 02:22 AM