Overview
| Artifact ID: | df9bf7c5764fbe92ecde5537515f0e67b6b8d86e72cbe6c588a1119f2ad3fd33 |
|---|---|
| Ticket: | 6b0f776c52f9ae7ae9e079e83d31a8c624b22b90
gcc 14 breaks configure test for bigendian leading to broken floating point |
| User & Date: | anonymous on 2025-07-02 16:17:32 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
I was trying to debug why a GCC 14 build of tcl 8.6.16 broke any use of floating point, for example: ``` $ tclsh % expr rand() wrong digit! Abort (core dumped) ``` It turned out, after comparing against an earlier GCC 13 build, that the GCC 14 build was incorrectly being built with `-DWORDS_BIGENDIAN=1`, and this is because the configure test for endianness is now broken: ``` -conftest.c:54:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] +conftest.c:54:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 54 | exit (u.c[sizeof (long) - 1] == 1); | ^~~~ ``` The failure to compile conftest is being interpreted as the _test itself_ failing, thus determining that this x86_64 platform is now suddenly big endian, leading to sub-optimal behaviour. I'd recommend throwing GCC 14 in the bin for causing such disgustingly insidious fallout, but you may want to implement a more grown-up solution. Thanks. - foundin changed to: "8.6.16"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to:
gcc 14 breaks configure test for bigendian leading to broken floating point
- type changed to: "Bug"