build failure using ant with default settings

Jamison Hope jrh@theptrgroup.com
Wed Apr 18 16:25:00 GMT 2012


With a fresh checkout of Kawa, `ant` with default build settings:

	with-awt=true
	with-swing=true
	with-sax2=true
	enable-jemacs=false
	enable-xml=true
	enable-servlet=false
	enable-android=false

fails in slib-scm-classes when it tries to compile gnu/kawa/slib/ 
swing.scm.
There are a bunch of unknown class warnings for gnu.kawa.models  
classes and
finally a NPE "in inline-compiler for #<procedure as>" at swing.scm: 
19:37.

I don't have time to fully debug this at the moment, but the  
workaround is
to first invoke `ant -Denable-jemacs=true jemacs-java-classes` and  
then `ant`.

One problem, clearly, is that swing.scm, and therefore the slib-scm- 
classes
target, depends upon gnu/kawa/models/*.java but this is not reflected in
build.xml. Another is that gnu/kawa/models/*.java are only compiled if
enable-jemacs=true.

I presume that Make-based building does not have this issue (or that  
it used
to but this got fixed at some point) and so to fix the ant targets we  
just
need to update them to match what Make does.

Any volunteers?

Thanks,
Jamie

--
Jamison Hope
The PTR Group
www.theptrgroup.com





More information about the Kawa mailing list