LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   /tools/bin/ld: cannot find -lstdc++ -- Error in " make check " of Glibc (http://www.linuxquestions.org/questions/linux-from-scratch-13/tools-bin-ld-cannot-find-lstdc-error-in-make-check-of-glibc-618735/)

lfs_rocks 02-04-2008 10:13 PM

/tools/bin/ld: cannot find -lstdc++ -- Error in " make check " of Glibc
 
Hi all

i have got segmentation fault when i compiled glibc for the first time...
so i recompiled it then i didnt get segmentation fault...

But iam getting error for make check...

Quote:

make[2]: Nothing to be done for `tests'.
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.5.1/libio'
make subdir=dlfcn -C dlfcn ..=../ tests
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.5.1/dlfcn'
gcc -B/tools/bin/ -shared -static-libgcc -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,defs -B/mnt/lfs/sources/glibc-build/csu/ -Wl,-z,combreloc -Wl,-z,relro -L/mnt/lfs/sources/glibc-build -L/mnt/lfs/sources/glibc-build/math -L/mnt/lfs/sources/glibc-build/elf -L/mnt/lfs/sources/glibc-build/dlfcn -L/mnt/lfs/sources/glibc-build/nss -L/mnt/lfs/sources/glibc-build/nis -L/mnt/lfs/sources/glibc-build/rt -L/mnt/lfs/sources/glibc-build/resolv -L/mnt/lfs/sources/glibc-build/crypt -L/mnt/lfs/sources/glibc-build/nptl -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl -o /mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3-lib.so -T /mnt/lfs/sources/glibc-build/shlib.lds /mnt/lfs/sources/glibc-build/csu/abi-note.o /mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3-lib.os /mnt/lfs/sources/glibc-build/libc.so /mnt/lfs/sources/glibc-build/libc_nonshared.a -lstdc++ -lgcc_eh /mnt/lfs/sources/glibc-build/elf/ld.so /mnt/lfs/sources/glibc-build/libc_nonshared.a
/tools/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3-lib.so] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.5.1/dlfcn'
make[1]: *** [dlfcn/tests] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.5.1'
make: *** [check] Error 2
lfs@boss:/mnt/lfs/sources/glibc-build$
Can i continue going to next step ignoring this check error.....
or do i need to resolve it now...If so please help me to resolve it..

THANKS IN ADVANCE

Jaqui 02-15-2008 09:23 AM

so this is chapter 5 of the lfs book?
[ first build of gcc, it should be ]

yup, you can go past this. for two reasons:
1) the software to actually make check is not yet installed, so it will ALWAYS fail.
2) as it says in chapter 4.6:
Note

Experience has shown that there is little to be gained from running the test suites in Chapter 5.
There can be no escaping the fact that the host system always exerts some influence on the tests in that chapter,
often causing inexplicable failures. Because the tools built in Chapter 5 are temporary and eventually discarded,
we do not recommend running the test suites in Chapter 5 for the average reader. The instructions for running those
test suites are provided for the benefit of testers and developers, but they are strictly optional.


http://www.linuxfromscratch.org/lfs/...estsuites.html

make check is a testsuite for gcc.

you will find that you get far faster responses to LFS questions on the lfs email lists than here, most people
actively building lfs systems and developing the lfs group of books don't really come here much, we tend to be
more focussed on pushing our own knowldge deeper into the internals of the system or de-bloating a system for
ourselves, or working on the next version of one of the books.


All times are GMT -5. The time now is 03:35 PM.