solaris2 libjava 500 failures

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Wed Apr 25 15:09:00 GMT 2001


 > From: Tom Tromey <tromey@redhat.com>
 > 
 > >>>>> "Kaveh" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:
 > 
 > Kaveh> (I've redirected this to a public forum.)  The vast majority (perhaps
 > Kaveh> all) of the solaris2 libjava testsuite failures look like this:
 > 
 > >> libjava/testsuite/libjava.compile/static_3.java:0: unknown encoding: `646'
 > 
 > Thanks.  I think forcing the encoding for the test suite is the right
 > thing to do.
 > 
 > Could you try the appended patch?  I haven't tried it yet, be warned.
 > 
 > 2001-04-24  Tom Tromey  <tromey@redhat.com>
 > 
 > 	* lib/libjava.exp (find_jvscan): Use UTF-8 encoding.
 > 	(libjava_init): Likewise.

I tried it and things got wierd.

First of all, the test counts went way down, e.g. from yesterday:

 >                 === libjava Summary ===
 > 
 > # of expected passes            72
 > # of unexpected failures        576
 > # of expected failures          8
 > # of untested testcases         1060

to the following today with your patch:

 >                 === libjava Summary ===
 >  
 > # of expected passes            195
 > # of unexpected failures        179
 > # of expected failures          6

(Both the trunk and branch exhibited this.)

Another oddity is that I'm seeing these warnings in "compilation from
source" checks in e.g. the ArrayClass test but also others.  These
compilations used to fail with the encoding problem, but now link with
warnings:

 > ld: warning: file
 >  /tmp/foo/java-trunk/build/sparc-sun-solaris2.7//libjava/.libs/libgcj.so:
 >  attempted multiple inclusion of file
 > ld: warning: file
 >  /tmp/foo/java-trunk/build/sparc-sun-solaris2.7//boehm-gc/.libs/libgcjgc.so:
 >  attempted multiple inclusion of file
 > ld: warning: file
 >  /tmp/foo/java-trunk/build/sparc-sun-solaris2.7//zlib/.libs/libzgcj.so:
 >  attempted multiple inclusion of file
 > FAIL: ArrayClass compilation from source

I'm also still getting some encoding problems from jv-scan:

 > PASS: ArrayClass byte compilation
 > Executing on host: /tmp/foo/java-trunk/build/gcc/jv-scan
 > /tmp/foo/java-trunk/egcs-CVS20010424/libjava/testsuite/libjava.compile/ArrayClass.java
 >   --print-main (timeout = 300)
 > /tmp/foo/java-trunk/build/gcc/jv-scan: error: unknown encoding: `646'
 > This might mean that your locale's encoding is not supported
 > by your system's iconv(3) implementation.  If you aren't trying
 > to use a particular encoding for your input file, try the
 > `--encoding=UTF-8' option.
 > compiler exited with status 1

Then it fails the "compilation from bytecode" tests:

 > Executing on host:
 > /tmp/foo/java-trunk/build/sparc-sun-solaris2.7/libjava/testsuite/../libtool
 > --silent --tag=GCJ --mode=compile /tmp/foo/java-trunk/build/gcc/gcj
 > -B/tmp/foo/java-trunk/build/gcc/ --encoding=UTF-8
 > -B/tmp/foo/java-trunk/build/sparc-sun-solaris2.7/libjava/testsuite/../
 > /tmp/foo/java-trunk/build/sparc-sun-solaris2.7/libjava/testsuite//tmp/foo/java-trunk/build/gcc/jv-scan:.class
 > -c -g -o jv-scan:.o (timeout = 300)
 > 
 > gcj:
 > /tmp/foo/java-trunk/build/sparc-sun-solaris2.7/libjava/testsuite//tmp/foo/java-trunk/build/gcc/jv-scan:.class:
 > No such file or directory
 > gcj: No input files
 > compiler exited with status 1
 > FAIL: ArrayClass compilation from bytecode

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions



More information about the Java mailing list