From: Anthony Green <green@redhat.com>
To: apbianco@cygnus.com
Cc: rhug-rhats@sources.redhat.com
Subject: gcj -C bug in xalan
Date: Sun, 09 Sep 2001 09:41:00 -0000 [thread overview]
Message-ID: <200109091641.JAA30245@fencer.cygnus.com> (raw)
Hi Alex -
I recently checked in changes to build Xalan .class files before
the object code. For this to work, I had to add the following bits...
%.class: %.java
$(GCJ) -C --encoding=UTF-8 $(CLASSPATH) -O2 -d upstream/src $<
# Work around a gcj bug by putting the srcdir at the front of the classpath.
upstream/src/org/apache/xalan/xsltc/compiler/util/NodeType.class: upstream/src/org/apache/xalan/xsltc/compiler/util/NodeType.java
gcj -C --encoding=UTF-8 -fCLASSPATH=$(srcdir)/upstream/src:../xerces/upstream/src:../BCEL/upstream:../cup/upstream:$(srcdir)/upstream/src -O2 -d upstream/src $(srcdir)/upstream/src/org/apache/xalan/xsltc/compiler/util/NodeType.java
upstream/src/org/apache/xalan/xsltc/compiler/util/Type.class: upstream/src/org/apache/xalan/xsltc/compiler/util/Type.java
gcj -C --encoding=UTF-8 -fCLASSPATH=$(srcdir)/upstream/src:../xerces/upstream/src:../BCEL/upstream:../cup/upstream:$(srcdir)/upstream/src -O2 -d upstream/src $(srcdir)/upstream/src/org/apache/xalan/xsltc/compiler/util/Type.java
The default rule has the classpath starting with upstream/src (the
build directory). However, when building NoteType.class and
Type.class, gcj -C fails when it has to read generated class files
first. The exceptions above force the $(srcdir)/upstream/src to the
front of the classpath as a work around. If you remove them you'll
see errors like...
gcj -C --encoding=UTF-8 -fCLASSPATH=upstream/src:../xerces/upstream/src:../BCEL/upstream:../cup/upstream:/fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src -O2 -d upstream/src /fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src/org/apache/xalan/xsltc/compiler/util/Type.java
/fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src/org/apache/xalan/xsltc/compiler/NodeTest.java:79: Undefined variable or class name: `DOM'.
public static final int ANODE = DOM.FIRST_TYPE - 1;
^
/fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src/org/apache/xalan/xsltc/compiler/NodeTest.java:72: Undefined variable or class name: `DOM'.
public static final int ROOT = DOM.ROOT;
^
/fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src/org/apache/xalan/xsltc/compiler/NodeTest.java:73: Undefined variable or class name: `DOM'.
public static final int ELEMENT = DOM.ELEMENT;
^
/fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src/org/apache/xalan/xsltc/compiler/NodeTest.java:74: Undefined variable or class name: `DOM'.
public static final int ATTRIBUTE = DOM.ATTRIBUTE;
^
/fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src/org/apache/xalan/xsltc/compiler/NodeTest.java:69: Undefined variable or class name: `DOM'.
public static final int TEXT = DOM.TEXT;
^
/fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src/org/apache/xalan/xsltc/compiler/NodeTest.java:70: Undefined variable or class name: `DOM'.
public static final int COMMENT = DOM.COMMENT;
^
/fencer/cutlass/aph/green/cvs/rhug/xalan/upstream/src/org/apache/xalan/xsltc/compiler/NodeTest.java:71: Undefined variable or class name: `DOM'.
public static final int PI = DOM.PROCESSING_INSTRUCTION;
^
7 errors
make: *** [upstream/src/org/apache/xalan/xsltc/compiler/util/Type.class] Error 1
Any ideas?
AG
next reply other threads:[~2001-09-09 9:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-09 9:41 Anthony Green [this message]
2001-09-10 13:24 ` Alexandre Petit-Bianco
2001-09-10 13:33 ` Anthony Green
2001-09-10 13:42 ` Anthony Green
2001-09-11 1:21 ` Alexandre Petit-Bianco
2001-09-13 15:14 ` Alexandre Petit-Bianco
2001-09-13 15:25 ` Anthony Green
2001-09-14 14:35 ` Anthony Green
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200109091641.JAA30245@fencer.cygnus.com \
--to=green@redhat.com \
--cc=apbianco@cygnus.com \
--cc=rhug-rhats@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).