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

Jonas Smedegaard jonas at jones.dk
Wed Nov 17 01:05:11 GMT 2021


Hi Ophir,

Quoting Ophir Lojkine (2021-11-16 22:30:03)
> 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++

Debian packaging of emscripten provides executables in $PATH.

Please try use those.


> 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)

emscripten 2.0.12~dfsg-2 depends on node-acorn, so the cause for above 
error must be a different one.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211117/adf95a28/attachment.sig>


More information about the Pkg-javascript-devel mailing list