Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "techentin"
  9. subsystem changed to: "52. Portability Support"
  10. title changed to:
    No such variable error on HP-UX 11, native cc with 64-bit
    
  11. type changed to: "Bug"