View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 02-04-2008, 10:13 PM   #1
Registered: Jan 2008
Distribution: BOSS (Bharat Operating System Solutions)
Posts: 37

Rep: Reputation: 15
/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...

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/ -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/ -T /mnt/lfs/sources/glibc-build/ /mnt/lfs/sources/glibc-build/csu/abi-note.o /mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3-lib.os /mnt/lfs/sources/glibc-build/ /mnt/lfs/sources/glibc-build/libc_nonshared.a -lstdc++ -lgcc_eh /mnt/lfs/sources/glibc-build/elf/ /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/] 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
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..

Old 02-15-2008, 09:23 AM   #2
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
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:

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.

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.

Last edited by Jaqui; 02-15-2008 at 09:28 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent help on "Glibc make error with clfs" rushadrenaline Linux From Scratch 11 03-01-2010 12:14 PM
glibc 2.3.5 "make check" invalid multibyte sequence sundialsvcs Linux - Software 8 09-09-2005 09:56 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 07:52 PM
Problems with "make check" while compiling Glibc in Chapter 6.11 Spuckdung Linux From Scratch 2 02-13-2005 05:12 AM

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration