libgcj/2999: Compilation error
preverdy@ifrance.com
preverdy@ifrance.com
Wed May 30 04:36:00 GMT 2001
>Number: 2999
>Category: libgcj
>Synopsis: Compilation error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 30 04:36:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: preverdy@ifrance.com
>Release: unknown-1.0
>Organization:
>Environment:
i686-pc-cygwin
>Description:
When compiling all gcc 3.0 with latest sources, it seems to be impossible to compile some java files.
The first one is java/lang/ClassLoader.java
>How-To-Repeat:
* Launch Cygwin 1.3.1
* create a "compile" folder and go into it:
$ mkdir compile
$ cd compile
* download latest sources with cvs:
$ cvs -d:pserver:anoncvs@gcc.gnu.org:/cvs/gcc login
(password: anoncvs)
$ cvs -z 9 -d:pserver:anoncvs@gcc.gnu.org:/cvs/gcc co gcc
* Create a "objdir" folder:
$ mkdir objdir
$ cd objdir
* Launch the compilation and make bootstrap
$ ../gcc/configure --enable-threads=posix -- prefix=/home/joerg/gcc \
--enable-shared --enable-languages=c++,java \
--with-as=/opt/gnu/bin/as --with-ld=/opt/gnu/bin/ld \
--enable-libgcj
$ make bootstrap
The first error is when compiling java/lang/ClassLoader.java
The last echo is:
/home/preverdy/compile/objdir/gcc/gcj -B/home/preverdy/compile/objdir/i686-pc-cy
gwin/libjava/ -B/home/preverdy/compile/objdir/gcc/ --encoding=UTF-8 -C -g -class
path /home/preverdy/compile/objdir/i686-pc-cygwin/libjava:/home/preverdy/compile
/gcc/libjava -d /home/preverdy/compile/objdir/i686-pc-cygwin/libjava java/lang/C
lassLoader.java
/home/preverdy/compile/gcc/libjava/gnu/java/security/provider/gnu.java:31: Class
`gnu.java.security.provider.Gnu' already defined in /home/preverdy/compile/gcc/
libjava/gnu/java/security/provider/Gnu.java:31.
public final class Gnu extends Provider
^
/home/preverdy/compile/gcc/libjava/gnu/java/security/provider/gnu.java:34: confu
sed by earlier errors, bailing out
make[2]: *** [libgcj.jar] Error 1
make[2]: Leaving directory `/home/preverdy/compile/objdir/i686-pc-cygwin/libjava
'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/preverdy/compile/objdir'
make: *** [bootstrap] Error 2
Note: when modifying ClassLoader.java in order to compile, some other java files do not compile too.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list