Multiple file compilation patch

Mark Wielaard mark@klomp.org
Sun Mar 18 05:51:00 GMT 2001


Hi,
On Sun, Mar 18, 2001 at 10:20:46PM +1200, Bryce McKinlay wrote:
>> The two that I was struggling with today are:
>> - Beanshell - www.beanshell.org
> - KopiSusu (kjc) - http://www.klomp.org/KopiSusu/
>> These may require some small modifications to work around other gcj
> bugs/features, but both basically work before the multiple-file patch and
> fail miserably with it applied.

Did you actually get a working kjc executable? Which gcj version did you
use? I tried compiling with an older gcj (20010218) by putting all source
files in one directory (also for antlr and gnu.getopt, since compiling
from jars and/or classes didn't work). I also had to work around some
final variable problems that you already noticed and had to rewrite one
anonymous inner class to a 'normal' static inner class to get gcj to
compile everything. But then I got (after 20 minutes compiling):
/tmp/ccFwt9Dz.o: In function
`at::dms::kjc::KjcParser::jQualifiedNewExpression(at::dms::kjc::JExpression*)':
/home/mark/src/KopiSusu/allsrc/src/at/dms/kjc/KjcParser.java(.text+0xb606):
undefined reference to
`at::dms::kjc::JNewAnonymousClassExpression::JNewAnonymousClassExpression(at::dms::compiler::TokenReference*,
at::dms::kjc::CClassType*, at::dms::kjc::JExpression*, java::lang::String*,
at::dms::kjc*, at::dms::kjc::JClassDeclaration*)'
/tmp/ccFwt9Dz.o: In function `at::dms::kjc::KjcParser::jNewExpression() ':
/home/mark/src/KopiSusu/allsrc/src/at/dms/kjc/KjcParser.java(.text+0xbadb):
undefined reference to
`at::dms::kjc::JNewAnonymousClassExpression::JNewAnonymousClassExpression(at::dms::compiler::TokenReference*,
at::dms::kjc::CClassType*, at::dms::kjc::JExpression*, java::lang::String*,
at::dms::kjc*, at::dms::kjc::JClassDeclaration*)'
collect2: ld returned 1 exit status
I would really like to see how well this new kjc does on the jacks testsuite
if it is compiled with gcj. Used with the IBM 1.3 runtime it does very well.
kjc: Total 1630 Passed 1501 Skipped 7 Failed 122
(That is better then gcj, jikes and sun/ibm javac!)
But used with the kaffe runtime it is not so good.
kaffe: Total 1630 Passed 1371 Skipped 7 Failed 252
Hopefully compiled with gcj it will do much better.
Cheers,
Mark
-- 
Stuff to read:
 < http://www.toad.com/gnu/whatswrong.html >
 What's Wrong with Copy Protection, by John Gilmore


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /