Skip to content
Tcl Source Code History Of Ticket 6b0f776c52f9ae7a
Login

History Of Ticket 6b0f776c52f9ae7a

Artifacts Associated With Ticket 6b0f776c52f9ae7a

  1. Ticket change [df9bf7c576] (rid 242278) by anonymous on 2025-07-02 16:17:32:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized 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.
      
    5. foundin initialized to: "8.6.16"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Severe"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "53. Configuration and Build Tools"
    14. title initialized to:
      gcc 14 breaks configure test for bigendian leading to broken floating point
      
    15. type initialized to: "Bug"
  2. Ticket change [bd18371fef] (rid 242279) by anonymous on 2025-07-02 18:54:40:

    1. 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, such as the one I committed to pkgsrc [here](https://github.com/NetBSD/pkgsrc/commit/cf369163c379e6cbdeafd7b0229ca72583d46be8)
      
      Thanks.
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
  3. Ticket change [911fe24a6f] (rid 242299) by sebres on 2025-07-02 21:16:42:

    1. icomment:
      Well, it is known obsolescence and basically is a result of standard autoconf macro `AC_C_BIGENDIAN`, which is in case of 8.6 a bit outdated, because `unix/configure` is built with autoconf 2.59 and TCT is very conservative here for whatever reason (@Jan, why?!).
      
      IIRC, the macro was fixed somewhere in autoconf 2.69 (it'll also check preprocessor directives now instead of naive byte comparison and so better suitable for cross-compile, etc)... Anyway, autoconf 2.71 does the job correct.
      
      The only option you have now - is to rebuild `configure` by yourself, e. g. invoke `autoreconf -f` in `unix` directory before starting `configure`.
      I'd always recommend it as long as the autoconf/automake is installed and still compatible with obsolete macros like `AC_HEADER_TIME`.
      
    2. login: "sebres"
    3. mimetype: "text/x-markdown"
  4. Ticket change [ccd1d04fe0] (rid 242304) by jan.nijtmans on 2025-07-03 08:08:51:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460859.83948546"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      > TCT is very conservative here for whatever reason (@Jan, why?!)
      
      The reason for this is a change in autoconf-2.60:
      <pre>
        The following variables have new default values:
      
          datadir       read-only architecture-independent data [DATAROOTDIR]
          infodir       info documentation [DATAROOTDIR/info]
          mandir        man documentation [DATAROOTDIR/man]
      </pre>
      
      The effect of this is that autoconf-2.59 has "mandir = ${prefix}/man", while
      autoconf-2.60+ has "mandir = ${datarootdir}/man" which resolves to "mandir = ${prefix}/share/man". So, if update the "configure" script, the man-pages will suddenly install in a different directory than before. That's not expected in a patch release, even though it is following the "GNU coding standards".
      
      So, we have to live with a manual "configure" patch for a while. Since the support for 8.6 is going to end soon anyway, I can live with that.
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
  5. Ticket change [b2dd5c394f] (rid 242325) by sebres on 2025-07-03 15:50:45:

    1. closedate changed to: "2460860.16025161"
    2. closer changed to: "sebres"
    3. icomment:
      Would not something like this help?
      ```
      mandir=${prefix}/man
      AC_SUBST(mandir)
      ```
      
    4. login: "sebres"
    5. mimetype: "text/x-markdown"
  6. Ticket change [157a7d58fd] (rid 242326) by jan.nijtmans on 2025-07-04 12:14:46:

    1. closedate changed to: "2460861.01026608"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      > Would not something like this help?
      
      What about people who deliberately are doing a autoreconf to force installation of the manpages in /usr/share/man*? That won't work the same any more.
      
      It's not worth the effort.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"