--enable-64bit and Linux aarch64
checking if compiler accepts -m64 flag... no configure: WARNING: 64bit support being disabled -- don't know magic for this platform
(-m64 does not appear to be a valid GCC flag on aarch64.)
It is not clear to me what enabling/disabling 64-bit support actually does, or whether I should even be requesting 64-bit support on aarch64. I am not aware of anything that is broken—maybe it has no effect on aarch64 and is fine. But should this warning not be emitted? Could certain flags be missing from tclConfig.sh for not detecting a 64-bit platform? Might other non-amd64 64-bit Linux platforms be affected?
c3120d629cFix [1c4ba6fa40]: on platforms whose compiler has no -m64 flag (e.g. Linux aarch64), --enable-64bit gave "64bit support being disabled" and TCL_CFG_DO64BIT was not set, although the compiler is 64-bit by default. Accept the default mode if it is 64-bit. check-in2026-10-20 12:09:25
Still present in 8.6, 9.0 and 9.1. On aarch64 the compiler is already 64-bit by default, so nothing is broken: the only effects are the warning and [tcl::pkgconfig get 64bit] being 0. Proposed fix in branch configure-64bit-default, and the same in Tk branch configure-64bit-default: when the compiler does not accept -m64, unix/tcl.m4 checks whether it is 64-bit by default (sizeof(void *) == 8) and accepts that. Checked with a compiler wrapper that rejects -m64, as aarch64 gcc does; x86-64 is unchanged. tclconfig (TEA) has the same check.