[Pkg-javascript-devel] Bug#1005294: Bug#1005294: Emscripten attempts to run invalid closure-compiler command

Jonas Smedegaard jonas at jones.dk
Thu Feb 10 21:23:18 GMT 2022


Hi Jeremy,

Quoting Jeremy James (2022-02-10 19:00:26)
> If emcc is run with --closure 1 then you receive an error that the 
> command '--max_old_space_size=8192' is invalid.

Yes, this is a known issue, documented in README.Debian: 
https://salsa.debian.org/js-team/emscripten/-/blob/debian/latest/debian/README.Debian#L50


> Since max_old_space_size is a nodejs parameter that would have been 
> inserted into the return value of 
> shared.get_npm_cmd('google-closure-compiler'), I would suggest 
> removing the 'if not WINDOWS' section condition altogether in [patch 
> 2009_closure-compiler.patch].

Thanks for the suggestion.  I wonder if such change will actually be any 
better: I very much doubt that the horribly old closure-compiler 
available in Debian can do *anything* sensible, but would be happy if 
proven wrong.

Did you test that suggested change, using closure-compiler in Debian?


> A workaround is to set CLOSURE_COMPILER, except there was a separate 
> upstream bug that broke this until recently [1].
> 
> [1] https://github.com/emscripten-core/emscripten/pull/15008

Sounds like you have some knowledge/experience here.

I am open to improving README.Debian, but will need help: Please provide 
suggestions for rephrased text.


Kind regards,

 - 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/20220210/03abef08/attachment.sig>


More information about the Pkg-javascript-devel mailing list