|
2010-02-09
| ||
| 21:20 | • Ticket [2948478fff] gmake genstubs fail for tcl cvs head status still Closed... artifact: cbbfc691eb user: lvirden | |
| 21:10 | • Ticket [2948478fff]: 4 changes artifact: f085e5ea18 user: dkf | |
| 21:06 | • Closed ticket [2948478fff]. artifact: cb125ceef4 user: ferrieux | |
| 20:50 | • Ticket [2948478fff]: 4 changes artifact: d94046594d user: ferrieux | |
| 20:42 | • Ticket [2948478fff]: 4 changes artifact: b83eebbee4 user: lvirden | |
| 20:34 | • Ticket [2948478fff]: 4 changes artifact: 3bd81044b1 user: lvirden | |
| 20:20 | • Ticket [2948478fff]: 4 changes artifact: 4d00ba85ad user: ferrieux | |
| 13:13 | • New ticket [2948478fff]. artifact: 5a2ad8db30 user: lvirden | |
gmake genstubs fail for tcl cvs head
Closed / Fixed2948478fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-02-09 13:13:33
platform sparc solaris 8 sun c compiler, tcl cvs head from tcl-20100208.tar.gz downloaded from activestate.
After configure, I ran gmake genstubs and got:
Emitting tclTomMath
syntax error in expression "$name in $hooks($intf)": extra tokens at end of expr
ession
("if" test expression)
while compiling
"if {$name in $hooks($intf)} {
set root 0
break;
}"
("if" then script line 2)
while compiling
"if {[info exists hooks($intf)]} {
if {$name in $hooks($intf)} {
set root 0
break;
}
}"
("foreach" body line 2)
while compiling
"foreach intf [array names interfaces] {
if {[info exists hooks($intf)]} {
if {$name in $hooks($intf)} {
set root 0
break;
}
}
}"
(compiling body of proc "emitInit", line 20)
invoked from within
"emitInit $name text"
(procedure "emitInits" line 20)
invoked from within
"emitInits"
(procedure "genStubs::init" line 22)
invoked from within
"genStubs::init"
(file "/vol/tclsrcsol/tcl86/tcl/tools/genStubs.tcl" line 1112)
gmake: *** [genstubs] Error 1
ferrieuxplain2010-02-09 20:20:20
Cannot repro on my Fedora 12 (bug GNU make also). Note that this step (genstubs) depends on a previously installed tclsh. Possibly in your case that's the system default tclsh, that can be a bit old and not support the "in" infix operator in expressions. I hurry to add that if that's the case, then indeed it is a bug, because the build system should take steps to be bootstrappable on reasonably old Tcl version. Using too new constructs like "in" that are easy to emulate is a mistake.
lvirdenplain2010-02-09 20:34:38
The tclsh in my path is a tclsh 8.4.9 version. genStubs.tcl has a package require Tcl 8.4 in it. So the tclsh was seen as compatible by Tcl. Tcl then declared the syntax wrong. The tclsh executable is no longer created by the core build scripts. It seems, to me, that the best solution would be for the core Makefiles to use the tclsh naming conventions that it creates. Certainly people could come along and create by hand additional links, etc. but the build environment shouldn't depend on those being present.
lvirdenplain2010-02-09 20:42:44
Let me clarify:
> The tclsh executable is no longer created by the core build scripts.
The core build scripts now build tclsh${VERSION}${EXE_SUFFIX}
This name is used in a few places, but not in the genstubs target. It uses $TCL_EXE, which only uses tclsh${EXE_SUFFIX}
ferrieuxplain2010-02-09 20:50:28
Strange. Here on Linux the naked "tclsh" is generated.
ferrieuxplain2010-02-09 21:06:54
OK, "in" is a 8.5ism, shouldn't be in a [package require Tcl 8.4] script. Just fixed in HEAD.
dkfplain2010-02-09 21:10:07
An additional note: Larry, you should not have been doing 'make genstubs' anyway. It's not a target for non-maintainer use.
lvirdenplain2010-02-09 21:20:47
Okay. I wasn't aware that genstubs was a "no no". Thanks for the correction. I'll stop doing that. I figured that given that what was being downloaded was the CVS head, there might be a chance that the code and the generated stubs in the repository would not be in sync. Apparently, I don't have to worry about that.
Log in (anonymous is fine) to add a comment.