Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5e70db38b56b6f67fccc9ffa8563238d84ccbeb4
Ticket: 2651823fffffffffffffffffffffffffffffffff
Tcl_StatBuf definition problem with VS2005 and Win XP x64
User & Date: mgammon on 2009-10-28 16:43:37
Changes

  1. icomment:
    I have been trying to build Tcl 8.5.7 under XP64, and not getting very far.
    I found this posting from March this year where you ran in to build problems for the AMD64 platform.
    
    I've made the same fix to tcl.h to cure the Tcl_StatBuf compile failures and this fixes that problem, but I still see some worrying warnings about mismatched sizes, e.g.
    
    ..\generic\regcomp.c(468) : warning C4267: 'function' : conversion from 'size_t'  to 'unsigned int', possible loss of data
    
    ..\generic\regexec.c(224) : warning C4267: 'function' : conversion from 'size_t'  to 'unsigned int', possible loss of data
    
    The first looks to be a fundamental problem caused by Tcl_Alloc declaring it size arg as unsigned int rather than size_t. Possibly not a critical problem so long as nothing in Tcl allocates more than 4Gb. 
    
    The second is caused by subtracting pointers which results in a 64bit int and packing this into a long, which on AMD64 is 32bit. This looks like a more serious problem.
    
    Looking back through other postings on Tcl and I found TIP #115 Making Tcl Truly 64-Bit Ready. This seems to describe a lot of the issues i'd expect to see with doing a AMD64 port. Its dated 2002 and doesn't seem to have gone any further.
    
    I guess what I'm really asking is Tcl 8.5.7 ( or 8.6b1) really supported on AMD64?
    I can't find a definitive statement about this but the code and postings seem to suggest that its not properly supported, yet? Can anyone confirm this?
    
    Thanks
    Mark
    
    
  2. login: "mgammon"
  3. mimetype: "text/plain"
  4. username: "mgammon"