GCC 3.2 suddenly fails every java test, CLASSPATH wrong
H. J. Lu
hjl@lucon.org
Thu Aug 15 08:05:00 GMT 2002
On Thu, Aug 15, 2002 at 11:01:29AM -0400, Kaveh R. Ghazi wrote:
> All of a sudden, every test in the java testsuite is failing in GCC-3.2:
> http://gcc.gnu.org/ml/gcc-testresults/2002-08/msg00486.html
>> It's not just me:
> http://gcc.gnu.org/ml/gcc-testresults/2002-08/msg00462.html
>> In the logfile, all of the failures look like this:
>> > Can't find default package `java.lang'. Check the CLASSPATH
> > environment variable and the access to the archives
> > 1 error
>> The code in /libjava/testsuite/lib/libjava.exp is not setting the
> CLASSPATH correctly:
>> > # Determine the version so we can find the libgcj jar file.
> > set text [eval exec "$GCJ_UNDER_TEST --version 2>@ stdout"]
> > regexp -- "gcj \[^ \]+ (\[^ \]+) .*" $text ignore gcc_version
> > verbose "jar file is libgcj-$gcc_version.jar"
> >
> > [...]
> >
> > # Set the CLASSPATH environment variable
> > verbose "CLASSPATH is
> > .:$srcdir/$subdir:$objdir:$objdir/../libgcj-$gcc_version.jar"
> > global env
> > set env(CLASSPATH)
> > ".:$srcdir/$subdir:$objdir:$objdir/../libgcj-$gcc_version.jar"
>> I think the regexp expects the date and "(prerelease)" strings which
> normally appear, and when the version simply becomes "3.2" for the
> actual release it gets confused. I don't know this stuff well enough
> to suggest a fix that works for both prerelease and actual release.
>
I was wondering the same thing. This works
http://gcc.gnu.org/ml/gcc-testresults/2002-08/msg00457.html
because I have gcc 3.2 installed on that machine. All my other machines
failed. I thought it might be my new binutils :-). It has to be fixed.
H.J.
More information about the Java
mailing list