LFS Chapter 5.5 - Installing Glibc - cannot find /lib64/ld-linux-x86-64.so.2 inside /mnt/lfs
0
votes
1
answer
1117
views
For some background, everything related to LFS has worked so far. After make-installing glibc, I ran these commands to sanity check:
echo 'int main(){}' | $LFS_TGT-gcc -xc -
readelf -l a.out | grep ld-linux
After doing the first one, I got this error:
*/mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/13.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2 inside /mnt/lfs
collect2: error: ld returned 1 exit status*
It shouldn't output this. I checked lib64 and ld-linux-x86-64.so.2 is a symbolic link to /**lib**/ld-linux-x86-64.so.2. In the /lib/ directory, ld-linux-x86-64.so.2 doesn't exist.
So basically, ld-linux doesn't exist for some reason. I am the LFS user and I'm running each command correctly. The $LFS variable is set. What could be going on here?
Asked by lfsthrowaway
(1 rep)
Sep 3, 2023, 02:13 PM
Last activity: Sep 7, 2023, 01:40 PM
Last activity: Sep 7, 2023, 01:40 PM