From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15813 invoked by alias); 21 Jul 2004 17:26:14 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 15795 invoked by uid 48); 21 Jul 2004 17:26:14 -0000 Date: Wed, 21 Jul 2004 17:26:00 -0000 From: "jbarnett at 2wire dot com" To: java-prs@gcc.gnu.org Message-ID: <20040721172610.16658.jbarnett@2wire.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/16658] New: errors compiling saxon xslt library X-Bugzilla-Reason: CC X-SW-Source: 2004-q3/txt/msg00080.txt.bz2 List-Id: 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 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