LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-04-2008, 10:13 PM   #1
lfs_rocks
Member
 
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...

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
 
Old 02-15-2008, 09:23 AM   #2
Jaqui
Member
 
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:
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.

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:28 AM.

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