mymindstorm / setup-emsdk

Setup Emscripten for use with GitHub actions
MIT License
91 stars 26 forks source link

Installing emsdk fails on Windows with message "Unable to locate executable file: cp" #13

Closed stheophil closed 3 years ago

stheophil commented 3 years ago

I get the following log message


2021-04-30T11:04:23.7960455Z ##[group]Run mymindstorm/setup-emsdk@v7
2021-04-30T11:04:23.7961046Z with:
2021-04-30T11:04:23.7961379Z   version: 1.39.19
2021-04-30T11:04:23.7961875Z   actions-cache-folder: emsdk-cache
2021-04-30T11:04:23.7962372Z   no-install: false
2021-04-30T11:04:23.7962753Z   no-cache: false
2021-04-30T11:04:23.7963130Z   update-tags: false
2021-04-30T11:04:23.7963517Z ##[endgroup]
2021-04-30T11:04:24.3154151Z ##[warning]No cached files found at path "D:\a\tcjs\tcjs/emsdk-cache" - downloading and caching emsdk.
2021-04-30T11:04:24.4354382Z [command]"C:\Program Files\Git\usr\bin\rm.exe" -rf D:\a\tcjs\tcjs/emsdk-cache
2021-04-30T11:04:24.9649500Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\54d30ee7-dc05-4e2b-9d1c-95ee65f8d270', 'D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09')"
2021-04-30T11:04:25.9449138Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\emsdk.ps1 update-tags
2021-04-30T11:04:28.5909376Z `update-tags` is not longer needed.  To install the latest tot release just run `install tot`
2021-04-30T11:04:28.7020483Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\emsdk.ps1 install 1.39.19
2021-04-30T11:04:29.7525126Z Installing SDK 'sdk-releases-upstream-665121d026cafc46c29b30d6d4c45ed73eedbb7e-64bit'..
2021-04-30T11:04:29.7526808Z Installing tool 'node-14.15.5-64bit'..
2021-04-30T11:04:29.7528385Z Downloading: D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/zips/node-v14.15.5-win-x64.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v14.15.5-win-x64.zip, 30284821 Bytes
2021-04-30T11:04:30.0043575Z  [----------------------------------------------------------------------------]
2021-04-30T11:04:34.7186372Z Unpacking 'D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/zips/node-v14.15.5-win-x64.zip' to 'D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/node/14.15.5_64bit'
2021-04-30T11:04:34.7188020Z Done installing tool 'node-14.15.5-64bit'.
2021-04-30T11:04:34.7188699Z Installing tool 'python-3.9.2-1-64bit'..
2021-04-30T11:04:34.7191099Z Downloading: D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/zips/python-3.9.2-1-embed-amd64+pywin32.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/python-3.9.2-1-embed-amd64+pywin32.zip, 16982397 Bytes
2021-04-30T11:04:34.8756790Z  [----------------------------------------------------------------------------]
2021-04-30T11:04:35.8094560Z Unpacking 'D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/zips/python-3.9.2-1-embed-amd64+pywin32.zip' to 'D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/python/3.9.2-1_64bit'
2021-04-30T11:04:35.8096309Z Done installing tool 'python-3.9.2-1-64bit'.
2021-04-30T11:04:35.8099493Z Installing tool 'java-8.152-64bit'..
2021-04-30T11:04:35.8101154Z Downloading: D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/zips/portable_jre_8_update_152_64bit.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/portable_jre_8_update_152_64bit.zip, 69241499 Bytes
2021-04-30T11:04:36.6237367Z  [----------------------------------------------------------------------------]
2021-04-30T11:04:38.6550200Z Unpacking 'D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/zips/portable_jre_8_update_152_64bit.zip' to 'D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/java/8.152_64bit'
2021-04-30T11:04:38.6551574Z Done installing tool 'java-8.152-64bit'.
2021-04-30T11:04:38.6552807Z Installing tool 'releases-upstream-665121d026cafc46c29b30d6d4c45ed73eedbb7e-64bit'..
2021-04-30T11:04:38.6556878Z Downloading: D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/zips/665121d026cafc46c29b30d6d4c45ed73eedbb7e-wasm-binaries.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/win/665121d026cafc46c29b30d6d4c45ed73eedbb7e/wasm-binaries.zip, 548130212 Bytes
2021-04-30T11:04:42.2617023Z  [----------------------------------------------------------------------------]
2021-04-30T11:05:12.1186059Z Unpacking 'D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/zips/665121d026cafc46c29b30d6d4c45ed73eedbb7e-wasm-binaries.zip' to 'D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master/upstream'
2021-04-30T11:05:12.1188914Z Done installing tool 'releases-upstream-665121d026cafc46c29b30d6d4c45ed73eedbb7e-64bit'.
2021-04-30T11:05:12.1190473Z Running post-install step: npm ci ...
2021-04-30T11:05:12.1191504Z Running post-install step: npm install google-closure-compiler-windows
2021-04-30T11:05:12.1192423Z Done running: npm ci
2021-04-30T11:05:12.1195303Z Done installing SDK 'sdk-releases-upstream-665121d026cafc46c29b30d6d4c45ed73eedbb7e-64bit'.
2021-04-30T11:05:12.2139857Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\emsdk.ps1 activate 1.39.19
2021-04-30T11:05:13.8174079Z Adding directories to PATH:
2021-04-30T11:05:13.8175753Z PATH += D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master
2021-04-30T11:05:13.8176950Z PATH += D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\node\14.15.5_64bit\bin
2021-04-30T11:05:13.8178181Z PATH += D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\upstream\emscripten
2021-04-30T11:05:13.8179017Z 
2021-04-30T11:05:13.8192667Z Setting environment variables:
2021-04-30T11:05:13.8205632Z PATH = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master;D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\node\14.15.5_64bit\bin;D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\upstream\emscripten;C:\Users\runneradmin\.dotnet\tools;C:\Program Files\MongoDB\Server\4.4\bin;C:\aliyun-cli;C:\vcpkg;C:\cf-cli;C:\Program Files (x86)\NSIS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\2.5.1\x64;C:\tools\ghc-9.0.1\bin;C:\Program Files\dotnet;C:\mysql-5.7.21-winx64\bin;C:\Program Files\R\R-4.0.5\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\Program Files (x86)\sbt\bin;C:\Rust\.cargo\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\hostedtoolcache\windows\go\1.15.11\x64\bin;C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.7.9\x64;C:\hostedtoolcache\windows\Ruby\2.5.9\x64\bin;C:\hostedtoolcache\windows\Java_Adopt_jdk\8.0.292-10\x64\bin;C:\npm\prefix;C:\Program Files\Microsoft SDKs\Azure\Azure Dev Spaces CLI;C:\Program Files\Microsoft SDKs\Azure\Azure Dev Spaces CLI\;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\Chocolatey\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Docker;C:\Program Files\PowerShell\7\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.3\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\OpenSSL\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;c:\tools\php;C:\Program Files\TortoiseSVN\bin;C:\SeleniumWebDrivers\ChromeDriver\;C:\SeleniumWebDrivers\EdgeDriver\;C:\Program Files\CMake\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files (x86)\Microsoft BizTalk Server\;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps
2021-04-30T11:05:13.8216387Z EMSDK = D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master
2021-04-30T11:05:13.8217600Z EM_CONFIG = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\.emscripten
2021-04-30T11:05:13.8218707Z EMSDK_NODE = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\node\14.15.5_64bit\bin\node.exe
2021-04-30T11:05:13.8219910Z EMSDK_PYTHON = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\python\3.9.2-1_64bit\python.exe
2021-04-30T11:05:13.8221021Z JAVA_HOME = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\java\8.152_64bit
2021-04-30T11:05:13.8222718Z The changes made to environment variables only apply to the currently running shell instance. Use the 'emsdk_env.bat' to re-enter this environment later, or if you'd like to permanently register this environment permanently, rerun this command with the option --permanent.
2021-04-30T11:05:13.8224168Z Setting the following tools as active:
2021-04-30T11:05:13.8224844Z    node-14.15.5-64bit
2021-04-30T11:05:13.8225369Z    python-3.9.2-1-64bit
2021-04-30T11:05:13.8225906Z    java-8.152-64bit
2021-04-30T11:05:13.8227075Z    releases-upstream-665121d026cafc46c29b30d6d4c45ed73eedbb7e-64bit
2021-04-30T11:05:13.8228048Z 
2021-04-30T11:05:13.9139022Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\emsdk.ps1 construct_env
2021-04-30T11:05:15.5242219Z Adding directories to PATH:
2021-04-30T11:05:15.5243363Z PATH += D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master
2021-04-30T11:05:15.5244576Z PATH += D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\upstream\emscripten
2021-04-30T11:05:15.5253741Z PATH += D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\node\14.15.5_64bit\bin
2021-04-30T11:05:15.5254563Z 
2021-04-30T11:05:15.5255344Z Setting environment variables:
2021-04-30T11:05:15.5266960Z PATH = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master;D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\upstream\emscripten;D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\node\14.15.5_64bit\bin;C:\Users\runneradmin\.dotnet\tools;C:\Program Files\MongoDB\Server\4.4\bin;C:\aliyun-cli;C:\vcpkg;C:\cf-cli;C:\Program Files (x86)\NSIS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\2.5.1\x64;C:\tools\ghc-9.0.1\bin;C:\Program Files\dotnet;C:\mysql-5.7.21-winx64\bin;C:\Program Files\R\R-4.0.5\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\Program Files (x86)\sbt\bin;C:\Rust\.cargo\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\hostedtoolcache\windows\go\1.15.11\x64\bin;C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.7.9\x64;C:\hostedtoolcache\windows\Ruby\2.5.9\x64\bin;C:\hostedtoolcache\windows\Java_Adopt_jdk\8.0.292-10\x64\bin;C:\npm\prefix;C:\Program Files\Microsoft SDKs\Azure\Azure Dev Spaces CLI;C:\Program Files\Microsoft SDKs\Azure\Azure Dev Spaces CLI\;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\Chocolatey\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Docker;C:\Program Files\PowerShell\7\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.3\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\OpenSSL\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;c:\tools\php;C:\Program Files\TortoiseSVN\bin;C:\SeleniumWebDrivers\ChromeDriver\;C:\SeleniumWebDrivers\EdgeDriver\;C:\Program Files\CMake\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files (x86)\Microsoft BizTalk Server\;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps
2021-04-30T11:05:15.5278540Z EMSDK = D:/a/_temp/e1951493-2db5-4cba-80e0-ee68e85a3b09/emsdk-master
2021-04-30T11:05:15.5279658Z EM_CONFIG = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\.emscripten
2021-04-30T11:05:15.5280846Z EMSDK_NODE = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\node\14.15.5_64bit\bin\node.exe
2021-04-30T11:05:15.5282119Z EMSDK_PYTHON = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\python\3.9.2-1_64bit\python.exe
2021-04-30T11:05:15.5283320Z JAVA_HOME = D:\a\_temp\e1951493-2db5-4cba-80e0-ee68e85a3b09\emsdk-master\java\8.152_64bit
2021-04-30T11:05:15.5729754Z ##[error]Unable to locate executable file: cp. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.

Any idea what is going wrong?

stheophil commented 3 years ago

My main.yml file is https://github.com/think-cell/tcjs/blob/master/.github/workflows/main.yml

mymindstorm commented 3 years ago

This looks like a bug on my end, will make a release to fix it later today.

mymindstorm commented 3 years ago

This should be fixed as of v9.

stheophil commented 3 years ago

Thanks for the quick reaction! Will try it out on Monday!

Von meinem iPhone gesendet

-- Dr. Sebastian Theophil Senior Software Engineer @.**@.> | +49 30 666473-10

We are looking for C++ Developers: https://www.think-cell.com/developers

think-cell Software GmbH (Web sitehttps://www.think-cell.com) Chausseestr. 8/E, 10115 Berlin, Germany Main phone +49 30 666473-10 | US toll-free +1 800 891 8091

Amtsgericht Berlin-Charlottenburg HRB 180042 | European Union VAT Id DE308385481 Directors: Dr. Markus Hannebauer, Dr. Arno Schödl

Please refer to our privacy policyhttps://www.think-cell.com/privacy on how we protect your personal data.

Am 01.05.2021 um 03:45 schrieb mymindstorm @.***>:



This should be fixed as of v9.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mymindstorm/setup-emsdk/issues/13#issuecomment-830485669, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABHGZATCNTA44TDH47ZXAU3TLNMJ5ANCNFSM434AM5NA.