Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dbe28a2f7b3b00a41e5e8d53217c1445b382a3960fa663853343db209bccb227
Ticket: aa6e42643794ecff2f3508d7306c702baf4f4c0f
tclsh86t.exe not installed in GitHub CI
User & Date: garfieldnate on 2023-10-06 17:33:52
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed 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.
    
  5. foundin changed to: "8.6.13"
  6. is_private changed to: "0"
  7. login: "garfieldnate"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "04676fae1713753d93607148771620fb9716c411"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "garfieldnate"
  14. subsystem changed to: "69. Other"
  15. title changed to: "tclsh86t.exe not installed in GitHub CI"
  16. type changed to: "Bug"