Overview
| Artifact ID: | 943b77e94acf7a497734ae5ac195f3060eea67f4 |
|---|---|
| Ticket: | 968422ffffffffffffffffffffffffffffffffff
No such variable error on HP-UX 11, native cc with 64-bit |
| User & Date: | techentin on 2004-06-07 20:19:25 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.5a2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "techentin"
- subsystem changed to: "52. Portability Support"
- title changed to:
No such variable error on HP-UX 11, native cc with 64-bit
- type changed to: "Bug"