When following error brakes your compilation to asmjs/wasm:
note: shared:ERROR: fastcomp is not compatible with wasm object ... =
Just update emstcripten, and install upstream compiler.
emsdk install latest-upstream
$ emsdk activate latest-upstream $