Skip to content

issue with cache directory in new version (3.1.71)

Description:

The automatic fallback to $HOME/.emscripten_cache for the cache directory has been removed in 3.1.71.

Has a result, running emcc fails:

emcc: error: unable to create cache directory "{cachdir}": parent directory not writable (see https://emscripten.org/docs/tools_reference/emcc.html for info on setting the cache directory)

Additional info:

  • package version(s): 3.1.71

Possible fix:

  • add a dependency on python-platformdirs
  • and explicitly set the cache directory in /usr/lib/emscripten/.emscripten:
NODE_JS = '/usr/bin/node'
LLVM_ROOT = '/opt/emscripten-llvm/bin'
BINARYEN_ROOT = '/usr'
EMSCRIPTEN_ROOT = '/usr/lib/emscripten'
CACHE = __import__('platformdirs').user_cache_dir('emscripten')
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information