Glibc cannot find -lstdc++

satish patel satish at linuxbug.org
Tue Aug 26 15:37:23 PDT 2008


Thanks 

I have ignore make check step and now I am on next page of LFS.

-----Original Message-----
From: lfs-support-bounces at linuxfromscratch.org
[mailto:lfs-support-bounces at linuxfromscratch.org] On Behalf Of Ken Moffat
Sent: Tuesday, August 26, 2008 6:33 PM
To: LFS Support List
Subject: Re: Glibc cannot find -lstdc++

On Tue, Aug 26, 2008 at 05:54:44PM -0400, satish patel wrote:
> Again I got new error 
> 
 For the moment, I shall ignore the fact you are continuing to
top-post, and not trimming what you reply to.  Your choice of mail
client is not a valid excuse! ;-)

 First, the test suites in chapter 5 are of marginal use - if you
_regularly_ build development versions of LFS you will be able to
form an opinion about what changed in the results, and if it is
important.  Most people will do better to NOT run the tests in
chapter 5.

> 
> gcc -B/tools/bin/ -nostdlib -nostartfiles -o
> /mnt/lfs/sources/glibc-build/nptl/tst-cancel1
> -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc
-Wl,-z,relro
> /mnt/lfs/sources/glibc-build/csu/crt1.o
> /mnt/lfs/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/
> --print-file-name=crtbegin.o`
> /mnt/lfs/sources/glibc-build/nptl/tst-cancel1.o
> /mnt/lfs/sources/glibc-build/nptl/libpthread.so
> /mnt/lfs/sources/glibc-build/nptl/libpthread_nonshared.a
>
-Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/ma
>
th:/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/source
>
s/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-
> build/crypt:/mnt/lfs/sources/glibc-build/nptl
> /mnt/lfs/sources/glibc-build/libc.so.6
> /mnt/lfs/sources/glibc-build/libc_nonshared.a -lgcc -Wl,--as-needed
-lgcc_s
> -Wl,--no-as-needed `gcc -B/tools/bin/ --print-file-name=crtend.o`
 > /mnt/lfs/sources/glibc-build/csu/crtn.o
> GCONV_PATH=/mnt/lfs/sources/glibc-build/iconvdata LC_ALL=C
> /mnt/lfs/sources/glibc-build/elf/ld-linux.so.2 --library-path
>
/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sour
>
ces/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glib
>
c-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
/mnt/lfs/sources/glibc-build/nptl/tst-cancel1
> > /mnt/lfs/sources/glibc-build/nptl/tst-cancel1.out
> Didn't expect signal from child: got `Aborted'
> make[2]: *** [/mnt/lfs/sources/glibc-build/nptl/tst-cancel1.out] Error 1
> make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.5.1/nptl'
> make[1]: *** [nptl/tests] Error 2
> make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.5.1'
> make: *** [check] Error 2
> 
> 

 Secondly, some failures in the glibc tests are common, especially
in nptl/.  This single failure is probably a very good result, but
I've stopped running the tests in chapter 5 so I don't know for
sure.

 Thirdly, the important thing is to understand what you are doing.
If it all overloads you (like the mass of errors you reported
recently), take a break from it and afterwards check what you are
doing to make sure it does follow the book.  When you have problems
and ask on the list, _wait_ for replies before trying alternative
fixes.  If you don't get replies in 24 hours (longer at weekends),
that is a different matter.

 Good luck with the rest of your build.

?en
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page




More information about the lfs-support mailing list