This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 4.0.0->4.0.1 regression: Can't use 64-bit shared libs on powerpc-apple-darwin8.1.0
- From: Bradley Lucier <lucier at math dot purdue dot edu>
- To: Mike Stump <mrs at apple dot com>
- Cc: Bradley Lucier <lucier at math dot purdue dot edu>, gcc at gcc dot gnu dot org, Andrew Pinski <pinskia at physics dot uc dot edu>, mark at codesourcery dot com
- Date: Thu, 16 Jun 2005 12:04:29 -0500
- Subject: Re: 4.0.0->4.0.1 regression: Can't use 64-bit shared libs on powerpc-apple-darwin8.1.0
- References: <2AD17150-DE30-11D9-BE09-003065BDF310@apple.com>
On Jun 16, 2005, at 1:30 AM, Mike Stump wrote:
Please try something like:
...
and let me know if it works.
Thank you, I will try it today.
Last night I unconditionally allowed multilibs and configured with
Compiler version: 4.1.0 20050615 (experimental)
Platform: powerpc-apple-darwin8.1.0
configure flags: --prefix=/pkgs/gcc-4.0-mainline
--with-gmp=/pkgs/gmp-4.1.3 --with-mpfr=/pkgs/gmp-4.1.3
--enable-languages=c,c++,f95,objc,obj-c++
BOOT_CFLAGS=-g -O2 -mdynamic-no-pic
There were many -m64 failures in some of the testsuites; e.g.,
=== g++ Summary for unix/-m64 ===
# of expected passes 8438
# of unexpected failures 1370
# of expected failures 60
# of unresolved testcases 68
# of unsupported tests 114
...
=== gfortran Summary for unix/-m64 ===
# of expected passes 517
# of unexpected failures 3320
# of unexpected successes 3
# of expected failures 9
# of untested testcases 1472
# of unsupported tests 17
...
=== objc Summary for unix/-m64 ===
# of expected passes 493
# of unexpected failures 576
# of unresolved testcases 533
# of unsupported tests 1
It seems that the 64-bit libgcc_s can't be found many times; a typical
failure from the top of the c++ test suite looks like
Test Run By lucier on Wed Jun 15 21:35:15 2005
Native configuration is powerpc-apple-darwin8.1.0
=== g++ tests ===
Schedule of variations:
unix/-m64
unix
Running target unix/-m64
Using /pkgs/dejagnu/share/dejagnu/baseboards/unix.exp as board
description file for target.
Using /pkgs/dejagnu/share/dejagnu/config/unix.exp as generic interface
file for target.
Using
/Users/lucier/programs/gcc/gcc-mainline/gcc/testsuite/config/
default.exp as tool-and-target-specific interface file.
Running
/Users/lucier/programs/gcc/gcc-mainline/gcc/testsuite/g++.dg/bprob/
bprob.exp ...
set_ld_library_path_env_vars:
ld_library_path=.:/Users/lucier/programs/gcc/gcc-mainline/objdir/
powerpc-apple-darwin8.1.0/ppc64/libstdc++-v3/src/.libs:/Users/lucier/
programs/gcc/gcc-mainline/objdir/gcc
ALWAYS_CXXFLAGS set to {additional_flags=-nostdinc++
-I/Users/lucier/programs/gcc/gcc-mainline/objdir/powerpc-apple-
darwin8.1.0/ppc64/libstdc++-v3/include/powerpc-apple-darwin8.1.0
-I/Users/lucier/programs/gcc/gcc-mainline/objdir/powerpc-apple-
darwin8.1.0/ppc64/libstdc++-v3/include
-I/Users/lucier/programs/gcc/gcc-mainline/libstdc++-v3/libsupc++
-I/Users/lucier/programs/gcc/gcc-mainline/libstdc++-v3/include/backward
-I/Users/lucier/programs/gcc/gcc-mainline/libstdc++-v3/testsuite}
{ldflags=
-L/Users/lucier/programs/gcc/gcc-mainline/objdir/powerpc-apple-
darwin8.1.0/ppc64/libstdc++-v3/src/.libs
-L/Users/lucier/programs/gcc/gcc-mainline/objdir/powerpc-apple-
darwin8.1.0/ppc64/libiberty } additional_flags=-fmessage-length=0
{ldflags=-multiply_defined suppress}
Executing on host:
/Users/lucier/programs/gcc/gcc-mainline/objdir/gcc/testsuite/../g++
-B/Users/lucier/programs/gcc/gcc-mainline/objdir/gcc/testsuite/../
/Users/lucier/programs/gcc/gcc-mainline/gcc/testsuite/g++.dg/bprob/g++-
bprob-1.C -nostdinc++
-I/Users/lucier/programs/gcc/gcc-mainline/objdir/powerpc-apple-
darwin8.1.0/ppc64/libstdc++-v3/include/powerpc-apple-darwin8.1.0
-I/Users/lucier/programs/gcc/gcc-mainline/objdir/powerpc-apple-
darwin8.1.0/ppc64/libstdc++-v3/include
-I/Users/lucier/programs/gcc/gcc-mainline/libstdc++-v3/libsupc++
-I/Users/lucier/programs/gcc/gcc-mainline/libstdc++-v3/include/backward
-I/Users/lucier/programs/gcc/gcc-mainline/libstdc++-v3/testsuite
-fmessage-length=0 -g -fprofile-arcs
-L/Users/lucier/programs/gcc/gcc-mainline/objdir/powerpc-apple-
darwin8.1.0/ppc64/libstdc++-v3/src/.libs
-L/Users/lucier/programs/gcc/gcc-mainline/objdir/powerpc-apple-
darwin8.1.0/ppc64/libiberty -multiply_defined suppress -lm -m64 -o
/Users/lucier/programs/gcc/gcc-mainline/objdir/gcc/testsuite/g++-bprob
-1.x01 (timeout = 300)
ld64 failed: library not found for -lgcc_s_ppc64^M
collect2: ld returned 1 exit status^M
compiler exited with status 1
output is:
ld64 failed: library not found for -lgcc_s_ppc64^M
collect2: ld returned 1 exit status^M
even though
[descartes:gcc/gcc-mainline/objdir] lucier% find . -name 'libgcc_s*'
./gcc/libgcc_s.1.0.dylib
./gcc/libgcc_s.1.0.dylib.backup
./gcc/libgcc_s.dylib
./gcc/libgcc_s_ppc64.1.0.dylib
./gcc/libgcc_s_ppc64.1.0.dylib.backup
./gcc/libgcc_s_ppc64.dylib
...
Is the testsuite failing to set up to set the DYLD_LIBRARY_PATH
appropriately?
Brad