[Pkg-javascript-devel] Bug#999803: missing dependencies in the emscripten package

Ophir Lojkine ophir.lojkine at enexflow.com
Tue Nov 16 21:30:03 GMT 2021


Package: emscripten
Version: 2.0.12~dfsg-2


It looks like the emscripten debian package contains a few errors. It does not contain symlinks to the emscripten executables in the emscripten root directory, which makes compilation with emcmake fail. The missing symlinks are:

sudo ln -s /usr/share/emscripten/emcc.py /usr/share/emscripten/emcc && \
sudo ln -s /usr/share/emscripten/emar.py /usr/share/emscripten/emar && \
sudo ln -s /usr/share/emscripten/emranlib.py 
/usr/share/emscripten/emranlib && \
sudo ln -s /usr/share/emscripten/em++.py /usr/share/emscripten/em++

The package misses a dependency to the acorn js library, which raises the following error:

Error: Cannot find module 'acorn'
Require stack:
- /usr/share/emscripten/tools/acorn-optimizer.js
     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
     at Module.require (node:internal/modules/cjs/loader:1005:19)
     at require (node:internal/modules/cjs/helpers:102:18)
     at Object.<anonymous> (/usr/share/emscripten/tools/acorn-optimizer.js:1:13)
     at Module._compile (node:internal/modules/cjs/loader:1101:14)
     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
     at Module.load (node:internal/modules/cjs/loader:981:32)
     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
   code: 'MODULE_NOT_FOUND',
   requireStack: [ '/usr/share/emscripten/tools/acorn-optimizer.js' ]
}
emcc: error: '/usr/local/bin/node /usr/share/emscripten/tools/acorn-optimizer.js /tmp/emscripten_temp_g7n6r4of/highs.js.pp.js AJSDCE --closureFriendly' failed (1)
  


Tested while compilinghttps://github.com/ERGO-Code/HiGHS  (as a part ofhttps://github.com/lovasoa/highs-js  )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211116/029c7d1e/attachment.htm>


More information about the Pkg-javascript-devel mailing list