The following patch breaks the 64-bit testsuite for mips-sgi-irix6.5.  I have 
tracked it down in HEAD but the same patch causes a similar problem in the 3.4 
branch. 

2004-11-18  H.J. Lu  <[EMAIL PROTECTED]>

        PR bootstrap/17684
        * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
        (stage1-start): Remove and copy libunwind.a and
        libunwind*$(SHLIB_EXT) instead of libunwind*.
        (stage2-start): Likewise.
        (stage3-start): Likewise.
        (stage4-start): Likewise.
        (stageprofile-start): Likewise.
        (stagefeedback-start): Likewise.

        * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
        the shared library to be created and don't remove the existing
        shared library.
        * config/arm/t-netbsd (SHLIB_LINK): Likewise.
        * config/i386/t-nwld (SHLIB_LINK): Likewise.
        * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
        * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
        * config/sh/t-linux (SHLIB_LINK): Likewise.
        * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
        * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
        * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
        * config/t-slibgcc-sld (SHLIB_LINK): Likewise.

        * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
        files.

After this patch, the -mabi=64 gfortran testsuite reports the error

303790545:./assignment_1.exe: rld: Fatal Error: Cannot Successfully map 
soname 'libgcc_s.so.1' under any of the filenames /disk4/billingd/obj/gcc-
f/gcc/libgcc_s.so.1:./libgcc_s.so.1:/disk4/billingd/obj/gcc-f/mips-sgi-
irix6.5/mabi-
64/libgfortran/.libs/libgcc_s.so.1:/usr/local/lib/libgcc_s.so.1:/usr/lib64/libg
cc_s.so.1:/usr/lib64/internal/libgcc_s.so.1:/lib64/libgcc_s.so.1:/opt/lib64/lib
gcc_s.so.1: 

and a similar problem occurs with the g++ testsuite.

Before the patch and configured with --enable-languages=c,f95 the follwoing 
shared libraries are built.

./gcc/libgcc_s.so
./gcc/libgcc_s_mabi-64.so
./gcc/libgcc_s_mabi-32.so
./gcc/libgmp.so.4
./gcc/mabi-32/libgcc_s.so.1
./gcc/mabi-64/libgcc_s.so.1
./gcc/libgcc_s.so.1
./mips-sgi-irix6.5/libgfortran/.libs/libgfortran.so.1.0
./mips-sgi-irix6.5/libgfortran/.libs/libgfortran.so.1
./mips-sgi-irix6.5/libgfortran/.libs/libgfortran.so
./mips-sgi-irix6.5/mabi-32/libgfortran/.libs/libgfortran.so.1.0
./mips-sgi-irix6.5/mabi-32/libgfortran/.libs/libgfortran.so.1
./mips-sgi-irix6.5/mabi-32/libgfortran/.libs/libgfortran.so
./mips-sgi-irix6.5/mabi-64/libgfortran/.libs/libgfortran.so.1.0
./mips-sgi-irix6.5/mabi-64/libgfortran/.libs/libgfortran.so.1
./mips-sgi-irix6.5/mabi-64/libgfortran/.libs/libgfortran.so


after the patch I get

find . -name "*.so*"
./gcc/libgcc_s.so
./gcc/libgcc_s.so.1.stage1
./gcc/libgcc_s_mabi-32.so
./gcc/libgmp.so.4
./gcc/libgcc_s.so.1.stage2
./gcc/mabi-32/libgcc_s.so.1.stage2
./gcc/mabi-32/libgcc_s.so.1
./gcc/mabi-64/libgcc_s.so.1.stage2
./gcc/mabi-64/libgcc_s.so.1
./gcc/libgcc_s_mabi-64.so
./gcc/libgcc_s.so.1
./mips-sgi-irix6.5/libgfortran/.libs/libgfortran.so.1.0
./mips-sgi-irix6.5/libgfortran/.libs/libgfortran.so.1
./mips-sgi-irix6.5/libgfortran/.libs/libgfortran.so
./mips-sgi-irix6.5/mabi-32/libgfortran/.libs/libgfortran.so.1.0
./mips-sgi-irix6.5/mabi-32/libgfortran/.libs/libgfortran.so.1
./mips-sgi-irix6.5/mabi-32/libgfortran/.libs/libgfortran.so
./mips-sgi-irix6.5/mabi-64/libgfortran/.libs/libgfortran.so.1.0
./mips-sgi-irix6.5/mabi-64/libgfortran/.libs/libgfortran.so.1
./mips-sgi-irix6.5/mabi-64/libgfortran/.libs/libgfortran.so

-- 
           Summary: [3.4/4.0 regression] libgcc_s.so.1 not found by 64-bit
                    testsuite
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: billingd at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: mips-sgi-irix6.5
  GCC host triplet: mips-sgi-irix6.5
GCC target triplet: mips-sgi-irix6.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18138

Reply via email to