From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16031 invoked by alias); 11 Jul 2003 01:00:44 -0000 Mailing-List: contact rhug-rhats-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rhug-rhats-owner@sources.redhat.com Received: (qmail 16024 invoked from network); 11 Jul 2003 01:00:44 -0000 Received: from unknown (HELO web80603.mail.yahoo.com) (66.218.79.92) by sources.redhat.com with SMTP; 11 Jul 2003 01:00:44 -0000 Message-ID: <20030711010043.21059.qmail@web80603.mail.yahoo.com> Received: from [63.86.180.138] by web80603.mail.yahoo.com via HTTP; Thu, 10 Jul 2003 18:00:43 PDT Date: Fri, 11 Jul 2003 01:00:00 -0000 From: paul taney Subject: compiling antlr with gcj To: rhug-rhats@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00001.txt.bz2 rhug-arhats, This discussion is taking place on the antlr-interest list. A senior developer of antlr and I are engaged in trying to compile antlr with gcj. We have gotten it to compile but are having link problems on Throwable.java Could you please comment on the error we're getting? We would appreciate it so much. If you don't know, antlr is an advanced parser generator at http://antlr.org Sincerely, paul --- --- Loring, I have put the --classpath back into the script and added this to that path: /usr/local/gcc/gcc-3.3/libjava/java/lang because that's were gcc's Throwable lives. And added ".o" to the -o arg (because it complained that antlr was a dir). Now the $CLASSPATH is /usr/local/gcc/gcc-3.3/libjava:\ /usr/local/gcc/gcc-3.3/build/i686-pc-linux-gnu/libjava:\ /usr/local/gcc/gcc-3.3/libjava/java/lang:\ /usr/local/java/j2sdk1.4.2:\ /usr/local/java/j2sdk1.4.2/bin:\ /usr/local/jython-2.1:. and the compile script is: gcj --classpath $CLASSPATHGNU -o antlr.o --main=Tool \ antlr/*.java \ antlr/actions/cpp/*.java \ antlr/actions/csharp/*.java \ antlr/actions/java/*.java \ antlr/build/*.java \ antlr/collections/*.java \ antlr/collections/impl/*.java \ antlr/debug/*.java \ antlr/preprocessor/*.java Still we have: /tmp/ccfeKrb0.o: In function `antlr::ANTLRError::ANTLRError(void)': /usr/local/antlr/antlr-2.7.2/antlr/ANTLRError.java(.data+0x44): undefined reference to `java::lang::Throwable::getCause(void)' /usr/local/antlr/antlr-2.7.2/antlr/ANTLRError.java(.data+0x48): undefined reference to `java::lang::Throwable::initCause(java::lang::Throwable *)' /usr/local/antlr/antlr-2.7.2/antlr/ANTLRError.java(.data+0x5c): undefined reference to `java::lang::Throwable::getStackTrace(void)' /usr/local/antlr/antlr-2.7.2/antlr/ANTLRError.java(.data+0x60): undefined reference to `java::lang::Throwable::setStackTrace(JArray *)' $ grep getCause $PATH/Throwable.java public Throwable getCause() * Then if getCause() doesn't return null it adds a line Throwable cause = getCause(); cause = cause.getCause(); Anybody have a clue? paul --- lgcraymer wrote: > All-- > > Since Paul and I took this discussion offline (my > role has been > mostly to interpret the compiler error messages > while he does all the > real work), he has made some impressive progress. > After adding a few > type casts to the ANTLR source, all of ANTLR > compiles and we appear to > be down to one link error--java.lang.Throwable > methods cannot be > found. > > At this point, our best guess is that this is fixed > in the version of > gcj used by RHUG > (--they call for a > recent development snapshot) to get all of their > Java projects to > compile (some of which are more demanding than > ANTLR). Unfortunately, > Paul is stuck with a slow connection and has a > family emergency to > attend to, and I'm spending my spare time trying to > prepare for this > weekend's discussions. We won't be able to take the > last small steps > for several days. If anyone out there wants to > produce an executable > sooner, you have our blessings. I'll post his diffs > and compilation > script (neither of us have yet looked into gcj > makefiles) below. > > --Loring > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com