libgcj/5585: Most libjava tests fail on solaris2 because of multiple links with shared libgcj
ghazi@caip.rutgers.edu
ghazi@caip.rutgers.edu
Mon Feb 4 11:06:00 GMT 2002
>Number: 5585
>Category: libgcj
>Synopsis: Most libjava tests fail on solaris2 because of multiple links with shared libgcj
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 04 11:06:06 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Kaveh Ghazi
>Release: 3.1 20020202 (experimental)
>Organization:
>Environment:
sparc-sun-solaris2.7
>Description:
When I bootstrap and run the java testsuite on
sparc-sun-solaris2.7 (using native as/ld) more than half
of the tests fail. If I examine libjava.log I see the
following error. (I've tried to make it more readable
by replacing the build path with ... and repaginating.)
Older versions of gcc had the same issue, and I heard
rumor that gnu ld doesn't have this problem, but
since solaris2.7 is a "primary" platform, I believe this
should work out of the box for native tools too.
spawn .../build/sparc-sun-solaris2.7/libjava/testsuite/../libtool
--silent --tag=GCJ --mode=link .../build/gcc/gcj -B.../build/gcc/
--encoding=UTF-8
-B.../build/sparc-sun-solaris2.7/libjava/testsuite/../
.../egcc-CVS20020202/libjava/testsuite/libjava.lang/Divide_1.java
.../build/sparc-sun-solaris2.7//libjava/libgcj.la
.../build/sparc-sun-solaris2.7//boehm-gc/libgcjgc.la
.../build/sparc-sun-solaris2.7//zlib/libzgcj.la -no-install
--main=Divide_1 -O -g -L.../build/sparc-sun-solaris2.7//libjava/.libs
-L.../build/sparc-sun-solaris2.7//boehm-gc/.libs
-L.../build/sparc-sun-solaris2.7//zlib/.libs -lm -fPIC -o
.../build/sparc-sun-solaris2.7/libjava/testsuite/Divide_1
ld: warning: file
.../build/sparc-sun-solaris2.7//boehm-gc/.libs/libgcjgc.so: linked to
.../build/sparc-sun-solaris2.7/boehm-gc/.libs/libgcjgc.so: attempted
multiple inclusion of file
ld: warning: file
.../build/sparc-sun-solaris2.7//zlib/.libs/libzgcj.so: linked to
.../build/sparc-sun-solaris2.7/zlib/.libs/libzgcj.so: attempted
multiple inclusion of file
ld: warning: file
.../build/sparc-sun-solaris2.7//libjava/.libs/libgcj.so: attempted
multiple inclusion of file
ld: warning: file
.../build/sparc-sun-solaris2.7/libjava/../boehm-gc/.libs/libgcjgc.so:
linked to .../build/sparc-sun-solaris2.7/boehm-gc/.libs/libgcjgc.so:
attempted multiple inclusion of file
ld: warning: file
.../build/sparc-sun-solaris2.7/libjava/../zlib/.libs/libzgcj.so:
linked to .../build/sparc-sun-solaris2.7/zlib/.libs/libzgcj.so:
attempted multiple inclusion of file
>How-To-Repeat:
Run the java testsuite on sparc-sun-solaris2.7 with
native as/ld.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list