Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ef3b6d7a3573f86bad10aabe9e80107fb660cd64c2b8699e02ffe5c6f83fea61
Ticket: 84e8a94613b8cc3faf1b080c01c5ace981e9e9db
trunk does not compile (link) on my Windows
User & Date: sl1200mk2 on 2025-09-12 07:16:11
Changes

  1. icomment:
    Hi,
    so I've tried latest trunk and now Tcl does not compile at all on my system.
    
    /ucrt64/bin/clang.exe -c -I"." -I"C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/generic" -I"C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/libtommath" -I"C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/compat/zlib" -I"C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/win" -O3 -g0 -UCFLAGS_DEFAULT -fomit-frame-pointer -Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith -Wc++-compat -fextended-identifiers  -DMP_PREC=4 -pipe -DHAVE_CPUID=1 -finput-charset=UTF-8 -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"9.1\" -DPACKAGE_STRING=\"tcl\ 9.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DTCL_CFGVAL_ENCODING=\"utf-8\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DMODULE_SCOPE=extern -DTCL_CFG_DO64BIT=1 -DHAVE_NO_SEH=1 -DHAVE_STDBOOL_H=1 -DHAVE_CAST_TO_UNION=1 -DTCL_WITH_EXTERNAL_TOMMATH=1 -DMP_64BIT=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DZIPFS_BUILD=1 -DHAVE_INTRIN_H=1 -DHAVE_CPUID_H=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1   -DUNICODE -D_UNICODE "C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c" -o utf8proc.o
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:56:42: error: definition of
          dllimport data
       56 | UTF8PROC_DLLEXPORT const utf8proc_int8_t utf8proc_utf8class[256] = {
          |                                          ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:99:32: error: dllimport
          cannot be applied to non-inline function definition
       99 | UTF8PROC_DLLEXPORT const char *utf8proc_version(void) {
          |                                ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:103:32: error: dllimport
          cannot be applied to non-inline function definition
      103 | UTF8PROC_DLLEXPORT const char *utf8proc_unicode_version(void) {
          |                                ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:107:32: error: dllimport
          cannot be applied to non-inline function definition
      107 | UTF8PROC_DLLEXPORT const char *utf8proc_errmsg(utf8proc_ssize_t errcode) {
          |                                ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:125:37: error: dllimport
          cannot be applied to non-inline function definition
      125 | UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_iterate(
          |                                     ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:173:34: error: dllimport
          cannot be applied to non-inline function definition
      173 | UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_codepoint_valid(utf8proc_int32_t uc) {
          |                                  ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:177:37: error: dllimport
          cannot be applied to non-inline function definition
      177 | UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_encode_char(utf8proc_int32_t uc, utf8proc_uint8...
          |                                     ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:242:47: error: dllimport
          cannot be applied to non-inline function definition
      242 | UTF8PROC_DLLEXPORT const utf8proc_property_t *utf8proc_get_property(utf8proc_int32_t uc) {
          |                                               ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:345:34: error: dllimport
          cannot be applied to non-inline function definition
      345 | UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_grapheme_break_stateful(
          |                                  ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:358:34: error: dllimport
          cannot be applied to non-inline function definition
      358 | UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_grapheme_break(
          |                                  ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:399:37: error: dllimport
          cannot be applied to non-inline function definition
      399 | UTF8PROC_DLLEXPORT utf8proc_int32_t utf8proc_tolower(utf8proc_int32_t c)
          |                                     ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:405:37: error: dllimport
          cannot be applied to non-inline function definition
      405 | UTF8PROC_DLLEXPORT utf8proc_int32_t utf8proc_toupper(utf8proc_int32_t c)
          |                                     ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:411:37: error: dllimport
          cannot be applied to non-inline function definition
      411 | UTF8PROC_DLLEXPORT utf8proc_int32_t utf8proc_totitle(utf8proc_int32_t c)
          |                                     ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:417:24: error: dllimport
          cannot be applied to non-inline function definition
      417 | UTF8PROC_DLLEXPORT int utf8proc_islower(utf8proc_int32_t c)
          |                        ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:423:24: error: dllimport
          cannot be applied to non-inline function definition
      423 | UTF8PROC_DLLEXPORT int utf8proc_isupper(utf8proc_int32_t c)
          |                        ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:431:24: error: dllimport
          cannot be applied to non-inline function definition
      431 | UTF8PROC_DLLEXPORT int utf8proc_charwidth(utf8proc_int32_t c) {
          |                        ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:435:34: error: dllimport
          cannot be applied to non-inline function definition
      435 | UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_charwidth_ambiguous(utf8proc_int32_t c) {
          |                                  ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:439:40: error: dllimport
          cannot be applied to non-inline function definition
      439 | UTF8PROC_DLLEXPORT utf8proc_category_t utf8proc_category(utf8proc_int32_t c) {
          |                                        ^
    C:/Users/sl120/dev/dlight/win64/clangLib64/build/tcl/utf8proc/utf8proc.c:443:32: error: dllimport
          cannot be applied to non-inline function definition
      443 | UTF8PROC_DLLEXPORT const char *utf8proc_category_string(utf8proc_int32_t c) {
          |                                ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    make: *** [Makefile:690: utf8proc.o] Error 1
    
    
    
    my version of clang is :
    clang version 20.1.8
    Target: x86_64-w64-windows-gnu
    Thread model: posix
    InstalledDir: C:/msys64/ucrt64/bin
    
    and here's how I'm compiling Tcl:
    ./configure --disable-symbols --enable-64bit --prefix="$INSTALL_PREFIX"
    make -j 4 CFLAGS="-O3 -g0 -fomit-frame-pointer"
    make install
    
    best regards,
    Nicolas
    
  2. login: "sl1200mk2"
  3. mimetype: "text/plain"