"Unknown option '--trap-mode'" can be caused by a mismatch in the binaryen version and emscripten version. Are you specifying a custom binaryen build? (BINARYEN_ROOT in the config file, which may look at a BINARYEN env var by default) If you don't specify a custom binaryen, emscripten should automatically fetch the proper version from ports, which is best.
Any special reason for 1.37.9, btw? It's also possible that's an old enough version (almost a year) that I don't remember if it had some bug related to the trap mode. On Fri, Feb 23, 2018 at 6:29 PM, Mark Sibly <[email protected]> wrote: > Hi, > > I have users who have installed the 1.37.9 'portable' SDK who are getting > the error below when trying to link. > > Is it the same as this issue? > > https://github.com/kripken/emscripten/issues/5634 > > I have been rebuilding everything from incoming source lately myself - > will users need to do the same? > > Bye, > Mark > > // ***** link + error > > em++ -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s > DISABLE_EXCEPTION_CATCHING=1 -O2 -s ASSERTIONS=2 --preload-file > "D:/dev/monkey2/bananas/toy-plane/plane.buildv1.1.10/ > emscripten_debug/assets/@/assets" -s BINARYEN=1 -o > "D:/dev/monkey2/bananas/toy-plane/plane.products/Emscripten/Plane.js" > @tmp/lnkFiles1.txt > > Unknown option '--trap-mode' > > Traceback (most recent call last): > > File "D:\devtools\emsdk-portable-64bit\emscripten\incoming\\em++", line > 16, in <module> > > emcc.run() > > File "D:\devtools\emsdk-portable-64bit\emscripten\incoming\emcc.py", > line 1876, in run > > wasm_text_target, misc_temp_files, optimizer) > > File "D:\devtools\emsdk-portable-64bit\emscripten\incoming\emcc.py", > line 2348, in do_binaryen > > subprocess.check_call(cmd) > > File "D:\dev\monkey2\playniax\installers\emsdk\emsdk- > portable\python\2.7.5.3_64bit\lib\subprocess.py", line 542, in check_call > > raise CalledProcessError(retcode, cmd) > > subprocess.CalledProcessError: Command '['D:/dev/monkey2/playniax/ > installers/emsdk/emsdk-portable/clang/e1.37.9_64bit/binaryen\\bin\\asm2wasm', > 'D:/dev/monkey2/bananas/toy-plane/plane.products/Emscripten/Plane.temp.asm.js', > '--total-memory=268435456', '--trap-mode=allow', '-O2', > '--mem-init=D:/dev/monkey2/bananas/toy-plane/plane. > products/Emscripten/Plane.js.mem', '--mem-base=1024', '--wasm-only', > '-o', > 'D:/dev/monkey2/bananas/toy-plane/plane.products/Emscripten/Plane.wasm']' > returned non-zero exit status 1 > > > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
