[tcljava-dev] Re: Error during build
Brought to you by:
mdejong
|
From: Mo D. <md...@un...> - 2006-03-02 19:00:31
|
On Thu, 2 Mar 2006 10:37:50 -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
Well, the command line to javac is something like:
javac source/tjc/*.java
It does that instead of passing a huge number of filenames on the command line
because the exec blows up under Windows when the command line is too long.
I wonder if the Unix version of javac can't accept a file name pattern like the
Windows version does.
You could try to disable that pattern logic in jdk.tcl and see if that fixes it.
> I'm current on CVS, and ran:
>
> cvs -q up -dP
> ./configure --enable-jacl --disable-tclblend
> make
> make tjc2
You don't need to pass --disable-tclblend there since --enable-jacl
already does that implicitly. Also, you need to install before
running the tjc2 target.
make
make install
make tjc2
> Jacl ('make install' after above build) and TJC work otherwise:
>
> $ jaclsh
> % package require TJC
> 1.0
> % proc foo {args} {puts "foo here"}
> % info body foo
> puts "foo here"
> % foo
> foo here
> % TJC::compile foo
> % after 10000
> % info body foo
> "foo" isn't a procedure
> % foo
> foo here
>
>
> Small request: how about a '-wait' option for TJC::compile that waits
> until compilation is completed, throwing a Tcl error on compile error?
Notification is already implemented:
TJC::compile foo -readyvar rvar
vwait rvar
puts stderr "rvar result is \{$rvar\}"
cheers
Mo DeJong
|