This is the mail archive of the gcc-patches@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: [v3] libstdc++/22309


> This adds some support for testing shared libraries in the libstdc++
> testsuite. This support may not be present for all hosts, in which case
> things can be expected to fail gracefully.

Not quite on my AMD SuSE 9.2 machine:

		=== libstdc++ tests ===


Running target unix
ERROR: tcl error 
sourcing /home/eric/cvs/gcc/libstdc++-v3/testsuite/libstdc++-abi/abi.exp.
ERROR: could not compile testsuite_shared.cc
ERROR: tcl error 
sourcing /home/eric/cvs/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp.
ERROR: could not compile testsuite_shared.cc


Executing on host: /home/eric/build/gcc/native/./gcc/g++ -shared-libgcc 
-B/home/eric/build/gcc/native/./gcc -nostdinc++ 
-L/home/eric/build/gcc/native/x86_64-suse-linux/libstdc++-v3/src 
-L/home/eric/build/gcc/native/x86_64-suse-linux/libstdc++-v3/src/.libs 
-B/home/eric/install/gcc/x86_64-suse-linux/bin/ 
-B/home/eric/install/gcc/x86_64-suse-linux/lib/ 
-isystem /home/eric/install/gcc/x86_64-suse-linux/include 
-isystem /home/eric/install/gcc/x86_64-suse-linux/sys-include -g -O2 
-D_GLIBCXX_ASSERT -ffunction-sections -fdata-sections -fmessage-length=0 
-DLOCALEDIR="/home/eric/build/gcc/native/x86_64-suse-linux/libstdc++-v3/po/share/locale" 
-nostdinc++ 
-I/home/eric/build/gcc/native/x86_64-suse-linux/libstdc++-v3/include/x86_64-suse-linux 
-I/home/eric/build/gcc/native/x86_64-suse-linux/libstdc++-v3/include 
-I/home/eric/cvs/gcc/libstdc++-v3/libsupc++ 
-I/home/eric/cvs/gcc/libstdc++-v3/include/backward 
-I/home/eric/cvs/gcc/libstdc++-v3/testsuite testsuite_abi.o 
testsuite_allocator.o testsuite_character.o 
testsuite_hooks.o /home/eric/cvs/gcc/libstdc++-v3/testsuite/testsuite_shared.cc  
-I/home/eric/cvs/gcc/libstdc++-v3/testsuite -w -shared -fPIC -DPIC  -lm   -o 
testsuite_shared.so    (timeout = 300)
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: 
testsuite_abi.o: relocation R_X86_64_32 against `a local symbol' can not be 
used when making a shared object; recompile with -fPIC
testsuite_abi.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: 
testsuite_abi.o: relocation R_X86_64_32 against `a local symbol' can not be 
used when making a shared object; recompile with -fPIC
testsuite_abi.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

ERROR: tcl error 
sourcing /home/eric/cvs/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp.
ERROR: could not compile testsuite_shared.cc
    while executing
"error "could not compile $f""
    (procedure "v3-build_support" line 56)
    invoked from within
"v3-build_support"
    (file "/home/eric/cvs/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp" 
line 25)
    invoked from within
"source /home/eric/cvs/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 
source /home/eric/cvs/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""

-- 
Eric Botcazou


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