Artifacts Associated With Ticket d58e315172
Ticket change [5486422532] (rid 236318) by jan.nijtmans on 2025-01-01 21:20:07:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
<pre> $ ./configure --enable-64bit=aarch64 ... $ make ... In file included from tclWin32Dll.c:16: cpuid.h:14:2: error: this header is for x86 only #error this header is for x86 only </pre> This should tell enough about what's the problem. The problem arises from [6b0e324f18310b79|this] commit
- foundin initialized to: "any"
- is_private initialized to: "0"
- login: "jan.nijtmans"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "jan.nijtmans"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "configure --enable-64bit=aarch64 broken"
- type initialized to: "Bug"
Ticket change [5028e97fc9] (rid 236319) by jan.nijtmans on 2025-01-01 21:21:06:
- assignee changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [3cf7aea8fc] (rid 236320) by sebres on 2025-01-02 13:20:31:
- icomment:
Which toolchain do you use exactly? I cannot reproduce it by this cross-compile (ARM64 mode) with gcc 8.1.0..14.2.0 (or with clang 19.1.1), neither from mingw nor from linux (aarch64-w64-mingw32-gcc). Any of them was built successfully. This was also another goal of the fix, since cpuid.h supports more targets than it was provided by inlined asm codes of tclWin32Dll.<br/> But seems to need a checker on configure phase now (to disable it with something like ifdef __arm__ or HAVE_CPUID would be too heavy in my opinion, since my toolchains compile it without any issue).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [adf41a1ff3] (rid 236327) by jan.nijtmans on 2025-01-02 15:31:38:
- icomment:
clang version 14.0.0 (https://github.com/llvm/llvm-project.git f5f0bd8e3d972d040827c88adf1a9880ebcb821e) Target: aarch64-w64-windows-gnu Thread model: posix
- login: "jan.nijtmans"
- mimetype: "text/plain"
- icomment:
Ticket change [967a1686eb] (rid 236344) by sebres on 2025-01-02 16:39:26:
- icomment:
I hope [2ca317244b985938] will fix it. Can you please confirm, Jan?
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [9b3468e182] (rid 236356) by jan.nijtmans on 2025-01-02 17:32:56:
- icomment:
[371793e4b2ffd664|this] works. --enable-64bit=arm64 and --enable-64bit=aarch64 should be synonymes, which still didn't work correctly. That should be fixed now too. Thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [895d6d92bc] (rid 236360) by sebres on 2025-01-02 17:43:03:
- closedate changed to: "2460678.23823163"
- closer changed to: "sebres"
- icomment:
Looks like that was another cross-compile issue, but...<br/> Let's close it then.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [1793b2a846] (rid 236361) by jan.nijtmans on 2025-01-02 17:48:39:
- closedate changed to: "2460678.24211911"
- closer changed to: "jan.nijtmans"
- icomment: "Many thanks for the fix!"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [ead86eec95] (rid 236432) by jan.nijtmans on 2025-01-05 20:44:57:
- closedate changed to: "2460681.36455022"
- icomment:
Looking again at it, I think the handling of __cpuid can be simplified a lot more for 8.7 and 9.0 (but not for 8.6). We now only support MSVC 2015+, which means that intrinsics are always available. And we only support compilers with C11, which - I guess - all have <cpuid.h>. If not, not supplying __cpuid wouldn't be noticed by anyone. Here is my proposal for further simplifications: [https://core.tcl-lang.org/tcl/timeline?r=bug-d58e315172]
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"