I spent the day debugging my compile of TDK on windows.
Turns out there's most likely a compiler bug in gcc 6.3.0 and 7.3.0 --
from what I can tell, using -O2 resulted in some very similar code in
lib/tclcompiler/cmpWrite.c being optimized out. The assembler source is
a pain to read but it sure looked like the -O2 .s file optimized out a
small section of code. Ubuntu (which I've installed as a virtualbox VM)
is still using gcc 5.4.0 and that version of gcc does not exhibit the bug.
I've now managed to compile tclcompiler, tclparser and tbcload.
I've played around with the tclcompiler and it is pretty neat.
Next I figured I'd try one of the TDK apps. I chose the "check" app
since that seemed like it might be the easiest. I finally got it to run
with all it's "package required" working but it fails with the message:
can't read "starkit::topdir": no such variable
I'm guessing that TDK also needs starkit stuff (which was not included
on github). I'll make a further guess that all the packaging scripts
and/or installation scripts required by TDK were also not included on
github.
Just my opinion, but I'd say that the portion TDK dumped on github is
not at all usable in it's current state.
I've never messed with starkits and would not know how to proceed at
this point. The only Tcl script I have that I ever considered using
starkit also uses the img package and I am under the impression that
binary packages must be compiled into starkits in order to use them --
is that true?