Skip to content
Tcl Source Code History Of Ticket 2f507c8f73
Login

History Of Ticket 2f507c8f73

Artifacts Associated With Ticket 2f507c8f73

  1. Ticket change [9312037c1e] (rid 188323) by anonymous on 2020-11-04 12:38:09:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Hi,
      I'm trying to compile Tcl core8-6 branch using clang.
      compilation seems ok but not the linking
      
      C:\msys64\mingw64\bin\ld▒: bn_mp_mul.o:bn_mp_mul.c:(.rdata$.refptr.KARATSUBA_MUL_CUTOFF[.refptr.KARATSUBA_MUL_CUTOFF]+0x0)▒: r▒f▒rence ind▒finie vers ▒▒KARATSUBA_MUL_CUTOFF▒▒
      C:\msys64\mingw64\bin\ld▒: bn_mp_mul.o:bn_mp_mul.c:(.rdata$.refptr.TOOM_MUL_CUTOFF[.refptr.TOOM_MUL_CUTOFF]+0x0)▒: r▒f▒rence ind▒finie vers ▒▒TOOM_MUL_CUTOFF▒▒
      C:\msys64\mingw64\bin\ld▒: bn_mp_sqr.o:bn_mp_sqr.c:(.rdata$.refptr.KARATSUBA_SQR_CUTOFF[.refptr.KARATSUBA_SQR_CUTOFF]+0x0)▒: r▒f▒rence ind▒finie vers ▒▒KARATSUBA_SQR_CUTOFF▒▒
      C:\msys64\mingw64\bin\ld▒: bn_mp_sqr.o:bn_mp_sqr.c:(.rdata$.refptr.TOOM_SQR_CUTOFF[.refptr.TOOM_SQR_CUTOFF]+0x0)▒: r▒f▒rence ind▒finie vers ▒▒TOOM_SQR_CUTOFF▒▒
      /mingw64/bin/clang -shared  -o tcldde14.dll -pipe -static-libgcc -municode         -Wl,--out-implib,libtcldde14.dll.a tclWinDde.o libtclstub86.a -lnetapi32 -lkernel32 -luser32 -ladvapi32 -luserenv -lws2_32 C:/Users/nico/dev/dlight/win64/tcl-165a804445/compat/zlib/win64/libz.dll.a
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make: *** [Makefile:492 : tcl86.dll] Erreur 1
      make: *** Attente des tâches non terminées....
      cp tclsh.exe.manifest tcldde14.dll.manifest
      
      best regards,
      Nicolas
      
    5. is_private initialized to: "0"
    6. login: "anonymous"
    7. priority initialized to: "5 Medium"
    8. private_contact initialized to: "10e302b1a1ae78d60a0878d87bdb4b5f874b815e"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to:
      compiling core8-6 branch on windows/msys2 with clang
      
    15. type initialized to: "Support"
  2. Ticket change [b8cef38144] (rid 188324) by jan.nijtmans on 2020-11-04 13:01:15:

    1. assignee changed to: "jan.nijtmans"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [016ead8862] (rid 190138) by jan.nijtmans on 2020-12-10 14:21:48:

    1. icomment:
      In Makefile.in:
      <pre>
      CC_SWITCHES = $(STUB_CC_SWITCHES) ${NO_DEPRECATED_FLAGS} -DMP_FIXED_CUTOFFS -DMP_NO_STDINT
      </pre>
      
      In tommath_private.h:
      <pre>
      #ifdef MP_FIXED_CUTOFFS
      #  include "tommath_cutoffs.h"
      #  define MP_KARATSUBA_MUL_CUTOFF MP_DEFAULT_KARATSUBA_MUL_CUTOFF
      #  define MP_KARATSUBA_SQR_CUTOFF MP_DEFAULT_KARATSUBA_SQR_CUTOFF
      #  define MP_TOOM_MUL_CUTOFF      MP_DEFAULT_TOOM_MUL_CUTOFF
      #  define MP_TOOM_SQR_CUTOFF      MP_DEFAULT_TOOM_SQR_CUTOFF
      #else
      #  define MP_KARATSUBA_MUL_CUTOFF KARATSUBA_MUL_CUTOFF
      #  define MP_KARATSUBA_SQR_CUTOFF KARATSUBA_SQR_CUTOFF
      #  define MP_TOOM_MUL_CUTOFF      TOOM_MUL_CUTOFF
      #  define MP_TOOM_SQR_CUTOFF      TOOM_SQR_CUTOFF
      #endif
      </pre>
      
      So, if MP_FIXED_CUTOFFS is defined, KARATSUBA_MUL_CUTOFF and friends shouldn't be used. Are you really compiling with -DMP_FIXED_CUTOFFS ???
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [f98c54cc40] (rid 190426) by anonymous on 2020-12-22 07:11:19:

    1. icomment:
      Hi Jan,
      so I've added -DMP_FIXED_CUTOFFS and compilation is fine.
      here's what I'm doing:
      export CC=/mingw64/bin/clang.exe
      ./configure --enable-threads --disable-symbols --enable-64bit --prefix=/opt/local
      make -j 4 CFLAGS="-DMP_FIXED_CUTOFFS"
      
      ++
      Nicolas
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
  5. Ticket change [66a4c4e953] (rid 190431) by jan.nijtmans on 2020-12-22 07:24:16:

    1. icomment:
      Well, Makefile.in already contains
      
            CC_SWITCHES = ... -DMP_FIXED_CUTOFFS ...
      
      So, I simply don't understand why you have to add it to CFLAGS as well....
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. resolution changed to: "Works For Me"
    5. status changed to: "Pending"
  6. Ticket change [114ee988dc] (rid 258131) by serhiy.storchaka on 2026-10-15 11:29:06:

    1. icomment: "Closing: no reply since 2020."
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. status changed to: "Closed"
  7. Ticket change [029dc563de] (rid 259932) by serhiy.storchaka on 2026-10-22 17:19:26:

    1. closedate changed to: "2461328.9785471875"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"