java/1380: Compiling Gnu's regexp for Java

Heinz@chanet.de Heinz@chanet.de
Wed Dec 20 12:25:00 GMT 2000


>Number:         1380
>Category:       java
>Synopsis:       Compiling Gnu's regexp for Java
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    green
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:19:28 PST 2000
>Closed-Date:    
>Last-Modified:  Mon Oct  9 19:20:00 PDT 2000
>Originator:     Heinz Doerr
>Release:        gcc version 2.95.2
>Organization:
>Environment:
Linux 2.2.16 - Suse 7.0 Distribution, i386
gcc version 2.95.2 19991024 (release)
>Description:
I'm trying to compile Gnu's regexp-1.0.8.jar to an object file. According to the description on the web, jar Files seems to be allowed as gcj source.
But all I get is the following output:
./gnu-regexp-1.0.8.jar:0: Not a valid Java .class file.
Is there anything I can do?
>How-To-Repeat:
gcj -o gnu-regexp.o gnu-regexp-1.0.8.jar
>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/352


From: Tom Tromey <tromey@cygnus.com>
To: Heinz@chanet.de
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/352: Compiling Gnu's regexp for Java
Date: 09 Oct 2000 10:57:28 -0600

 >>>>> "Heinz" == Heinz  <Heinz@chanet.de> writes:
 
 >> Release:        gcc version 2.95.2
 
 Heinz> ./gnu-regexp-1.0.8.jar:0: Not a valid Java .class file.
 
 gcj 2.95.2 couldn't read compressed zip files.  I bet the .class files
 in your jar are compressed.  Can you find out?
 
 One workaround is to unjar the archive and then compile each .class
 file separately.  Or, you could get the source and compile directly
 from .java.
 
 I haven't tested compiling an entire .jar file so I don't know whether
 or not it actually works.
 
 Tom

From: Bryce McKinlay <bryce@albatross.co.nz>
To: Heinz@chanet.de
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/352: Compiling Gnu's regexp for Java
Date: Tue, 10 Oct 2000 13:36:06 +1300

 Heinz@chanet.de wrote:
 
 > >Environment:
 > Linux 2.2.16 - Suse 7.0 Distribution, i386
 > gcc version 2.95.2 19991024 (release)
 > >Description:
 > I'm trying to compile Gnu's regexp-1.0.8.jar to an object file. According to the description on the web, jar Files seems to be allowed as gcj source.
 > But all I get is the following output:
 > ./gnu-regexp-1.0.8.jar:0: Not a valid Java .class file.
 > Is there anything I can do?
 
 You need to get a newwer gcj. 2.95.2 is too old.
 
 However, I'm getting a segfault trying to compile a .jar file with a recent compiler:
 
 (gdb) r gnu-regexp-1.0.8.jar -fno-use-divide-subroutine -fuse-boehm-gc -fasynchronous-exceptions -quiet -dumpbase gnu-regexp-1.0.8.jar -g1 -version -o
 /tmp/cc8fdFdw.s
 Starting program: /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/jc1 gnu-regexp-1.0.8.jar -fno-use-divide-subroutine -fuse-boehm-gc
 -fasynchronous-exceptions -quiet -dumpbase gnu-regexp-1.0.8.jar -g1 -version -o /tmp/cc8fdFdw.s
 GNU Java version 2.97 20001008 (experimental) (i686-pc-linux-gnu) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
 
 Program received signal SIGSEGV, Segmentation fault.
 0x4006c6d4 in _IO_seekoff (fp=0x0, offset=251, dir=0, mode=3) at ioseekoff.c:56
 56      ioseekoff.c: No such file or directory.
 (gdb) bt
 #0  0x4006c6d4 in _IO_seekoff (fp=0x0, offset=251, dir=0, mode=3)
     at ioseekoff.c:56
 #1  0x4006cfc9 in fseek (fp=0x0, offset=251, whence=0) at fseek.c:39
 #2  0x80a2f5a in parse_zip_file_entries () at ../../../gcc/java/jcf-parse.c:961
 #3  0x80a2cd0 in yyparse () at ../../../gcc/java/jcf-parse.c:915
 #4  0x80aef65 in compile_file (name=0x4011c6a0 "gnu-regexp-1.0.8.jar")
     at ../../gcc/toplev.c:2350
 #5  0x80b29b4 in main (argc=12, argv=0xbffff9c4) at ../../gcc/toplev.c:4845
 
 
 So I'm going to modify this PR and keep it open.
 
 regards
 
   [ bryce ]
 
 
Responsible-Changed-From-To: apbianco->green
Responsible-Changed-By: green
Responsible-Changed-When: Mon Oct  9 19:19:25 2000
Responsible-Changed-Why:
    I did the original zlib hacking in gcj, so I'll take a look at the bug Bryce found.

From: green@cygnus.com
To: Heinz@chanet.de, apbianco@cygnus.com, green@cygnus.com,
  java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/352
Date: 10 Oct 2000 02:19:25 -0000

 Synopsis: Compiling Gnu's regexp for Java
 
 Responsible-Changed-From-To: apbianco->green
 Responsible-Changed-By: green
 Responsible-Changed-When: Mon Oct  9 19:19:25 2000
 Responsible-Changed-Why:
     I did the original zlib hacking in gcj, so I'll take a look at the bug Bryce found.
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=352&database=java
>Unformatted:




More information about the Gcc-prs mailing list