Glibc cannot find -lstdc++

satish patel satish at linuxbug.org
Tue Aug 26 14:54:44 PDT 2008


Again I got new error 


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



-----Original Message-----
From: lfs-support-bounces at linuxfromscratch.org
[mailto:lfs-support-bounces at linuxfromscratch.org] On Behalf Of Valter
Douglas Lisbôa Jr.
Sent: Tuesday, August 26, 2008 5:03 PM
To: LFS Support List
Subject: Re: Glibc cannot find -lstdc++

Em Tuesday 26 August 2008 17:58:16 satish patel escreveu:
> Now I have soft link that files into /usr/lib so now error is change and
> point to different file is missing or not found
>
> /tools/bin/ld: cannot find -lstdc++_shared
>
> How to set ld search path /usr/lib/gcc/i386-redhat-linux/3.4.3
Sets the LDPATH enviroment variable to it. The directories are separated by
:

e.g:
export LDPATH="$LDPATH:/usr/lib/gcc/i386-redhat-linux/3.4.3"


>
> -----Original Message-----
> From: lfs-support-bounces at linuxfromscratch.org
> [mailto:lfs-support-bounces at linuxfromscratch.org] On Behalf Of Valter
> Douglas Lisbôa Jr.
> Sent: Tuesday, August 26, 2008 4:29 PM
> To: LFS Support List
> Subject: Re: Glibc cannot find -lstdc++
>
> > My ld can not find file -lstdcc++ is this the problem ??
>
> The /usr/lib/libstdc++.so or /usr/lib/libstdc++.a is been missing by the
> compiler.
>
> --
> Valter Douglas Lisbôa Jr.
> Sócio-Diretor
> Trenix - IT Solutions
> "Nossas Idéias, suas Soluções!"
> www.trenix.com.br
> contato at trenix.com.br
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page



-- 
Valter Douglas Lisbôa Jr.
Sócio-Diretor
Trenix - IT Solutions
"Nossas Idéias, suas Soluções!"
www.trenix.com.br
contato at trenix.com.br
-- 
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