This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: failed to run testsuite for libstdc++ on x86_64-unknown-linux-gnu for target unix/-m32


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I checked, that the 32-bit libraries were built. That's ok!

cd
/disk1/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs
ls -l lib* gives:

- -rw-r--r--  1 em tecosim 7695440 Nov 22 12:45 libstdc++.a
lrwxrwxrwx  1 em tecosim      15 Nov 22 12:45 libstdc++.la ->
../libstdc++.la
- -rw-r--r--  1 em tecosim    1600 Nov 22 12:45 libstdc++.lai
lrwxrwxrwx  1 em tecosim      18 Nov 22 12:45 libstdc++.so ->
libstdc++.so.6.0.7
lrwxrwxrwx  1 em tecosim      18 Nov 22 12:45 libstdc++.so.6 ->
libstdc++.so.6.0.7
- -rwxr-xr-x  1 em tecosim 4372283 Nov 22 12:45 libstdc++.so.6.0.7

Than I checked the libstd++.log. That's the failure:

Executing on host:
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/./gcc/g++
- -shared-libgcc
-
-B/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/./gcc
- -nostdinc++
-
-L/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/libstdc++-v3/src
-
-L/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-
-B/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/x86_64-unknown-linux-gnu/bin/
-
-B/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/x86_64-unknown-linux-gnu/lib/
- -isystem
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/x86_64-unknown-linux-gnu/include
- -isystem
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/x86_64-unknown-linux-gnu/sys-include
- -m32 -g -O2 -D_GLIBCXX_ASSERT -ffunction-sections -fdata-sections
- -fmessage-length=0
- -DLOCALEDIR="/disk1/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/
gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/32/libstdc++-v3/po/share/locale"
- -nostdinc++
-
-I/disk1/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/x86_64-unknown-linux-gnu
- -I/disk1/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112
/gcc-4.1-20051112/x86_64-unknown-linux-gnu/32/libstdc++-v3/include
-
-I/raid/tecosim/it/devel/projects/develtools/src/gcc-4.1-20051112/libstdc++-v3/libsupc++
-
-I/raid/tecosim/it/devel/projects/develtools/src/gcc-4.1-20051112/libstdc++-v3/include/backward
-
-I/raid/tecosim/it/devel/projects/develtools/src/gcc-4.1-20051112/libstdc++-v3/testsuite
/raid/tecosim/it/devel/projects/develtools/src/gcc-4.1-20051112/libstdc++-v3/testsuite/testsuite_shared.cc
 -I/raid/tecosim/it/devel/projects/develtools/src/gcc-4.1-20051112/libstdc++-v3/testsuite
- -w -shared -fPIC -DPIC  -lm   -m32 -o testsuite_shared.so    (timeout
= 300)
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/bin/ld:
skipping incompatible
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so
when searching for -lstdc++
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/bin/ld:
skipping incompatible
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.a
when searching for -lstdc++
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/bin/ld: cannot
find -lstdc++
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/bin/ld:
skipping incompatible
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so
when searching for -lstdc++
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/bin/ld:
skipping incompatible
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.a
when searching for -lstdc++
/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/install/bin/ld: cannot
find -lstdc++
collect2: ld returned 1 exit status

I compared this to an earlier build and I'm sure that the wrong library
search path is used in this case. It should be:

/SCRATCH/gcc-build/Linux/x86_64-unknown-linux-gnu/gcc-4.1-20051112/gcc-4.1-20051112/x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs

Any hints?


Jim Wilson schrieb:
> Rainer Emrich wrote:
> 
>> ERROR: could not compile testsuite_shared.cc
> 
> 
> This is the important bit.  The libstdc++ testsuite tried to compile a
> support file and failed, so it generated an error.  The rest is just a
> tcl backtrace which we don't need.
> 
> The real question here is why it failed.  There should be useful info in
> the $target/libstdc++/testsuite/libstdc++.log file.  You probably got a
> linker error.  One obvious question is to check to see whether you have
> the optional 32-bit libraries installed.


- --
Rainer Emrich
TECOSIM GmbH
Im Eichsfeld 3
65428 Rüsselsheim

Phone: +49(0)6142/8272 12
Mobile: +49(0)163/56 949 20
Fax.:   +49(0)6142/8272 49
Web: www.tecosim.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDgyDO3s6elE6CYeURAoDoAKCNuj8AJL876svODtpleqjnzRfQ3wCfd0MT
+ybJJThmycyLW1Z1A7Z7OiY=
=ngok
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]