Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0daef1ee6bd4d7c83c17aba61566b67db7b330bfc8654b763cd067d99754ad75
Ticket: a606b0a528ebb1b1ecbe9813d1f5947cca63bbee
Tcl 9.0 fails to build from source for big-endian architectures
User & Date: anonymous on 2023-11-26 19:05:00
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    Currently, Tcl 9 fails to build from source on big-endian architecture with the following error messages:
    
        In file included from /<<PKGBUILDDIR>>/generic/tclUtf.c:12:
        /<<PKGBUILDDIR>>/generic/tclInt.h:4644:43: error: expected declaration specifiers or ‘...’ before ‘(’ token
         4644 | #   define TclUniCharNcmp(cs,ct,n) memcmp((cs),(ct),(n)*sizeof(Tcl_UniChar))
              |                                           ^
        /<<PKGBUILDDIR>>/generic/tclUtf.c:1878:1: note: in expansion of macro ‘TclUniCharNcmp’
         1878 | TclUniCharNcmp(
              | ^~~~~~~~~~~~~~
        /<<PKGBUILDDIR>>/generic/tclInt.h:4644:48: error: expected declaration specifiers or ‘...’ before ‘(’ token
         4644 | #   define TclUniCharNcmp(cs,ct,n) memcmp((cs),(ct),(n)*sizeof(Tcl_UniChar))
              |                                                ^
        /<<PKGBUILDDIR>>/generic/tclUtf.c:1878:1: note: in expansion of macro ‘TclUniCharNcmp’
         1878 | TclUniCharNcmp(
              | ^~~~~~~~~~~~~~
        /<<PKGBUILDDIR>>/generic/tclInt.h:4644:53: error: expected declaration specifiers or ‘...’ before ‘(’ token
         4644 | #   define TclUniCharNcmp(cs,ct,n) memcmp((cs),(ct),(n)*sizeof(Tcl_UniChar))
              |                                                     ^
        /<<PKGBUILDDIR>>/generic/tclUtf.c:1878:1: note: in expansion of macro ‘TclUniCharNcmp’
         1878 | TclUniCharNcmp(
              | ^~~~~~~~~~~~~~
    
    (full log can be found at [Debian buildd log site](https://buildd.debian.org/status/fetch.php?pkg=tcl9.0&arch=s390x&ver=9.0.0%7Eb1%7Erc0%2Bdfsg-1&stamp=1701016509&raw=0))
    
    As far as I can see, the macro definition of TclUniCharNcmp from tclInt.h (line 4644) clashes with the function definition with the same name in tclUtf.c (line 1878). The bug didn't show in Tcl 8.* because they set TCL_UTF_MAX=3 while TCL_UTF_MAX=4 for Tcl 9.
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "07bcf89c4057d2d0e00473ab972eef3274af2d93"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "44. UTF-8 Strings"
  15. title changed to:
    Tcl 9.0 fails to build from source for big-endian architectures
    
  16. type changed to: "Bug"