patthoyts/kitgen — Issue #2: Error running validate.tcl
Author: zdia
Created: 2012-01-17 16:22:54+00:00
State: open

Compiling and linking has finished successfully on a FreeBSD 8.2 system. But there was an error message caused by file "/lib/tcl8" in the following source lines of _setupvfs.tcl_.

lappend clifiles __lib/tcl8__ \
lib/tcl8@/clock.tcl \
lib/tcl8@/tm.tcl

I deleted this element and then _setupvfs.tcl_ passed. But _validate.tcl_ is complaining:

Version : Tcl 8.5.11 8.2-RELEASE i386
package rechan: 1.0
couldn't read file "/usr/home/dia/gorilla/work/kitgen/8.5/kit-mybuild/tclkit-cli/lib/tcl8.5/tm.tcl": no such file or directory
while executing
"source /usr/home/dia/gorilla/work/kitgen/8.5/kit-mybuild/tclkit-cli/lib/tcl8.5/tm.tcl"
(in namespace eval "::" script line 1)
invoked from within
"namespace eval :: $auto_index($name)"
(procedure "auto_load" line 35)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::tcl::tm::UnknownHandler")
(procedure "::unknown" line 30)
invoked from within
"::tcl::tm::UnknownHandler ::tclPkgUnknown starkit 0-"
("package unknown" script)
invoked from within
"package require $pkg"
("foreach" body line 1)
invoked from within
"foreach pkg $ext {lappend r $pkg [package require $pkg]; puts "package $pkg: [package require $pkg]"}"
(file "../../validate.tcl" line 19)

The program _tclkit_ cannot find the package starkit:

dhcppc3# ./tclkit-cli
% package require rechan
1.0
% package require starkit
couldn't read file "/usr/home/dia/gorilla/work/kitgen/8.5/kit-mybuild/tclkit-cli/lib/tcl8.5/tm.tcl": no such file or directory
% puts $auto_path
/usr/home/dia/gorilla/work/kitgen/8.5/kit-mybuild/tclkit-cli/lib/tcl8.5 /usr/home/dia/gorilla/work/kitgen/8.5/kit-mybuild/tclkit-cli/lib

Well, there is no path .../kit-mybuild/tclkit-cli/lib" in my folder _kit-mybuild_:

$ tree kit-mybuild/ -L 2 -F
kit-mybuild/
|-- Makefile*
|-- build/
| |-- bin/
| |-- files/
| |-- include/
| |-- lib/
| |-- man/
| |-- pwb.o*
| |-- rechan.o*
| |-- share/
| |-- tcl/
| |-- tclAppInit.o*
| |-- tclvfs/
| |-- vqtcl/
| |-- zlib/
| `-- zlib.o*
|-- kit-cli*
|-- lib/
| `-- tclConfig.sh*
`-- tclkit-cli*

It seems kit-cli -init- with _setupvfs.tcl_ did not write correctly the vfs into the folder tclkit-cli.

How could I debug this issue?