On Mon, Oct 26, 2020 at 11:46:23AM -0600, Alexander Brassel wrote:
> When running the check, I see errors reported about missing libgcc_s.so.1
> 
> ```
> make[5]: *** [Makefile:9399: gdb_index_test_1] Error 1
> make[5]: Target 'gdb_index_test_1.stdout' not remade because of errors.
> `echo g++ -W -Wall    -Wstack-usage=262144 -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -fno-use-linker-plugin   -o
> gdb_index_test_2 | sed -e 's/\([^ ]*\)\(.*\)/\1 -Bgcctestdir\/\2/' -e
> 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--gdb-index
> gdb_index_test_cdebug.o
> gcctestdir/collect-ld: error: cannot open
> /usr/lib/gcc/x86_64-lfs-linux-gnu/10.2.0/../../../../lib/libgcc_s.so: No
> such file or directory
> gcctestdir/collect-ld: error: cannot open
> /usr/lib/gcc/x86_64-lfs-linux-gnu/10.2.0/../../../../lib/libgcc_s.so: No
> such file or directory
> collect2: error: ld returned 1 exit status
> make[5]: *** [Makefile:9405: gdb_index_test_2] Error 1
> ```
> 
> So I checked the directory layout and usr/lib/libgcc_s.so does exist.
> However, it's a pointer to:
> 
> `readlink libgcc_s.so`
> produces: `/tools/lib/libgcc_s.so`
> 
> Navigating to /tools/lib:
> ```
> (lfs chroot) root:/tools/lib# ls
> gcc  libcc1.la libcc1.so  libcc1.so.0 libcc1.so.0.0.0
> ```
> 
> Why might this setup be occuring?

The libgcc_s files should have been installed in $LFS/usr in gcc
pass 2 at the end of chapter 6.  $LFS should be /mnt/lfs.  The only
packages installed in /mnt/lfs/tools are binutils pass 1 and gcc
pass 1.

No idea why yours is different, but I wonder if you have passed
'tools' to a different package (before 10.0 we put a lot of things
in tools, now we DESTDIR to $LFS/usr).

ĸen
-- 
The people next door oppress me all night long. I tell them: I work
all day, a man's got to have some time to learn to play the tuba.
That's oppression, that is.    [ Guards! Guards! ]
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to