Both those warnings and that error don't look familiar - do you have a
testcase I can debug?

- Alon


On Sun, Jul 7, 2019 at 8:56 PM Александр Гурьянов <[email protected]>
wrote:

> Hi is it possible to generate asm.js with latest-upstream backend. I
> tried with couple projects and always have same error:
>
> emcc:WARNING: emcc: JS support in the upstream LLVM+wasm2js path is
> very experimental currently (best to use fastcomp for asm.js for now)
> wasm2js: warning: global scope may be colliding with other scope:
> Vector__operator__28Vector_20const__29_20const
> wasm2js: warning: global scope may be colliding with other scope:
> operator__28b2Vec2_20const__2c_20b2Vec2_20const__29
> wasm2js: warning: global scope may be colliding with other scope:
> b2Vec2__operator___28b2Vec2_20const__29
> wasm2js: warning: global scope may be colliding with other scope:
> Vector__operator__28Vector_20const__29_20const
> wasm2js: warning: global scope may be colliding with other scope:
> Vector__operator__28Vector_20const__29_20const_1
> wasm2js: warning: global scope may be colliding with other scope:
> Vector__operator___28Vector_20const__29_20const
> wasm2js: warning: global scope may be colliding with other scope:
> RGBAColor__operator__28RGBAColor_20const__29_20const
> wasm2js: warning: global scope may be colliding with other scope:
>
> google__protobuf__operator___28google__protobuf__Map_int_2c_20BBProtocol__ServerMessage___const_iterator_20const__2c_20google__protobuf__Map_int_2c_20BBProtocol__ServerMessage___const_iterator_20const__29
> wasm2js: warning: global scope may be colliding with other scope:
> bool_20gamepix__TimeMs__operator__long__28long_20const__29_20const
> wasm2js: warning: global scope may be colliding with other scope:
> Skins__Item__operator___28Skins__Item_20const__29_20const
> wasm2js: warning: global scope may be colliding with other scope:
> RGBAColor__operator__28RGBAColor_20const__29_20const
> wasm2js: warning: global scope may be colliding with other scope:
> RGBAColor__operator__28RGBAColor_20const__29_20const_1
> wasm2js: warning: global scope may be colliding with other scope:
> operator__28b2Vec3_20const__2c_20b2Vec3_20const__29
> wasm2js: warning: global scope may be colliding with other scope:
> ZF__Touch__operator___28ZF__Touch_20const__29
> Failed opening 'bin.wasm'
> Traceback (most recent call last):
>   File "/home/caiiiycuk/emscripten/sdk/emsdk/upstream/emscripten/emcc.py",
> line 3440, in <module>
>     sys.exit(run(sys.argv))
>   File "/home/caiiiycuk/emscripten/sdk/emsdk/upstream/emscripten/emcc.py",
> line 2315, in run
>     optimizer)
>   File "/home/caiiiycuk/emscripten/sdk/emsdk/upstream/emscripten/emcc.py",
> line 2885, in do_binaryen
>     shared.Building.emit_wasm_symbol_map(wasm_file=wasm_binary_target,
> symbols_file=target + '.symbols', debug_info=debug_info)
>   File
> "/home/caiiiycuk/emscripten/sdk/emsdk/upstream/emscripten/tools/shared.py",
> line 2717, in emit_wasm_symbol_map
>     output = run_process(cmd, stdout=PIPE).stdout
>   File
> "/home/caiiiycuk/emscripten/sdk/emsdk/upstream/emscripten/tools/shared.py",
> line 181, in run_process
>     result.check_returncode()
>   File
> "/home/caiiiycuk/emscripten/sdk/emsdk/upstream/emscripten/tools/shared.py",
> line 161, in check_returncode
>     raise Py2CalledProcessError(returncode=self.returncode,
> cmd=self.args, output=self.stdout, stderr=self.stderr)
> tools.shared.Py2CalledProcessError: Command
> '['/home/caiiiycuk/emscripten/sdk/emsdk/upstream/bin/wasm-opt',
> '--print-function-map', 'bin.wasm', '-o', 'bin.wasm']' returned
> non-zero exit status 1
> ninja: build stopped: subcommand failed.
>
>
> For all projects that I tried, I have this message:
> Failed opening 'bin.wasm', I asking to compile bin.js, so look like
> wasm didn't emitted.
>
> EMCC_DEBUG log is attached
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVGu-VyX5SBVo2eEiS6EOwPPQLDbH4BU7-MEz%3DNjsDMLMw%40mail.gmail.com
> .
> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpRJHuJ%2BEepuyxcmFDB-Nd%2BzdqO5JJACRBv%3DFHivcQrmLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to