public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/16658] New: errors compiling saxon xslt library
@ 2004-07-21 17:26 jbarnett at 2wire dot com
  2004-07-21 17:57 ` [Bug java/16658] " jbarnett at 2wire dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: jbarnett at 2wire dot com @ 2004-07-21 17:26 UTC (permalink / raw)
  To: java-prs

I'm trying to use gcj to compile the saxon xslt java library (version 6.5.3)
from source.

gcj -v reports:

Reading specs from /opt/cross/i386/lib/gcc/i686-tw-linux-gnu/3.4.1/specs
Reading specs from
/opt/cross/i386/lib/gcc/i686-tw-linux-gnu/3.4.1/../../../../i686-tw-linux-gnu/lib/libgcj.spec
rename spec lib to liborig
Configured with: /home/jcpage/depot/mp/tools/gcc-3.4.1/configure
--target=i686-tw-linux-gnu --host=i686-pc-linux-gnu --prefix=/opt/cross/i386
--enable-languages=c,c++,java --disable-nls --enable-shared
--enable-threads=posix --enable-c99 --enable-long-long
--with-headers=/opt/cross/i386/i686-tw-linux-gnu/include
Thread model: posix
gcc version 3.4.1

The first error I run into is in the com.icl.saxon.om package (it actually
happens with all files in the package, but I'll only include commands and output
for AbstractNode.java-the first source file):
with a cwd of src/com/icl/saxon/om, I try to run:
gcj -Wno-deprecated -I./../../../../ -Ixml-apis/src -c AbstractNode.java -o
AbstractNode.o

and get the following error:
./AbstractNode.java:33: error: Class `com.icl.saxon.om.AbstractNode' already
defined in AbstractNode.java:33.
   public abstract class AbstractNode implements Node, NodeInfo, SourceLocator,
DOMLocator {
                         ^
./AbstractNode.java:154: confused by earlier errors, bailing out


I can work around that error by running the following command with a CWD of src/:

gcj -Wno-deprecated -Ixml-apis/src -c com/icl/saxon/om/AbstractNode.java -o
AbstractNode.o


After working around this for all files in the om package: I get the following
error in the com.icl.saxon.tree package:

When compiling ElementImpl.java:
gcj -Wno-deprecated -I./../../../../ -Ixml-apis/src -c ElementImpl.java -o
ElementImpl.o

ElementImpl.java: In class `com.icl.saxon.tree.ElementImpl':
ElementImpl.java: In method `com.icl.saxon.tree.ElementImpl.setNameCode(int)':
ElementImpl.java:48: internal compiler error: in expand_expr_real, at expr.c:7090
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


all other files in the package build succesfully.  

running gcj with -save-temps only appears to generate .s files, so I will
refrain from attaching any files unless specifically asked to.  

the saxon source I am using is available from
http://prdownloads.sourceforge.net/saxon/saxon6_5_3.zip in the source.zip
archive inside of the saxon6_5_3 archive.  
The xml-apis source that needs to be included in the classpath is available from
http://apache.mirrors.versehost.com/xml/commons/xml-commons-1.0.b2.tar.gz in the
xml-commons-1.0.b2/java/external/src/ subdirectory of the archive.

-- 
           Summary: errors compiling saxon xslt library
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jbarnett at 2wire dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
@ 2004-07-21 17:57 ` jbarnett at 2wire dot com
  2004-07-22 17:01 ` jbarnett at 2wire dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: jbarnett at 2wire dot com @ 2004-07-21 17:57 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From jbarnett at 2wire dot com  2004-07-21 17:57 -------
Clarification: for the AbstractNode.java problem, it's not actually all the
classes in the com.icl.saxon.om package that fail, just the ones that implement
the "Node, NodeInfo, SourceLocator, DOMLocator" interfaces.

The common class definition that fails is:

public abstract class XXX implements Node, NodeInfo, SourceLocator, DOMLocator {
...
}

files that succeed either do not inherit or implement classes, or are classes
taht extend Exception, or interfaces that exetend NodeInfo

-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
  2004-07-21 17:57 ` [Bug java/16658] " jbarnett at 2wire dot com
@ 2004-07-22 17:01 ` jbarnett at 2wire dot com
  2004-09-08 21:50 ` jbarnett at 2wire dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: jbarnett at 2wire dot com @ 2004-07-22 17:01 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From jbarnett at 2wire dot com  2004-07-22 17:01 -------
Created an attachment (id=6800)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6800&action=view)
minimal source set to reproduce

attached is a pruned source tree of saxon and xml-apis:

running

gcj com/icl/saxon/tree/ElementImpl.java 

will reproduce the bug.

-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
  2004-07-21 17:57 ` [Bug java/16658] " jbarnett at 2wire dot com
  2004-07-22 17:01 ` jbarnett at 2wire dot com
@ 2004-09-08 21:50 ` jbarnett at 2wire dot com
  2004-09-08 22:45 ` tromey at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: jbarnett at 2wire dot com @ 2004-09-08 21:50 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From jbarnett at 2wire dot com  2004-09-08 21:50 -------
is there additional information needed to allow you guys to debug this properly?

-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
                   ` (2 preceding siblings ...)
  2004-09-08 21:50 ` jbarnett at 2wire dot com
@ 2004-09-08 22:45 ` tromey at gcc dot gnu dot org
  2004-09-08 23:28 ` jbarnett at 2wire dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-09-08 22:45 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-09-08 22:45 -------
With CVS head I don't see a crash, but I do see:

./javax/xml/transform/TransformerFactory.java:133: error: Nested class
javax.xml.parsers.FactoryFinder$ConfigurationError is non-public; cannot be
accessed from here.
           } catch (FactoryFinder.ConfigurationError e) {
                    ^

This appears to be correct, though.
FactoryFinder.ConfigurationError is package-private.
It is not accessible outside javax.xml.parsers


-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
                   ` (3 preceding siblings ...)
  2004-09-08 22:45 ` tromey at gcc dot gnu dot org
@ 2004-09-08 23:28 ` jbarnett at 2wire dot com
  2004-09-08 23:57 ` tromey at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: jbarnett at 2wire dot com @ 2004-09-08 23:28 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From jbarnett at 2wire dot com  2004-09-08 23:28 -------
Interesting....  but since javax/xml/transform/TransformerFactory.java doesn't
import javax.xml.parsers.FactoryFinder, FactoryFinder.ConfigurationError should
resolve to javax.xml.transform.FactoryFinder.ConfigurationError, which is
protected, but still accessible from javax.xml.transform.TransformerFactory.  

Hmm...  looking through the tarball I attached it seems that I left out
javax/xml/transform/FactoryFinder.java.  should I attach a new tarball, or just
the javax/xml/transform/FactoryFinder.java file?  I suppose I should get gcc
from CVS head and see how far I can get with it, since the crash seems to be
fixed.  Will try that and report results when I get a chance.

-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
                   ` (4 preceding siblings ...)
  2004-09-08 23:28 ` jbarnett at 2wire dot com
@ 2004-09-08 23:57 ` tromey at gcc dot gnu dot org
  2004-09-09  0:01 ` jbarnett at 2wire dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-09-08 23:57 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-09-08 23:57 -------
Please attach the file.
Perhaps gcj will crash when this file is included.


-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
                   ` (5 preceding siblings ...)
  2004-09-08 23:57 ` tromey at gcc dot gnu dot org
@ 2004-09-09  0:01 ` jbarnett at 2wire dot com
  2004-09-09 14:48 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: jbarnett at 2wire dot com @ 2004-09-09  0:01 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From jbarnett at 2wire dot com  2004-09-09 00:01 -------
Created an attachment (id=7072)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7072&action=view)
javax/xml/transform/FactoryFinder.java

javax/xml/transform/FactoryFinder.java

-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
                   ` (6 preceding siblings ...)
  2004-09-09  0:01 ` jbarnett at 2wire dot com
@ 2004-09-09 14:48 ` tromey at gcc dot gnu dot org
  2004-09-09 16:38 ` pinskia at gcc dot gnu dot org
  2004-10-15 17:16 ` jbarnett at 2wire dot com
  9 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-09-09 14:48 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-09-09 14:48 -------
With the new file, I do get an ICE.
Thanks for uploading it.


-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
                   ` (7 preceding siblings ...)
  2004-09-09 14:48 ` tromey at gcc dot gnu dot org
@ 2004-09-09 16:38 ` pinskia at gcc dot gnu dot org
  2004-10-15 17:16 ` jbarnett at 2wire dot com
  9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-09 16:38 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-09 16:38:14
               date|                            |


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


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

* [Bug java/16658] errors compiling saxon xslt library
  2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
                   ` (8 preceding siblings ...)
  2004-09-09 16:38 ` pinskia at gcc dot gnu dot org
@ 2004-10-15 17:16 ` jbarnett at 2wire dot com
  9 siblings, 0 replies; 12+ messages in thread
From: jbarnett at 2wire dot com @ 2004-10-15 17:16 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From jbarnett at 2wire dot com  2004-10-15 17:16 -------
any luck trying to narrow down the fix for this?

-- 


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


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

* [Bug java/16658] errors compiling saxon xslt library
       [not found] <bug-16658-8989@http.gcc.gnu.org/bugzilla/>
@ 2007-01-09 20:48 ` tromey at gcc dot gnu dot org
  0 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:48 UTC (permalink / raw)
  To: java-prs



------- Comment #10 from tromey at gcc dot gnu dot org  2007-01-09 20:46 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

end of thread, other threads:[~2007-01-09 20:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-21 17:26 [Bug java/16658] New: errors compiling saxon xslt library jbarnett at 2wire dot com
2004-07-21 17:57 ` [Bug java/16658] " jbarnett at 2wire dot com
2004-07-22 17:01 ` jbarnett at 2wire dot com
2004-09-08 21:50 ` jbarnett at 2wire dot com
2004-09-08 22:45 ` tromey at gcc dot gnu dot org
2004-09-08 23:28 ` jbarnett at 2wire dot com
2004-09-08 23:57 ` tromey at gcc dot gnu dot org
2004-09-09  0:01 ` jbarnett at 2wire dot com
2004-09-09 14:48 ` tromey at gcc dot gnu dot org
2004-09-09 16:38 ` pinskia at gcc dot gnu dot org
2004-10-15 17:16 ` jbarnett at 2wire dot com
     [not found] <bug-16658-8989@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:48 ` tromey 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).