Skip to content

File "C:\emsdk-main\upstream\emscripten\tools\cache.py", line 68, in lock acquire_cache_lock(reason) #22941

@Benman2785

Description

@Benman2785

latest emscripten installed today
VS2022 installed today

commands for compiling:

emcmake cmake -S. -Bbuild-em -DCMAKE_BUILD_TYPE=Release
embuilder build sdl2 sdl2_ttf sdl2_image sdl2_image_jpg sdl2_image_png
cmake --build build-em -j $(getconf _NPROCESSORS_ONLN)

File "C:\emsdk-main\upstream\emscripten\tools\cache.py", line 68, in lock
acquire_cache_lock(reason)
File "C:\emsdk-main\upstream\emscripten\tools\cache.py", line 42, in acquire_cache_lock
assert 'EM_CACHE_IS_LOCKED' not in os.environ, f'attempt to lock the cache while a parent process is holding the lock ({reason})'
AssertionError: attempt to lock the cache while a parent process is holding the lock (sysroot\lib\wasm32-emscripten\thinlto\libSDL2.a)

googled it and found same error in 2020 and 2023 -> all said its fixed on windows -> but it isnt

actually first time i didnt use

embuilder build sdl2 sdl2_ttf sdl2_image sdl2_image_jpg sdl2_image_png

but i restarted pc

full log: emsdk-err.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions