Artifacts Associated With Ticket 968422ffffffffff
Ticket change [943b77e94a] (rid 105954) by techentin on 2004-06-07 20:19:25:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Compiling CVS Head (which I think corresponds to 8.5a1) on HP-UX 11.0 using this configuration: ./configure CC=cc CFLAGS=+Onolimit --enable-64bit produces a tclsh that doesn't work correctly. When attempting any package require, this error is reported. % package require tcltest can't read "old": no such variable % set ::errorInfo can't read "old": no such variable while executing "if {$dir ne $old} { # This entry in $::auto_path has changed. break }" (procedure "tclPkgUnknown" line 60) invoked from within "tclPkgUnknown tcltest {}" ("package unknown" script) invoked from within "package require tcltest" The "reduced" code to generate this error is a double-foreach loop in a proc, like this: % proc a {} {foreach a {1 2 3} b {4 5 6} {puts "$a $b"}} % a can't read "b": no such variable This error only occurs with both "+DD64" from the --enable-64bit configure option and the "+Onolimit" option, which HP documents as "Do not suppress optimizations that significantly increase compile-time or consume enormous amounts of memory." I'm not sure which optimizations are usually suppressed - the documentation only mentions +Oinline_budget, which does not seem to be the root of this problem. So I haven't narrowed it down to a specific optimization. So it might be an HP optimizer problem, or it might be a Tcl code problem. I will check our compiler revision to find out if there are HP patches. - foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "techentin"
- subsystem initialized to: "52. Portability Support"
- title initialized to:
No such variable error on HP-UX 11, native cc with 64-bit
- type initialized to: "Bug"
Ticket change [1d0d926bfc] (rid 90721) by dgp on 2004-06-08 05:09:27:
- icomment:
Logged In: YES user_id=80530 Sounds like an optimization bug in the compiler. Shows up in compiled [foreach] commands, so I'd check what the compiler is doing with TclCompileForeachCmd(). One simple thing to check is to build a TCL_COMPILE_DEBUG tclsh, and use tcl_traceCompile to check whether the correct bytecode is being generated. See Bug 617689 for inspiration on how to proceed, or to be convinced that, yes, sometimes it can be the compiler's fault. :^)
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [52e61d32fa] (rid 126401) by techentin on 2004-07-15 02:32:27:
- icomment:
Logged In: YES user_id=43494 Our sysadmin upgraded the native HP compiler to 11.11.10, and I still get the same failure with Tcl compiled with the optimzer. I guess the answer is "Don't do that."
- login: "techentin"
- mimetype: "text/plain"
- username: "techentin"
- icomment:
Ticket change [901b44849f] (rid 120389) by hobbs on 2004-07-15 02:38:42:
- closedate changed to: "2004-07-14T19:38:42"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Upgrading the compiler doesn't necessarily mean that this particular bug was addressed. As this works just fine for me on a similar machine (and for the poster) at a different O level, I'm closing this out as a compiler issue (rare, but not unique).
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Pending"
- username: "hobbs"
Ticket change [e63c720a8f] (rid 104267) by msofer on 2004-07-15 02:39:44:
- icomment:
Logged In: YES user_id=148712 Comment on don's comment: I would a priori rather suspect a problem in compiling the INST_FOREACH instructions in the bytecode engine (TEBC) rather than in the bytecode compiler. Does the problem appear also in tcl8.4, or is it new to 8.5?
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- username: "msofer"
- icomment:
Ticket change [2574375d9d] (rid 88175) by techentin on 2004-07-27 00:35:23:
- closedate changed to: "2004-07-26T17:35:23"
- closer changed to: "techentin"
- status changed to: "Closed"