This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Failures in libjava testsuite on cygwin
- From: Christian Joensson <christian at j-son dot org>
- To: gcc <gcc at gcc dot gnu dot org>
- Cc: java <java at gcc dot gnu dot org>
- Date: Fri, 24 Oct 2003 23:24:28 +0200
- Subject: Failures in libjava testsuite on cygwin
Windows XP/Pro SP1 cygwin P4 system with these packages:
binutils 2.14.90 20030901 (cygwin ver. 20030901-1)
bison 1.875b (cygwin ver. 20030307-1)
cygwin 1.5.5-1
dejagnu 1.4.2.x (cygwin ver. 20021217-2)
gawk 3.1.3-3
gcc 3.3.1-2
w32api 2.4-1
LAST_UPDATED: Fri Oct 24 05:27:18 GMT 2003
configure pentium4-cygwin --prefix=/usr/local/gcc-binutils --enable-shared --enable-threads=posix --with-system-zlib --enable-libgcj
The test results reported in
http://gcc.gnu.org/ml/gcc-testresults/2003-10/msg01060.html contains
(among others), the following failures:
FAIL: linking calls
FAIL: linking cxxtest
FAIL: linking field
FAIL: linking final_method
FAIL: linking findclass
FAIL: linking invoke
FAIL: linking martin
FAIL: linking noclass
FAIL: linking overload
FAIL: linking pr11951
FAIL: linking register
FAIL: linking simple_int
FAIL: linking throwit
FAIL: linking virtual
The first one, as a representative for its kind, is given in more
detail here:
Running /usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/libjava.jni/jni.exp ...
PASS: bytecompile /usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/libjava.jni/calls.java
spawn /usr/local/src/gcc-binutils/trunk/objdir/gcc/gcjh -jni calls
PASS: calls header generation
Executing on host: /usr/local/src/gcc-binutils/trunk/objdir/gcc/xgcc -B/usr/local/src/gcc-binutils/trunk/objdir/gcc/ /usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/libjava.jni/calls.c -shared -fPIC -I. -I.. -I/usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/../include -o libcalls.so (timeout = 300)
spawn /usr/local/src/gcc-binutils/trunk/objdir/gcc/xgcc -B/usr/local/src/gcc-binutils/trunk/objdir/gcc/ /usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/libjava.jni/calls.c -shared -fPIC -I. -I.. -I/usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/../include -o libcalls.so
/usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/libjava.jni/calls.c:0: warning: -fPIC ignored for target (all code is position independent)
output is:
/usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/libjava.jni/calls.c:0: warning: -fPIC ignored for target (all code is position independent)
PASS: calls.c compilation
Executing on host: /usr/local/src/gcc-binutils/trunk/objdir/pentium4-cygwin/libjava/testsuite/../libtool --silent --tag=GCJ --mode=link /usr/local/src/gcc-binutils/trunk/objdir/gcc/gcj -B/usr/local/src/gcc-binutils/trunk/objdir/gcc/ --encoding=UTF-8 -B/usr/local/src/gcc-binutils/trunk/objdir/pentium4-cygwin/./libjava/ /usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/libjava.jni/calls.java -fjni -L. -lcalls --main=calls -g -L/usr/local/src/gcc-binutils/trunk/objdir/pentium4-cygwin/./libjava/.libs -o calls (timeout = 300)
spawn /usr/local/src/gcc-binutils/trunk/objdir/pentium4-cygwin/libjava/testsuite/../libtool --silent --tag=GCJ --mode=link /usr/local/src/gcc-binutils/trunk/objdir/gcc/gcj -B/usr/local/src/gcc-binutils/trunk/objdir/gcc/ --encoding=UTF-8 -B/usr/local/src/gcc-binutils/trunk/objdir/pentium4-cygwin/./libjava/ /usr/local/src/gcc-binutils/trunk/gcc/libjava/testsuite/libjava.jni/calls.java -fjni -L. -lcalls --main=calls -g -L/usr/local/src/gcc-binutils/trunk/objdir/pentium4-cygwin/./libjava/.libs -o calls
/usr/bin/ld: cannot find -lcalls
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/bin/ld: cannot find -lcalls
collect2: ld returned 1 exit status
FAIL: linking calls
XFAIL: running calls
However, I guess, gcc linking in libs under cygwain looks for
something else than
chj@Luddes /usr/local/src/trunk/objdir/pentium4-cygwin/libjava/testsuite
$ file libcalls.so
libcalls.so: MS Windows PE 32-bit Intel 80386 console DLL
chj@Luddes /usr/local/src/trunk/objdir/pentium4-cygwin/libjava/testsuite
$ ls -l libcalls.so
-rwxrwxrwx 1 chj mkgroup 35574 Oct 24 15:59 libcalls.so
chj@Luddes /usr/local/src/trunk/objdir/pentium4-cygwin/libjava/testsuite
$
So, perhaps these failures are easy to "correct" in the test suite
files for libjava (targeted for cygwin).... Anyone knows?
Cheers,
/ChJ