This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.2 suddenly fails every java test, CLASSPATH wrong
- From: "H. J. Lu" <hjl at lucon dot org>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc at gcc dot gnu dot org, java at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Thu, 15 Aug 2002 08:05:52 -0700
- Subject: Re: GCC 3.2 suddenly fails every java test, CLASSPATH wrong
- References: <200208151501.LAA02954@caip.rutgers.edu>
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.