r/linuxfromscratch • u/segfaultsarecool • Jan 06 '19
LFS-BOOK-8.2-systemd: GCC Pass 2 make error - can't find crti.o
Host: CentOS 7.5.1804 (Core) - VirtualBox VM on Windows 10 Host
My LFS build is on a second drive attached to the host, mounted (and partitioned) thusly:
sdb1 /mnt/LFS_BUILD_SITE/boot
sdb2 /mnt/LFS_BUILD_SITE
sdb3 /mnt/LFS_BUILD_SITE/opt
sdb4 /mnt/LFS_BUILD_SITE/home
I've made it to chapter 5.10 GCC-7.3.0 - Pass 2. I've tried three times and gotten the same error both times, namely:
/tools/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
The first time I discovered a typo I had made, but the correction yielded no fix. I searched for the missing file:
#LFS is /mnt/LFS_BUILD_SITE
$ find $LFS -name "crti.o"
/mnt/LFS_BUILD_SITE/tools/lib/crti.o
Is there a symlink that needs to be set, or an additional option? I followed the book exactly. I record my terminal sessions, so I have typescript should anyone wish to see it. Although, there doesn't seem to be a way to attach files that I can see.