Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0bc57861e86da62f6df3c5f917391c4fe1cf5857
Ticket: a0a251e4e478977334da51e346cddff8ec3fbf52
tcl 8.6.4 compilation on windows with msys and VS2013 fails
User & Date: anonymous on 2015-04-09 14:53:36
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Compilation on Windows using VS2013 and Msys/configure/make fails due to a non-native include path passed via -I to the compiler when trying to compile Zlib:
    
    # cl -c -nologo -O2 -MD -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DU
    # NICODE -D_UNICODE -W3  -I"/l/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/com
    # pat/zlib" -I"l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/generic" -DTCL_T
    # OMMATH -DMP_PREC=4 -I"l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/libtomm
    # ath" -I"l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/win" -DPACKAGE_NAME=\
    # "\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAG
    # E_BUGREPORT=\"\" -Dinline=__inline -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp12
    # 52\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=
    # 1 -DHAVE_MEMORY_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DMODULE_SCOPE=extern
    # -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_INTRIN_H=1 -DNDEBUG=1
    # -DTCL_CFG_OPTIMIZED=1    -DBUILD_tcl "l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/
    # tcl8.6.4/generic/tclZlib.c" -FotclZlib.obj
    # tclZlib.c
    # l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/generic/tclZlib.c(19) : fatal
    #  error C1083: Datei (Include) kann nicht geƶffnet werden: "zlib.h": No such file
    #  or directory
    # make[1]: *** [tclZlib.obj] Error 2
    # make[1]: Leaving directory `/l/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/win'
    # make: *** [tcl] Error 2
    
    In the above, most -I directives are -I"l:/..." but those for zlib are -I"/l/..." which MS cl does not understand.  Fix is to apply the same _NATIVE path conversion as for the other pathes in this context.
    
    Proposed patch:
    
    --- tcl8.6.4/win/configure~	2015-03-11 14:59:56.000000000 +0100
    +++ tcl8.6.4/win/configure	2015-04-08 16:41:47.040571406 +0200
    @@ -4364,12 +4364,12 @@
     
         if test "$GCC" == "yes"; then
     
    -      ZLIB_LIBS=\${ZLIB_DIR}/win64/libz.dll.a
    +      ZLIB_LIBS=\${ZLIB_DIR_NATIVE}/win64/libz.dll.a
     
     
     else
     
    -      ZLIB_LIBS=\${ZLIB_DIR}/win64/zdll.lib
    +      ZLIB_LIBS=\${ZLIB_DIR_NATIVE}/win64/zdll.lib
     
     
     fi
    @@ -4377,7 +4377,7 @@
     
     else
     
    -    ZLIB_LIBS=\${ZLIB_DIR}/win32/zdll.lib
    +    ZLIB_LIBS=\${ZLIB_DIR_NATIVE}/win32/zdll.lib
     
     
     fi
    
    Diff finished.  Wed Apr  8 16:41:52 2015
    
    
    --- tcl8.6.4/win/Makefile.in	2015-04-08 16:44:03.928292071 +0200
    +++ tcl8.6.4/win/Makefile.in	2015-04-08 16:44:54.048565965 +0200
    @@ -114,6 +114,7 @@
     #TOMMATH_DIR_NATIVE	= $(TOMMATH_DIR)
     #WIN_DIR_NATIVE		= $(WIN_DIR)
     #ROOT_DIR_NATIVE		= $(ROOT_DIR)
    +ZLIB_DIR_NATIVE		= $(shell $(CYGPATH) '$(ZLIB_DIR)' | sed 's!\\!/!g')
     
     # Fully qualify library path so that `make test`
     # does not depend on the current directory.
    @@ -189,7 +190,7 @@
     RM		= rm -f
     COPY		= cp
     
    -CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} -I"${ZLIB_DIR}" \
    +CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} -I"${ZLIB_DIR_NATIVE}" \
     -I"${GENERIC_DIR_NATIVE}" -DTCL_TOMMATH -DMP_PREC=4 -I"${TOMMATH_DIR_NATIVE}" \
     -I"${WIN_DIR_NATIVE}" ${AC_FLAGS} \
     ${COMPILE_DEBUG_FLAGS} ${NO_DEPRECATED_FLAGS}
    
    Diff finished.  Wed Apr  8 16:45:01 2015
    
  5. foundin changed to: "8.6.4"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "53. Configure and Build Tools"
  15. title changed to:
    tcl 8.6.4 compilation on windows with msys and VS2013 fails
    
  16. type changed to: "Bug"