[Bug testsuite/40699] New: [4.5 Regression] All sparcv9 libjava execution tests fail on Solaris 11/SPARC

ro at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 9 17:46:00 GMT 2009


Between 20090522 and 20090702, all sparcv9 libjava execution tests started to
fail. libjava.log reveals:

set_ld_library_path_env_vars:
ld_library_path=.:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/sparcv9/libjava/.libs:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./gcc
Setting LD_LIBRARY_PATH to
.:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/sparcv9/libjava/.libs:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./gcc:.:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/sparcv9/libjava/.libs:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./gcc:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/libstdc++-v3/.libs:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/libssp/.libs:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/libgomp/.libs:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./gcc:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./prev-gcc
ld.so.1: PR9577: fatal:
/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./gcc/libgcc_s.so.1: wrong ELF class:
ELFCLASS32
FAIL: PR9577 run

Compared to the 20090522 log entry

set_ld_library_path_env_vars:
ld_library_path=.:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/sparcv9/libjava/.libs:/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./gcc
Executing on host:
/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/libjava/testsuite/../libtool
--silent --tag=GCJ --mode=link
/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./gcc/gcj
-B/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/libjava/
-B/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/./gcc/
-B/vol/gcc/sparc-sun-solaris2.11/bin/ -B/vol/gcc/sparc-sun-solaris2.11/lib/
-isystem /vol/gcc/sparc-sun-solaris2.11/include -isystem
/vol/gcc/sparc-sun-solaris2.11/sys-include    --encoding=UTF-8
-B/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/libjava/testsuite/../
/vol/gcc/src/gcc-dist/libjava/testsuite/libjava.cni/PR9577.jar natPR9577.o  -w 
-no-install --main=PR9577 -g 
-L/vol/gccsrc/obj/gcc-4.5.0-20090702/11-gcc/sparc-sun-solaris2.11/sparcv9/libjava/.libs
-lm   -m64 -o PR9577    (timeout = 300)
PASS: linking PR9577

the sparcv9 subdirectory is missing from gcc in the LD_LIBRARY_PATH, so the
wrong libgcc_s.so.1 is found.  This is most likely due to this change:

2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>

        * testsuite/lib/libjava.exp (libjava_init): Just add
        find_libgcc_s to libjava_libgcc_s_path, rather than every
        libgcc multilib directory.
        (libjava_arguments): Explain why we add "." to ld_library_path.
        (gcj_invoke, exec_gij, libjava_invoke): Use add_path.


-- 
           Summary: [4.5 Regression] All sparcv9 libjava execution tests
                    fail on Solaris 11/SPARC
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: rsandifo at gcc dot gnu dot org
        ReportedBy: ro at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.11
  GCC host triplet: sparc-sun-solaris2.11
GCC target triplet: sparc-sun-solaris2.11


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



More information about the Gcc-bugs mailing list