Re: [tcljava-dev] Re: Error during build (FIX)
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2006-03-08 22:24:31
|
On Tue, 7 Mar 2006 16:53:45 -0700 Tom Poindexter <tpo...@ny...> wrote: > > > Mo, I got this error while trying to compile tjc: > > > > > > $ make tjc2 > > > compile TJC Tcl source files > > > tjc tjc.tjc > > > error: cannot read: /home/tpoindex/src/java/tcljava.cvs/build/tjc2/bldTJC/source/tjc/*.java > > > 1 error ... > See attached jdk.tcl.diff and jdk.tcl (to patch/replace > ./src/tjc/tjc/library/jdk.tcl) > > The fix glob's files to expand wildcard patterns, > writes the resulting list of files to another file, > and uses javac's '@filename' to specify the file > containing the list of files. > > Also, I had to increase the memory for javac to > prevent out of memory errors during 'make tjc2'. This is a fine patch, but I think this javac function is getting too messy. There is no real reason to support wildcard expansion and using the @file thing will keep it from working with another compiler. What I did was reimplement the [exec $JAVAC ...] bit so that files are processed in batches of 40. This should fix the compile under Unix while also avoiding the compiler out of memory problem. The fix is checked into CVS as of today, please let me know if you run into any more problems. Mo DeJong |