Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 62eed7018c5c093a5c591fe2db1124841aea12cf011d9040fa715f2de16bb36a
Ticket: 17ffc49790fadbc4f515aa0b01f123e75f9fad26
Building Tcl 9.0.2 release fails when using "configure --srcdir=<path> ..."
User & Date: serhiy.storchaka on 2026-10-20 11:56:31
Changes

  1. foundin changed to: "9.1.0"
  2. icomment:
    Reproduced with an out-of-tree build of the current main with Thread and Itcl in pkgs/: <tt>.../unix/configure --srcdir=.../unix</tt>, then <tt>make</tt> fails in configure-packages with "cannot find sources () in .../unix". The relative <tt>--with-tcl=../..</tt> is not the problem: Tcl passes its own <tt>--srcdir</tt> on to each package's configure (in <tt>PKG_CFG_ARGS</tt>), so the package looks for its sources in Tcl's unix directory. The packages do not need it, since their configure scripts are run by absolute path.
    
    Proposed fix in branch [/timeline?r=configure-pkgs-no-srcdir|configure-pkgs-no-srcdir]: do not pass <tt>--srcdir</tt> to the packages, in unix/configure.ac and also in win/configure.ac, which had the same problem (there the package configure failed silently). With it, out-of-tree builds with a relative or absolute <tt>--srcdir</tt>, or without it, build Thread and Itcl, and <tt>make install</tt> installs them; also checked with a MinGW cross build.
    
    Note that <tt>--srcdir</tt> must point to the unix (or win) directory, not to the top of the source tree as in the original report.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"