Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-20
12:10 • Ticket [1c4ba6fa40] --enable-64bit and Linux aarch64 status still Open with ... artifact: 892feae7db user: serhiy.storchaka
12:09
Fix [1c4ba6fa40]: on platforms whose compiler has no -m64 flag (e.g. Linux aarch64), --enable-64bit ... leaf check-in: c3120d629c user: serhiy.storchaka tags: configure-64bit-default
2020-11-12
07:57 • New ticket [1c4ba6fa40] --enable-64bit and Linux aarch64. artifact: 0129aeac2d user: chrstphrchvz

--enable-64bit and Linux aarch64

Open1c4ba6fa409870b5b78c784be6949f2905c937e2Created 6 years agoUpdated 43 days ago
Descriptionwiki2020-11-12 07:57:08
Using Debian 10 aarch64 (Raspberry Pi 3B), i.e. 64-bit ARM rather than 32-bit. The configure script does not seem to detect it as a 64-bit platform, and explicitly requesting 64-bit support with --enable-64bit causes a warning:
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?

Referenced by1
  • 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
serhiy.storchakawiki2026-10-20 12:10:59

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.

Log in (anonymous is fine) to add a comment.