共享wasm模块尚不支持EM_ASM

时间:2017-12-08 07:22:57

标签: javascript c++ emscripten

当我使用emscripten编译c文件时, 我使用了名为emscripten.h的公共API

Traceback (most recent call last):
  File "/usr/local/bin/emcc", line 13, in <module>
    emcc.run()
  File "/emscripten/emcc.py", line 1524, in run
    final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
  File "/emscripten/tools/shared.py", line 2011, in emscripten
    call_emscripten(cmdline)
  File "/emscripten/emscripten.py", line 2195, in _main
    temp_files.run_and_clean(lambda: main(
  File "/emscripten/tools/tempfiles.py", line 78, in run_and_clean
    return func()
  File "/emscripten/emscripten.py", line 2200, in <lambda>
    DEBUG=DEBUG,
  File "/emscripten/emscripten.py", line 2100, in main
    temp_files=temp_files, DEBUG=DEBUG)
  File "/emscripten/emscripten.py", line 102, in emscript
    function_tables_and_exports(funcs, metadata, mem_init, glue, forwarded_data, settings, outfile, DEBUG))
  File "/emscripten/emscripten.py", line 251, in function_tables_and_exports
    pre = include_asm_consts(pre, forwarded_json, metadata, settings)
  File "/emscripten/emscripten.py", line 643, in include_asm_consts
    assert len(metadata['asmConsts']) == 0, 'EM_ASM is not yet supported in shared wasm module (it cannot be stored in the wasm itself, need some solution)'
AssertionError: EM_ASM is not yet supported in shared wasm module (it cannot be stored in the wasm itself, need some solution)

终端反馈错误如下

unbase64()

如何解决?

0 个答案:

没有答案