Skip to content

emcc --clear-cache fails.

Description:

When running emcc --clear-cache it errors out with:

emcc: error: error in evaluating config file (/usr/lib/emscripten/.emscripten): name 'os' is not defined, text: NODE_JS = '/usr/bin/node'
LLVM_ROOT = '/opt/emscripten-llvm/bin'
BINARYEN_ROOT = '/usr'
EMSCRIPTEN_ROOT = '/usr/lib/emscripten'
CACHE = os.path.expanduser('~/.cache/emscripten')

Simple fix is to add import os to the top of /usr/lib/emscripten/.emscripten.

Additional info:

  • package version(s): 3.1.71-4
  • config and/or log files: N/A
  • link to upstream bug report, if any: N/A

Steps to reproduce:

  1. Install emscripten
  2. Run emcc --clear-cache
  3. Watch it fail.
Edited by Josh Ellithorpe
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information