-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
When trying to build with cmake, an emscripten tool errors saying that FROZEN_CACHE is set. I've tried setting it to false in emscripten_config, but that has no effect on the error.
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.5 ()
Ubuntu clang version 13.0.1-2ubuntu2.1
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /usr/bin
Failing command line in full:
cmake --build .
Full link command and output with -v appended:
/usr/bin/cmake -S/mnt/c/Users/kihea/build/K.Engine -B/mnt/c/Users/kihea/build/K.Engine/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /mnt/c/Users/kihea/build/K.Engine/build/CMakeFiles /mnt/c/Users/kihea/build/K.Engine/build//CMakeFiles/progress.marks
/usr/bin/gmake -f CMakeFiles/Makefile2 all
gmake[1]: Entering directory '/mnt/c/Users/kihea/build/K.Engine/build'
/usr/bin/gmake -f CMakeFiles/K.Engine.dir/build.make CMakeFiles/K.Engine.dir/depend
gmake[2]: Entering directory '/mnt/c/Users/kihea/build/K.Engine/build'
cd /mnt/c/Users/kihea/build/K.Engine/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /mnt/c/Users/kihea/build/K.Engine /mnt/c/Users/kihea/build/K.Engine /mnt/c/Users/kihea/build/K.Engine/build /mnt/c/Users/kihea/build/K.Engine/build /mnt/c/Users/kihea/build/K.Engine/build/CMakeFiles/K.Engine.dir/DependInfo.cmake --color=
gmake[2]: Leaving directory '/mnt/c/Users/kihea/build/K.Engine/build'
/usr/bin/gmake -f CMakeFiles/K.Engine.dir/build.make CMakeFiles/K.Engine.dir/build
gmake[2]: Entering directory '/mnt/c/Users/kihea/build/K.Engine/build'
[ 20%] Linking CXX executable bin/K.Engine.html
/usr/bin/cmake -E cmake_link_script CMakeFiles/K.Engine.dir/link.txt --verbose=1
/usr/bin/em++ -sALLOW_MEMORY_GROWTH=1 -sMAX_WEBGL_VERSION=2 -sMIN_WEBGL_VERSION=2 -sUSE_LIBPNG=1 -sUSE_SDL_MIXER=2 -sLLD_REPORT_UNDEFINED --preload-file /mnt/c/Users/kihea/build/K.Engine/Assets@Assets @CMakeFiles/K.Engine.dir/objects1.rsp -o bin/K.Engine.html
Traceback (most recent call last):
File "/usr/share/emscripten/em++.py", line 14, in
sys.exit(emcc.run(sys.argv))
File "/usr/share/emscripten/emcc.py", line 1178, in run
phase_calculate_system_libraries(state, linker_arguments, linker_inputs, newargs)
File "/usr/lib/python3.10/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/usr/share/emscripten/emcc.py", line 2677, in phase_calculate_system_libraries
extra_files_to_link += ports.get_libs(settings)
File "/usr/share/emscripten/tools/ports/init.py", line 342, in get_libs
ret += [f for f in port.get(Ports, settings, shared) if not f.endswith('.txt')]
File "/usr/share/emscripten/tools/ports/sdl2.py", line 23, in get
ports.fetch_project('sdl2', 'https://github.com/libsdl-org/SDL/archive/' + TAG + '.zip', SUBDIR, sha512hash=HASH)
File "/usr/share/emscripten/tools/ports/init.py", line 247, in fetch_project
with shared.Cache.lock():
File "/usr/lib/python3.10/contextlib.py", line 135, in enter
return next(self.gen)
File "/usr/share/emscripten/tools/cache.py", line 74, in lock
self.acquire_cache_lock()
File "/usr/share/emscripten/tools/cache.py", line 43, in acquire_cache_lock
raise Exception('Attempt to lock the cache but FROZEN_CACHE is set')
Exception: Attempt to lock the cache but FROZEN_CACHE is set
gmake[2]: *** [CMakeFiles/K.Engine.dir/build.make:150: bin/K.Engine.html] Error 1
gmake[2]: Leaving directory '/mnt/c/Users/kihea/build/K.Engine/build'
gmake[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/K.Engine.dir/all] Error 2
gmake[1]: Leaving directory '/mnt/c/Users/kihea/build/K.Engine/build'
gmake: *** [Makefile:91: all] Error 2