public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/24698]  New: [4.1 regression] Apparent problem getting non-.class files out of jars
@ 2005-11-06 19:53 bero at arklinux dot org
  2005-11-19 15:00 ` [Bug java/24698] " bero at arklinux dot org
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: bero at arklinux dot org @ 2005-11-06 19:53 UTC (permalink / raw)
  To: java-prs

Sorry for the vague description and huge test case - I don't speak Java beyond
the "it looks a lot like C++" level.

Trying to use a gcj 4.1 SVN rev 106562-compiled ecj (built using the workaround
from bug 24441) results in a SIGABRT when trying to translate any .java file
(even a simple helloworld.java).

strace-ing the output indicates it can't locate the compiler messages, which
are in messages.properties, which is definitely included in the .jar and the
.jar is in the classpath. Looks like gcj/gij look for a messages.class file
instead.
Relevant parts of strace output:
* open("/usr/lib/libeclipse-ecj.so", O_RDONLY) = 3
<--- It finds the precompiled version [the problem doesn't go away if I delete
that and use the .jar only]
* stat64("/usr/share/java/eclipse-ecj.jar", {st_mode=S_IFREG|0644,
st_size=905576, ...}) = 0
* open("/usr/share/java/eclipse-ecj.jar", O_RDONLY|O_LARGEFILE) = 9
<--- It finds and reads the jar file nevertheless
* open("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.la",
O_RDONLY) = -1 ENOENT (No such file or directory)
*
open("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.la",
O_RDONLY) = -1 ENOENT (No such file or directory)
* open("lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.la",
O_RDONLY) = -1 ENOENT (No such file or directory)
* access("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.so",
R_OK) = -1 ENOENT (No such file or directory)
*
access("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.so",
R_OK) = -1 ENOENT (No such file or directory)
* open("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
*
open("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
*
access("/home/arklinux/./org/eclipse/jdt/internal/compiler/batch/messages_en.properties",
F_OK) = -1 ENOENT (No such file or directory)
* open("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.la",
O_RDONLY) = -1 ENOENT (No such file or directory)
* open("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.la",
O_RDONLY) = -1 ENOENT (No such file or directory)
* open("lib-org-eclipse-jdt-internal-compiler-batch-messages.la", O_RDONLY) =
-1 ENOENT (No such file or directory)
* access("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.so", R_OK)
= -1 ENOENT (No such file or directory)
* access("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.so",
R_OK) = -1 ENOENT (No such file or directory)
* open("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
* open("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
access("/home/arklinux/./org/eclipse/jdt/internal/compiler/batch/messages.class",
F_OK) = -1 ENOENT (No such file or directory)
<--- It looks for org.eclipse.jdt.internal.compiler.batch.messages* in various
places without finding anything, insisting it's supposed to be a .class when
it's in fact looking for messages.properties

[strace-ing the 4.0.x generated version confirms messages.properties is what
it's looking for].

$ jar tfv eclipse-ecj.jar |grep compiler/util/messages
  2764 Wed Jan 12 00:13:34 CET 2005
org/eclipse/jdt/internal/compiler/util/messages.properties


The same code (and build process) works nicely if gcj/gij 4.0.x is used.


-- 
           Summary: [4.1 regression] Apparent problem getting non-.class
                    files out of jars
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bero at arklinux dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24698


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2010-05-22 18:13 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-06 19:53 [Bug java/24698] New: [4.1 regression] Apparent problem getting non-.class files out of jars bero at arklinux dot org
2005-11-19 15:00 ` [Bug java/24698] " bero at arklinux dot org
2005-11-19 15:02 ` bero at arklinux dot org
2005-11-19 15:03 ` bero at arklinux dot org
2005-11-19 15:16 ` bero at arklinux dot org
2005-11-24 18:07 ` [Bug java/24698] [4.1/4.2 regression] Failure locating .properties files inside jars bero at arklinux dot org
2005-11-29 22:37 ` tromey at gcc dot gnu dot org
2005-12-12 19:16 ` bero at arklinux dot org
2005-12-12 19:18 ` [Bug java/24698] [4.1/4.2 regression] CLASSPATH . no longer implied for class specified on the command line bero at arklinux dot org
2005-12-12 20:02 ` bero at arklinux dot org
2005-12-12 21:00 ` bero at arklinux dot org
2005-12-16  1:01 ` [Bug java/24698] [4.1/4.2 regression] SIGABRT when trying to read properties files from jars; and " bero at arklinux dot org
2005-12-16  1:17 ` bero at arklinux dot org
2005-12-16  1:24 ` bero at arklinux dot org
2005-12-16  9:59 ` [Bug java/24698] [4.1/4.2 regression] SIGABRT when using ResourceBundle.getBundle with a nonexistant key bero at arklinux dot org
2005-12-16 13:22 ` bero at arklinux dot org
2006-01-08 18:41 ` tromey at gcc dot gnu dot org
2006-01-08 21:50 ` bero at arklinux dot org
2006-01-17 18:25 ` bero at arklinux dot org
2006-02-05 15:44 ` pinskia at gcc dot gnu dot org
2006-06-04 19:34 ` jsm28 at gcc dot gnu dot org
2006-06-04 19:50 ` mmitchel at gcc dot gnu dot org
2007-02-14  9:35 ` [Bug java/24698] [4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2008-07-04 20:06 ` [Bug java/24698] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-03-31 19:01 ` [Bug java/24698] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:30 ` rguenth at gcc dot gnu dot org
2010-05-22 18:13 ` [Bug java/24698] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).