Artifacts Associated With Ticket 2f507c8f73
Ticket change [9312037c1e] (rid 188323) by anonymous on 2020-11-04 12:38:09:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "10e302b1a1ae78d60a0878d87bdb4b5f874b815e"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
compiling core8-6 branch on windows/msys2 with clang
- type initialized to: "Support"
Ticket change [b8cef38144] (rid 188324) by jan.nijtmans on 2020-11-04 13:01:15:
- assignee changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [016ead8862] (rid 190138) by jan.nijtmans on 2020-12-10 14:21:48:
- 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 ??? - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [f98c54cc40] (rid 190426) by anonymous on 2020-12-22 07:11:19:
- 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
- login: "anonymous"
- mimetype: "text/plain"
- icomment:
Ticket change [66a4c4e953] (rid 190431) by jan.nijtmans on 2020-12-22 07:24:16:
- 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.... - login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- status changed to: "Pending"
- icomment:
Ticket change [114ee988dc] (rid 258131) by serhiy.storchaka on 2026-10-15 11:29:06:
- icomment: "Closing: no reply since 2020."
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"
Ticket change [029dc563de] (rid 259932) by serhiy.storchaka on 2026-10-22 17:19:26:
- closedate changed to: "2461328.9785471875"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"