/Tools/buildbot/README.tcltk-AMD64

http://unladen-swallow.googlecode.com/ · Unknown · 36 lines · 30 code · 6 blank · 0 comment · 0 complexity · 2cc50cd32ff51b3fae80e2e9e906bf76 MD5 · raw file

  1. Comments on building tcl/tk for AMD64 with the MS SDK compiler
  2. ==============================================================
  3. I did have to build tcl/tk manually.
  4. First, I had to build the nmakehlp.exe helper utility manually by executing
  5. cl nmakehlp.c /link bufferoverflowU.lib
  6. in both the tcl8.4.12\win and tk8.4.12\win directories.
  7. Second, the AMD64 compiler refuses to compile the file
  8. tcl8.4.12\generic\tclExecute.c because it insists on using intrinsics
  9. for the 'ceil' and 'floor' functions:
  10. ..\generic\tclExecute.c(394) : error C2099: initializer is not a constant
  11. ..\generic\tclExecute.c(398) : error C2099: initializer is not a constant
  12. I did comment out these lines; an alternative would have been to use
  13. the /Oi- compiler flag to disable the intrinsic functions.
  14. The commands then used were these:
  15. svn export http://svn.python.org/projects/external/tcl8.4.12
  16. cd tcl8.4.12\win
  17. REM
  18. echo patch the tcl8.4.12\generic\tclExecute.c file
  19. pause
  20. REM
  21. cl nmakehlp.c /link bufferoverflowU.lib
  22. nmake -f makefile.vc MACHINE=AMD64
  23. nmake -f makefile.vc INSTALLDIR=..\..\tcltk install
  24. cd ..\..
  25. svn export http://svn.python.org/projects/external/tk8.4.12
  26. cd tk8.4.12\win
  27. cl nmakehlp.c /link bufferoverflowU.lib
  28. nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 MACHINE=AMD64
  29. nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 INSTALLDIR=..\..\tcltk install
  30. cd ..\..