Artifacts Associated With Ticket aa6e42643794ecff
Ticket change [dbe28a2f7b] (rid 219162) by garfieldnate on 2023-10-06 17:33:52:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
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: ```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: ```make !if exist($(TCLSH)) @echo Installing $(TCLSHNAME) @$(CPY) "$(TCLSH)" "$(BIN_INSTALL_DIR)\" ``` But why `nmake` believes that `$(TCLSH)` does not exist, I do not know. - foundin initialized to: "8.6.13"
- is_private initialized to: "0"
- login: "garfieldnate"
- priority initialized to: "5 Medium"
- private_contact initialized to: "04676fae1713753d93607148771620fb9716c411"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "garfieldnate"
- subsystem initialized to: "69. Other"
- title initialized to: "tclsh86t.exe not installed in GitHub CI"
- type initialized to: "Bug"
Ticket change [a78849d4e3] (rid 219168) by apnadkarni on 2023-10-07 15:14:40:
- icomment:
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](https://github.com/apnadkarni/tcl-cffi/blob/main/.github/workflows/msvc.yml) workflow is what I use to build and test Tcl with extensions. May be a comparison will help identify the problem.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [4e56113e5c] (rid 219186) by garfieldnate on 2023-10-08 17:32:10:
- icomment:
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.
- login: "garfieldnate"
- mimetype: "text/x-markdown"
- username: "garfieldnate"
- icomment:
Ticket change [0a8ee3183d] (rid 219199) by garfieldnate on 2023-10-09 14:49:54:
- icomment:
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 :).
- login: "garfieldnate"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [7d79f3ea86] (rid 219200) by apnadkarni on 2023-10-09 15:17:33:
- icomment:
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?
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [7eb84c7f58] (rid 219206) by garfieldnate on 2023-10-09 19:10:45:
- icomment:
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.
- login: "garfieldnate"
- mimetype: "text/plain"
- icomment:
Ticket change [aeedae209d] (rid 253845) by apnadkarni on 2026-05-24 01:39:29:
- closedate changed to: "2461184.5690871873"
- closer changed to: "apnadkarni"
- icomment:
Fixed "nmake shell install" target for 9.0 in [54c45076a8]. Will not be fixed for 8.6 which is EOL.
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"