[lfs-dev] Chapter 5 Multilib Glibc x32 section may have wrong interperter check

Kevin Buckley kevin.m.buckley at gmail.com
Sun Jul 26 04:11:10 PDT 2020


In LFS 9.1 Multilib, the Glibc x32 test Was


 Redo test for x32-ABI:

echo 'int main(){}' > dummy.c
$LFS_TGT-gcc -mx32 dummy.c
readelf -l a.out | grep ': /tools'

Output should be like:

[Requesting program interpreter: /tools/libx32/ld-linux-x32.so.2]


Note the libx32 there.

Revision r12033 has

To perform a sanity check, run the following commands:

echo 'int main(){}' > dummy.c
$LFS_TGT-gcc -mx32 dummy.c
readelf -l a.out | grep '/ld-linux-x32'

If everything is working correctly, there should be no errors, and the
output of the last command will be of the form:

[Requesting program interpreter: /lib/ld-linux-x32.so.2]


But I got

[Requesting program interpreter: /libx32/ld-linux-x32.so.2]


which I think is probably correct.


More information about the lfs-dev mailing list