Chapter 5.10 Error on Sanity Check
by dopaseraoxy from LinuxQuestions.org on (#4VT88)
So this is my first time making LFS. Everything's gone smoothly up until now. I did the install of GCC-9.2.0 pass 2 and everything seemed fine. All commands copy and pasted from the site itself. However when I ran the sanity check, I got this:
Code:lfs@ksawer-Aspire-A315-21:/mnt/lfs/sources/gcc-9.2.0/build$ echo 'int main(){}' > dummy.c
lfs@ksawer-Aspire-A315-21:/mnt/lfs/sources/gcc-9.2.0/build$ cc dummy.c
/usr/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: unable to initialize decompress status for section .debug_aranges
/mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
lfs@ksawer-Aspire-A315-21:/mnt/lfs/sources/gcc-9.2.0/build$ readelf -l a.out | grep ': /tools'
readelf: Error: 'a.out': No such fileI'm not quite sure what went wrong or how to fix this. Any help and an explanation would be nice! (Link to where I am in the booklet)


Code:lfs@ksawer-Aspire-A315-21:/mnt/lfs/sources/gcc-9.2.0/build$ echo 'int main(){}' > dummy.c
lfs@ksawer-Aspire-A315-21:/mnt/lfs/sources/gcc-9.2.0/build$ cc dummy.c
/usr/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: unable to initialize decompress status for section .debug_aranges
/mnt/lfs/tools/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib/crti.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
lfs@ksawer-Aspire-A315-21:/mnt/lfs/sources/gcc-9.2.0/build$ readelf -l a.out | grep ': /tools'
readelf: Error: 'a.out': No such fileI'm not quite sure what went wrong or how to fix this. Any help and an explanation would be nice! (Link to where I am in the booklet)