Sunday, January 22, 2006

Trouble running the CDK JUnit tests with Cacao and Kaffe

Because I am still looking forward to testing CDK against the latest Classpath 0.20, I downloaded cacao 0.94-1 for Debian sid, then tried to compile CDK with it:

JAVA_HOME=/usr/lib/jvm/cacao ant -Dbuild.compiler=gcj clean test-all

But that hangs at some point with zero load. I have no idea what is going on there. I've spoken with twisti on the #classpath IRC channel, and he helped me run the compile with gdb, which indicated that at some point all threads were waiting.

I also tried it with kaffe in sid, but now with a XML parser in the CLASSPATH, as Dalibor in a previous blog item suggested:

export CLASSPATH=/usr/share/java/xercesImpl.jar:xmlParserAPIs.jar
JAVA_HOME=/usr/lib/kaffe ant -Dbuild.compiler=gcj clean test-all

But that failed too with:

[junit] Running org.openscience.cdk.test.CDKTests
[junit] kaffe-bin: /home/mkoch/debian/kaffe/kaffe- translate: Assertion `reinvoke == false' failed.
[junit] Test org.openscience.cdk.test.CDKTests FAILED

It did work previously :(

OK, to reproduce this yourself, you need to check out CDK from CVS (hoping that anonymous CVS is reasonable in sync, and online) with:

cvs login
cvs -z3 co -P cdk