Closed
Description
I'm trying to generate javascript for Pachi, and running into an out of memory error in the emcc node process. I'm wondering if it's possible to pass v8 arguments to the process to increase max heap size.
Steps to reproduce:
git clone git://repo.or.cz/pachi.git
cd pachi
git checkout pachi-10.00-satsugen
emmake make
mv pachi pachi.bc
emcc pachi.bc -o pachi.js
Relevant output:
Warning: warning: very large fixed-size structural type: [67108864 x i32] - can you reduce it? (compilation may be slow)
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
Traceback (most recent call last):
File "/home/scriby/emscripten/emscripten.py", line 800, in <module>
_main(environ=os.environ)
File "/home/scriby/emscripten/emscripten.py", line 788, in _main
temp_files.run_and_clean(lambda: main(
File "/home/scriby/emscripten/tools/tempfiles.py", line 38, in run_and_clean
return func()
File "/home/scriby/emscripten/emscripten.py", line 796, in <lambda>
DEBUG_CACHE=DEBUG_CACHE,
File "/home/scriby/emscripten/emscripten.py", line 683, in main
jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)
File "/home/scriby/emscripten/emscripten.py", line 176, in emscript
assert '//FORWARDED_DATA:' in out, 'Did not receive forwarded data in pre output - process failed?