<i>gcc 14 breaks configure test for bigendian leading to broken floating point</i> status still Open with 3 other changes
by
.
D 2025-07-02T18:54:40.717
J comment I\swas\strying\sto\sdebug\swhy\sa\sGCC\s14\sbuild\sof\stcl\s8.6.16\sbroke\sany\suse\sof\sfloating\spoint,\sfor\sexample:\r\n\r\n```\r\n$\stclsh\r\n%\sexpr\srand()\r\nwrong\sdigit!\r\nAbort\s(core\sdumped)\r\n```\r\n\r\nIt\sturned\sout,\safter\scomparing\sagainst\san\searlier\sGCC\s13\sbuild,\sthat\sthe\sGCC\s14\sbuild\swas\sincorrectly\sbeing\sbuilt\swith\s`-DWORDS_BIGENDIAN=1`,\sand\sthis\sis\sbecause\sthe\sconfigure\stest\sfor\sendianness\sis\snow\sbroken:\r\n\r\n```\r\n-conftest.c:54:3:\swarning:\simplicit\sdeclaration\sof\sfunction\s'exit'\s[-Wimplicit-function-declaration]\r\n+conftest.c:54:3:\serror:\simplicit\sdeclaration\sof\sfunction\s'exit'\s[-Wimplicit-function-declaration]\r\n\s\s\s\s54\s|\s\s\sexit\s(u.c[sizeof\s(long)\s-\s1]\s==\s1);\r\n\s\s\s\s\s\s\s|\s\s\s^~~~\r\n```\r\n\r\nThe\sfailure\sto\scompile\sconftest\sis\sbeing\sinterpreted\sas\sthe\s_test\sitself_\sfailing,\sthus\sdetermining\sthat\sthis\sx86_64\splatform\sis\snow\ssuddenly\sbig\sendian,\sleading\sto\ssub-optimal\sbehaviour.\r\n\r\nI'd\srecommend\sthrowing\sGCC\s14\sin\sthe\sbin\sfor\scausing\ssuch\sdisgustingly\sinsidious\sfallout,\sbut\syou\smay\swant\sto\simplement\sa\smore\sgrown-up\ssolution,\ssuch\sas\sthe\sone\sI\scommitted\sto\spkgsrc\s[here](https://github.com/NetBSD/pkgsrc/commit/cf369163c379e6cbdeafd7b0229ca72583d46be8)\r\n\r\nThanks.
J login anonymous
J mimetype text/plain
K 6b0f776c52f9ae7ae9e079e83d31a8c624b22b90
U anonymous
Z abb8f53fb2b72448363f99ac74d691e2