<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<pre>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:
</pre>
<div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Fira Code', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 16px;line-height: 22px;white-space: pre;"><div><span style="color: #d4d4d4;">sudo ln -s /usr/share/emscripten/emcc.py /usr/share/emscripten/emcc && \</span></div><div><span style="color: #d4d4d4;"> sudo ln -s /usr/share/emscripten/emar.py /usr/share/emscripten/emar && \</span></div><div><span style="color: #d4d4d4;"> sudo ln -s /usr/share/emscripten/emranlib.py /usr/share/emscripten/emranlib && \</span></div><div><span style="color: #d4d4d4;"> sudo ln -s /usr/share/emscripten/em++.py /usr/share/emscripten/em++</span></div></div>
<pre>
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 compiling <a class="moz-txt-link-freetext" href="https://github.com/ERGO-Code/HiGHS">https://github.com/ERGO-Code/HiGHS</a> (as a part of <a class="moz-txt-link-freetext" href="https://github.com/lovasoa/highs-js">https://github.com/lovasoa/highs-js</a> )
</pre>
</body>
</html>