Bug 18811 - [4.0 Regression] rhug build problem, regression?
Summary: [4.0 Regression] rhug build problem, regression?
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Andrew Haley
URL:
Keywords: patch, rejects-valid
Depends on:
Blocks:
 
Reported: 2004-12-03 15:56 UTC by Timo Lindfors
Modified: 2004-12-08 14:35 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-12-07 18:53:36


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Lindfors 2004-12-03 15:56:13 UTC
I just noticed that building rhug from cvs fails with the current gcc from cvs.
I'm reporting this here because gcc 3.4.2 seems to build the problematic file so
this might be regression.

$ CVS_RSH=ssh cvs -d:pserver:anoncvs@sources.redhat.com:/cvs/rhug -z9 co rhug
$ cd rhug
$ export LD_LIBRARY_PATH=$INSTALLDIR/gcc/lib
$ PATH=$INSTALLDIR/gcc/bin:$PATH ./configure --prefix=$INSTALLDIR/rhug
$ PATH=$INSTALLDIR/gcc/bin:$PATH make
...
gcj --encoding=ISO-8859-1 -Wno-deprecated
--classpath=upstream/src:upstream:./upstream/src:./upstream -fassume-compiled -g
-O2 -c upstream/junit/tests/runner/AllTests.java -MT
upstream/junit/tests/runner/AllTests.lo -MD -MP -MF
.deps/upstream/junit/tests/runner/AllTests.TPlo  -fPIC -o
upstream/junit/tests/runner/.libs/AllTests.o
upstream/junit/tests/runner/AllTests.java:19: error: cannot find file for class
junit.runner.Sorter$Swapper
make[1]: *** [upstream/junit/tests/runner/AllTests.lo] Error 1
make[1]: Leaving directory `/home/lindi/src-2004-11-27/rhug/junit'
make: *** [all-recursive] Error 1


Next I managed to reproduce the issue with


[lindi@protu rhug]$ cd junit/
[lindi@protu junit]$ PATH=$INSTALLDIR/gcc/bin:$PATH gcj --encoding=ISO-8859-1
-Wno-deprecated --classpath=upstream/src:upstream:./upstream/src:./upstream
-fassume-compiled -g -O2 -c upstream/junit/tests/runner/AllTests.java -MT
upstream/junit/tests/runner/AllTests.lo -MD -MP -MF
.deps/upstream/junit/tests/runner/AllTests.TPlo  -fPIC -o
upstream/junit/tests/runner/.libs/AllTests.o
[lindi@protu junit]$ PATH=$INSTALLDIR/gcc/bin:$PATH gcj --version
gcj (GCC) 4.0.0 20041127 (experimental)
...

and noticed that the an older gcc handles the situation without errors


[lindi@protu junit]$ gcj --encoding=ISO-8859-1 -Wno-deprecated
--classpath=upstream/src:upstream:./upstream/src:./upstream -fassume-compiled -g
-O2 -c upstream/junit/tests/runner/AllTests.java -MT
upstream/junit/tests/runner/AllTests.lo -MD -MP -MF
.deps/upstream/junit/tests/runner/AllTests.TPlo  -fPIC -o
upstream/junit/tests/runner/.libs/AllTests.o
[lindi@protu junit]$ gcj --version
gcj (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
...

Is this regression in gcc, a bug in rhug or something else?
Comment 1 Andrew Haley 2004-12-03 18:28:26 UTC
Is junit.runner.Sorter$Swapper in the path?
Comment 2 Andrew Pinski 2004-12-07 19:07:45 UTC
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00461.html>.
Comment 3 GCC Commits 2004-12-08 14:08:45 UTC
Subject: Bug 18811

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	aph@gcc.gnu.org	2004-12-08 14:08:28

Modified files:
	gcc/java       : ChangeLog 

Log message:
	2004-12-07  Andrew Haley  <aph@redhat.com>
	
	PR java/18811:
	* jcf-parse.c (load_class): Remove sanity test for missing inner
	class file.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1519&r2=1.1520

Comment 4 Andrew Pinski 2004-12-08 14:35:19 UTC
Fixed.