Recipe for target 'dosbox.html' failed
I got Emscripten using emsdk.
I have confirmed that Emscripten works fine via a test that Emscripten has.
The exact error looks likes this:
ERROR:root:'/home/user/emsdk/emsdk/clang/e1.38.12_64bit/binaryen/bin/asm2wasm dosbox.temp.asm.js --total-memory=134217728 --trap-mode=allow -03 --mem-init=dosbox.html.mem --mem-base=1024 -o dosbox.wasm' failed
It is able to output dosbox.js but after the error message appears the file is deleted.
The directory contains dosbox.html.mem, and dosbox.js.orig.js as well.
Edit: I'm using the latest LTS version of Ubuntu (64bit).
Did you try https://github.com/WebAssembly/binaryen/pull/1681? It fixed a bug that prevents my port of DOSBox-X (a fork of DOSBox) to build.
@yksoft1 I did get it to work somewhat, it compiles without SDL2, however, packing games results in an error. I can't get the message at the moment.