Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-05-24
01:39 • Closed ticket [aa6e426437]: tclsh86t.exe not installed in GitHub CI plus 6 o... artifact: aeedae209d user: apnadkarni
01:37
Merge 9.0 - Fix [aa6e426437]. nmake shell install does not install shell on a clean build. The !if e... check-in: 89a8959f27 user: apnadkarni tags: trunk, main
01:33
Fix [aa6e426437]. nmake shell install does not install shell on a clean build. The !if exist check h... check-in: 54c45076a8 user: apnadkarni tags: core-9-0-branch
2023-10-09
19:10 • Ticket [aa6e426437] tclsh86t.exe not installed in GitHub CI status still Ope... artifact: 7eb84c7f58 user: garfieldnate
15:17 • Ticket [aa6e426437]: 3 changes artifact: 7d79f3ea86 user: apnadkarni
14:49 • Ticket [aa6e426437]: 3 changes artifact: 0a8ee3183d user: garfieldnate
2023-10-08
17:32 • Ticket [aa6e426437]: 4 changes artifact: 4e56113e5c user: garfieldnate
2023-10-07
15:14 • Ticket [aa6e426437]: 3 changes artifact: a78849d4e3 user: apnadkarni
2023-10-06
17:33 • New ticket [aa6e426437]. artifact: dbe28a2f7b user: garfieldnate

tclsh86t.exe not installed in GitHub CI

Closed / Fixedaa6e42643794ecff2f3508d7306c702baf4f4c0fCreated 3 years agoUpdated 193 days ago
Descriptionmarkdown2023-10-06 17:33:52

This issue applies to the GitHub build environment for Windows, which is AMD64 and VC 1935.

I'm trying to build and install Tcl in GitHub actions and then use tclsh86t to run further commands. The call to tclsh86t always fails because the install command does not install it for some reason.

Here's the relevant portion of my workflow yaml:

jobs:
  Windows:
    name: build-windows
    runs-on: [windows-latest]

    steps:
      - name: switch to VS command prompt
        uses: ilammy/msvc-dev-cmd@v1
      - name: build and install Tcl
        env:
          TCL_DOWNLOAD_URL: https://kumisystems.dl.sourceforge.net/project/tcl/Tcl/8.6.13/tcl8613-src.zip
          EXPECTED_TCL_HASH: 8999fcafab2d85473280e0bf6e390480496dfd53
        run: |
          (new-object System.Net.WebClient).DownloadFile($Env:TCL_DOWNLOAD_URL, 'tcl8613-src.zip')
          # check that the file hash matches what we expect
          $FileHash = Get-FileHash -Algorithm SHA1 tcl8613-src.zip
          if ( $FileHash.Hash -ne $Env:EXPECTED_TCL_HASH ) {
             throw "tcl download hash mismatch: $($FileHash.Hash)"
          }

          Expand-Archive tcl8613-src.zip -DestinationPath tcl8613-src
          cd tcl8613-src\tcl8.6.13\win
          &nmake /D -f makefile.vc shell dlls install
          if ($lastexitcode -ne 0) {
             throw "nmake exit code: $lastexitcode"
          }
          echo "|||||||||||||"
          Get-ChildItem -Recurse
          echo "|||||||||||||"
          Get-ChildItem -Recurse c:\Tcl
          echo "|||||||||||||"
          echo $env:path

(My original build had release install for the make targets, but I whittled it down a bit to shell dlls install.)

I have some echo commands in there for debugging, and you can see the output here: https://github.com/SoarGroup/Soar/actions/runs/6434352578/job/17473390458.

What I seem to be seeing is that tclsh86t.exe is generated (output line 803) and is present under D:\a\Soar\Soar\tcl8613-src\tcl8.6.13\win\Release_AMD64_VC1935 (output line 1205). However, lines 885-887 show the install step not installing it for some reason:

Installing to C:\Tcl
Installing tcl86t.dll
Installing tclstub86.lib

Finally, lines 1396-1401 show us that the final install directory has the DLLs but not the executable:

    Directory: C:\Tcl\bin

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---           10/6/2023  4:54 PM        1804288 tcl86t.dll
-a---          10/27/2022  7:52 AM         134656 zlib1.dll

I have a Windows VM installed locally, running ARM and VS 1937, and running the same build command properly installs the shell executable, and I also don't see any messages in the CI output that would suggest that there was an issue of some kind, so I'm out of ideas.

The relevant portion of the build seems to be on line 900 of makefile.vc:

!if exist($(TCLSH))
	@echo Installing $(TCLSHNAME)
	@$(CPY) "$(TCLSH)" "$(BIN_INSTALL_DIR)\"

But why nmake believes that $(TCLSH) does not exist, I do not know.

Referenced by2
  • 89a8959f27Merge 9.0 - Fix [aa6e426437]. nmake shell install does not install shell on a clean build. The !if exist check happened BEFORE the build! and is unnecessary in any case. check-in2026-05-24 01:37:19
  • 54c45076a8Fix [aa6e426437]. nmake shell install does not install shell on a clean build. The !if exist check happened BEFORE the build! and is unnecessary in any case. check-in2026-05-24 01:33:57
apnadkarnimarkdown2023-10-07 15:14:40

Sorry, no direct answer but I have had issues in the past running nmake from powershell. No idea if that might be the case here. Did your local VM also run powershell?

FWIW, this workflow is what I use to build and test Tcl with extensions. May be a comparison will help identify the problem.

garfieldnatemarkdown2023-10-08 17:32:10

Couldn't find a "respond" or "comment" button, so I hope "Append Remark" under "Edit" is the right place to go.

Thank you to apnadkarni for the pointer to a working build. I do also use PowerShell locally, so I don't think that's the issue. I do see in apnadkarni's build that the install step is being done separately only after first running the default target. I'll try that in my build and get back to you. Doing release install in one step did work just fine on Mac and Linux, though.

Until I test this, my workaround is to manually copy the file: https://github.com/SoarGroup/Soar/blob/601736b2c0260dab815148e2b7b2f029f593c7ec/.github/workflows/build.yml#L157.

garfieldnatemarkdown2023-10-09 14:49:54

Well, that fixed it :) Just run nmake first with just the default target, then run it again with the install target, and the shell exe is correctly installed. I added a cache as well, so thanks for telling me to look through your build :).

apnadkarniplain2023-10-09 15:17:33
Glad it was of some help. I had a quick look at the Soar code. Seems the kernel is primarily C++? Out of curiosity what role does Tcl play in the framework?
garfieldnateplain2023-10-09 19:10:45
The top-level Soar language is heavily Tcl-inspired, but the available commands are all geared towards changing settings or running the production match/fire cycle, so it lacks most of what a regular programming language would offer. We support loading in the Tcl dll to give you a full-featured language at the top level (you sure do miss conveniences like variables!).

Also, the reason I was using tclsh, we have a Tcl bridge built via SWIG so that you can control Soar from Tcl scripts.
apnadkarniplain2026-05-24 01:39:29
Fixed "nmake shell install" target for 9.0 in [54c45076a8]. Will not be fixed for 8.6 which is EOL.
Log in (anonymous is fine) to add a comment.