Skip to content
Tcl Source Code History Of Ticket ce3b9f2b048ff278
Login

History Of Ticket ce3b9f2b048ff278

Artifacts Associated With Ticket ce3b9f2b048ff278

  1. Ticket change [dbfc7b4180] (rid 177997) by bll on 2019-12-23 08:10:26:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      clang -c -m32 -O2 -fomit-frame-pointer -D_ATL_XP_TARGETING -DMP_FIXED_CUTOFFS
       -DMP_NO_STDINT -Wall -Wdeclaration-after-statement  
      -I"C:/msys64/home/bll/t/tcl8610work/tcl8.6.10/compat/zlib" 
      -I"C:/msys64/home/bll/t/tcl8610work/tcl8.6.10/generic" 
      -DTCL_TOMMATH -DMP_PREC=4 
      -I"C:/msys64/home/bll/t/tcl8610work/tcl8.6.10/libtommath" 
      -I"C:/msys64/home/bll/t/tcl8610work/tcl8.6.10/win" -pipe -DPACKAGE_NAME=\"\" 
      -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
      -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 
      -DTCL_CFGVAL_ENCODING=\"utf-8\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
      -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
      -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern 
      -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 
      -DHAVE_UINTPTR_T=1 -DHAVE_INTRIN_H=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 
      -DTCL_CFG_OPTIMIZED=1    -DBUILD_tcl "tclWinChan.c" -o tclWinChan.o
      tclWinChan.c:1160:53: error: invalid variant '4'
                  "pushl      %%ebx"                          "\n\t"
                                                                 ^
      <inline asm>:12:26: note: instantiated into assembly here
              call       _CloseHandle@4
                                      ^
      1 error generated.
      make: *** [Makefile:591: tclWinChan.o] Error 1
      
    5. foundin initialized to: "8.6.10"
    6. is_private initialized to: "0"
    7. login: "bll"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "bll"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to: "compilation errors with clang (windows msys2)"
    15. type initialized to: "Bug"
  2. Ticket change [fea4427c19] (rid 177998) by bll on 2019-12-23 08:16:23:

    1. comment changed to:
      clang -c -m32 -O2 -fomit-frame-pointer -D_ATL_XP_TARGETING -DMP_FIXED_CUTOFFS
       -DMP_NO_STDINT -Wall -Wdeclaration-after-statement  
      -I"C:/msys64/home/bll/t/tcl8610work/tcl8.6.10/compat/zlib" 
      -I"C:/msys64/home/bll/t/tcl8610work/tcl8.6.10/generic" 
      -DTCL_TOMMATH -DMP_PREC=4 
      -I"C:/msys64/home/bll/t/tcl8610work/tcl8.6.10/libtommath" 
      -I"C:/msys64/home/bll/t/tcl8610work/tcl8.6.10/win" -pipe -DPACKAGE_NAME=\"\" 
      -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
      -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 
      -DTCL_CFGVAL_ENCODING=\"utf-8\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
      -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
      -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern 
      -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 
      -DHAVE_UINTPTR_T=1 -DHAVE_INTRIN_H=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 
      -DTCL_CFG_OPTIMIZED=1    -DBUILD_tcl "tclWinChan.c" -o tclWinChan.o
      tclWinChan.c:1160:53: error: invalid variant '4'
                  "pushl      %%ebx"                          "\n\t"
                                                                 ^
      <inline asm>:12:26: note: instantiated into assembly here
              call       _CloseHandle@4
                                      ^
      1 error generated.
      make: *** [Makefile:591: tclWinChan.o] Error 1
      
      
      
      clang version 9.0.0
      
    2. login: "bll"
    3. mimetype: "text/plain"
  3. Ticket change [759afcba07] (rid 177999) by jan.nijtmans on 2019-12-23 10:29:14:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Yes, I can reproduce this with Clang 8.0.
      
      However, since this works fine as-is with gcc, this must be a clang 'bug/feature'. It looks like @4 is interpreted as symbol variant, something that Win32 doesn't understand. I guess Clang must be built without this feature, as "@4" is really part of the symbol name on win32.
      
      On 64-bit this is no issue. Workaround: compile with gcc.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
  4. Ticket change [6209b74fb7] (rid 178006) by jan.nijtmans on 2019-12-23 11:30:12:

    1. closedate changed to: "2458840.97931105"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Workaround committed now to all branches.
      
      Since this assembler-code is only used for protecting the CloseHandle call, which might crash on earlier Win32 version, it is harmless to diable it. I don't see any ill-effects when running the test-suite.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"