-
Notifications
You must be signed in to change notification settings - Fork 34
mymindstorm/setup-emsdk@v14 breaks building #52
Copy link
Copy link
Open
Description
Output of failure with v14:
Run mymindstorm/setup-emsdk@v14
with:
version: 4.0.10
actions-cache-folder: emsdk-cache
no-install: false
no-cache: false
update: false
update-tags: false
env:
EM_VERSION: 4.0.10
EM_CACHE_FOLDER: emsdk-cache
PATH: /home/runner/work/dragengine/dragengine/glslang/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/emsdk activate 4.0.10
Resolving SDK version '4.0.10' to 'sdk-releases-8103ffedfb0c42d231c6af6859a5a1a832260b43-64bit'
Setting the following tools as active:
node-22.16.0-64bit
releases-8103ffedfb0c42d231c6af6859a5a1a832260b43-64bit
Next steps:
- To conveniently access emsdk tools from the command line,
consider adding the following directories to your PATH:
/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main
/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten
- This can be done for the current shell by running:
source "/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/emsdk_env.sh"
- Configure emsdk in your shell startup scripts by running:
echo 'source "/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/emsdk_env.sh"' >> $HOME/.bash_profile
/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/emsdk construct_env
Setting up EMSDK environment (suppress these messages with EMSDK_QUIET=1)
Adding directories to PATH:
PATH += /home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main
PATH += /home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten
Setting environment variables:
PATH = /home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main:/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten:/home/runner/work/dragengine/dragengine/glslang/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
EMSDK = /home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main
EMSDK_NODE = /home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/node/22.16.0_64bit/bin/node
export PATH="/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main:/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten:/home/runner/work/dragengine/dragengine/glslang/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games";
export EMSDK="/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main";
export EMSDK_NODE="/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/node/22.16.0_64bit/bin/node";
Failure then:
Build JPEG library
patching file CMakeLists.txt
configure: cmake '-GUnix Makefiles' -DENABLE_SHARED=Off -DENABLE_STATIC=On -DWITH_TURBOJPEG=Off -DWITH_TOOLS=Off -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_C_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC -DWITH_SIMD=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/runner/work/dragengine/dragengine/extern/libjpeg/build -DCMAKE_INSTALL_LIBDIR=/home/runner/work/dragengine/dragengine/extern/libjpeg/build/lib /home/runner/work/dragengine/dragengine/extern/libjpeg/build/libjpeg-turbo-3.1.0 -DCMAKE_TOOLCHAIN_FILE=/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/node/22.16.0_64bit/bin/node
CMake Error at /home/runner/work/dragengine/dragengine/extern/libjpeg/build/build/CMakeFiles/3.31.6/CMakeSystem.cmake:6 (include):
include could not find requested file:
/home/runner/work/_temp/afc88e1c-dcc9-4049-9706-2fd5176f736b/emsdk-main/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
System is unknown to cmake, create:
Platform/Emscripten to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
CMake Error at CMakeLists.txt:7 (project):
The CMAKE_C_COMPILER:
/home/runner/work/_temp/afc88e1c-dcc9-4049-9706-2fd5176f736b/emsdk-main/upstream/emscripten/emcc
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
emcmake: error: 'cmake '-GUnix Makefiles' -DENABLE_SHARED=Off -DENABLE_STATIC=On -DWITH_TURBOJPEG=Off -DWITH_TOOLS=Off -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_C_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC -DWITH_SIMD=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/runner/work/dragengine/dragengine/extern/libjpeg/build -DCMAKE_INSTALL_LIBDIR=/home/runner/work/dragengine/dragengine/extern/libjpeg/build/lib /home/runner/work/dragengine/dragengine/extern/libjpeg/build/libjpeg-turbo-3.1.0 -DCMAKE_TOOLCHAIN_FILE=/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/node/22.16.0_64bit/bin/node' failed (returned 1)
RunExternalCommand failed for script:
export CC="/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten/emcc"
export CXX="/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten/em++"
export AS="as"
export AR="/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten/emar"
export STRIP="strip"
export RANLIB="/home/runner/work/dragengine/dragengine/emsdk-cache/emsdk-main/upstream/emscripten/emranlib"
export CFLAGS="-O3 -pthread"
export CXXFLAGS="-sDISABLE_EXCEPTION_CATCHING=0 -O3 -pthread"
export LDFLAGS="-sDISABLE_EXCEPTION_CATCHING=0 -sALLOW_MEMORY_GROWTH -pthread"
cd "/home/runner/work/dragengine/dragengine/extern/libjpeg/build/libjpeg-turbo-3.1.0" || exit 1
patch -p1 </home/runner/work/dragengine/dragengine/extern/libjpeg/patches/3.1.0/01_disable_binaries.patch || exit 1
cd "/home/runner/work/dragengine/dragengine/extern/libjpeg/build/build" || exit 1
emcmake cmake -G"Unix Makefiles" -DENABLE_SHARED=Off -DENABLE_STATIC=On -DWITH_TURBOJPEG=Off -DWITH_TOOLS=Off -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_C_FLAGS="-fPIC" -DWITH_SIMD=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/home/runner/work/dragengine/dragengine/extern/libjpeg/build" -DCMAKE_INSTALL_LIBDIR="/home/runner/work/dragengine/dragengine/extern/libjpeg/build/lib" "/home/runner/work/dragengine/dragengine/extern/libjpeg/build/libjpeg-turbo-3.1.0" || exit 1
make -j 4 install || exit 1
scons: *** [extern/libjpeg/build/lib/libjpeg.a] Exception : Failed building libjpeg
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/SCons/Action.py", line 1310, in execute
result = self.execfunction(target=target, source=rsources, env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/dragengine/dragengine/extern/libjpeg/SConscript", line 159, in jpegBuild
raise Exception('Failed building libjpeg')
Exception: Failed building libjpeg
scons: building terminated because of errors.
Error: Process completed with exit code 2.
Worked before updating mymindstorm/setup-emsdk to v14 for Node.JS update compatibility on github.
Main point of error seems to be this:
include could not find requested file:
/home/runner/work/_temp/afc88e1c-dcc9-4049-9706-2fd5176f736b/emsdk-main/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
Looks like v14 does not set up the environment correctly anymore.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels