I also have following warnings:
em++: warning: LLVM version for clang executable
"/home/caiiiycuk/sdk/emsdk/upstream/bin/clang" appears incorrect (seeing
"16.0", expected "15.0") [-Wversion-check]
em++: warning: LLVM version for clang executable
"/home/caiiiycuk/sdk/emsdk/upstream/bin/clang" appears incorrect (seeing
"16.0", expected "15.0") [-Wversion-check]

And my project didn't compile anymore:

cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libGL-webgl2.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libGL-webgl2.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libal.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libal.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libhtml5.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libhtml5.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libstubs.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libstubs.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libnoexit.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libnoexit.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libc-optz.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libc-optz.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libdlmalloc.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libdlmalloc.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libcompiler_rt.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libcompiler_rt.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libc++-noexcept.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libc++-noexcept.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libc++abi-noexcept.a... (this will be cached
in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libc++abi-noexcept.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library:
sysroot/lib/wasm32-emscripten/libsockets.a... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libsockets.a"
for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system asset:
sysroot/lib/wasm32-emscripten/struct_info.json... (this will be cached in
"/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/struct_info.json"
for subsequent builds)
emcc: warning: unexpected binaryen version: 109 (expected 104)
[-Wversion-check]
emscripten:ERROR: emscript: failure to parse metadata output from
wasm-emscripten-finalize. raw output is:

Traceback (most recent call last):
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emcc.py", line 3945, in
<module>
    sys.exit(main(sys.argv))
  File "/usr/lib/python3.10/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emcc.py", line 3938, in
main
    ret = run(args)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emcc.py", line 1186, in
run
    phase_post_link(options, state, wasm_target, wasm_target, target)
  File "/usr/lib/python3.10/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emcc.py", line 2728, in
phase_post_link
    phase_emscript(options, in_wasm, wasm_target, memfile)
  File "/usr/lib/python3.10/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emcc.py", line 2756, in
phase_emscript
    emscripten.run(in_wasm, wasm_target, final_js, memfile)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emscripten.py", line 937,
in run
    emscript(in_wasm, out_wasm, outfile_js, memfile)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emscripten.py", line 297,
in emscript
    metadata = finalize_wasm(in_wasm, out_wasm, memfile)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emscripten.py", line 526,
in finalize_wasm
    metadata = get_metadata_binaryen(infile, outfile, modify_wasm, args)
  File "/usr/lib/python3.10/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emscripten.py", line 406,
in get_metadata_binaryen
    metadata = load_metadata_json(stdout)
  File "/home/caiiiycuk/sdk/emsdk/emscripten/main/emscripten.py", line 856,
in load_metadata_json
    metadata_json = json.loads(metadata_raw)
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
FAIL: Compilation failed!:
['/home/caiiiycuk/sdk/emsdk/emscripten/main/emcc', '-D_GNU_SOURCE', '-o',
'/tmp/tmpnru03hjf.js', '/tmp/tmpi3s6le5u.c', '-O0', '-Werror',
'-Wno-format', '-nostdlib',
'/home/caiiiycuk/sdk/emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/libcompiler_rt.a',
'-sMEMORY64=0', '-sBOOTSTRAPPING_STRUCT_INFO=1',
'-sLLD_REPORT_UNDEFINED=1', '-sSTRICT', '-sSINGLE_FILE',
'-Wno-error=version-check', '-Wno-deprecated']
ninja: build stopped: subcommand failed.

emcc --version
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld)
3.1.20 (5d878c99921ec247d34fb26a20b5a13d60d69e93)
Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)
This is free and open source software under the MIT license.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

emsdk commit:
commit b1bb477e38539f81f6db7a3c24be9df476ff516b (HEAD -> main, origin/main)
Author: Joel Van Eenwyk <[email protected]>
Date:   Tue Aug 30 07:25:39 2022 -0700

    Add double-quotes to allow spaces in path (#1097)



пн, 5 сент. 2022 г. в 20:24, 'Sam Clegg' via emscripten-discuss <
[email protected]>:

>
>
> On Mon, Sep 5, 2022 at 6:28 AM Александр Гурьянов <[email protected]>
> wrote:
>
>> the output of wasm-opt --version:
>>
>> ./upstream/bin/wasm-opt --version
>> wasm-opt version 109 (version_109-27-gb69d3a8fa)
>>
>> пн, 5 сент. 2022 г. в 16:19, Александр Гурьянов <[email protected]>:
>>
>>> Hi. I use emsdk, and after updating to 3.1.20 I have following warnings:
>>>
>>> emcc: warning: unexpected binaryen version: 109 (expected 104)
>>> [-Wversion-check]
>>> emcc: warning: unexpected binaryen version: 109 (expected 104)
>>> [-Wversion-check]
>>> em++: warning: unexpected binaryen version: 109 (expected 104)
>>> [-Wversion-check]
>>>
>>
> This expected version looks wrong.  It should be expecting 109 if you are
> using 3.1.20.
>
> Can you run `which emcc` and `emcc --version` to see why the wrong version
> seems to be being used?
>
> cheers,
> sam
>
>
>>
>>> What does it mean? I used following commands
>>>
>>> ./emsdk install latest
>>> ./emsdk activate latest
>>> source emsdk_env.sh
>>>
>>> ./emcc ...
>>>
>>> I tried clear caches with --clear-cache, but warning still there...
>>>
>> --
>> 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%3DVEw37Qzzik%2BmpvRrK9HQnZiaDZRcRC2DsLX7HtUkoAW-A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVEw37Qzzik%2BmpvRrK9HQnZiaDZRcRC2DsLX7HtUkoAW-A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/CAL_va2_J9OL0ZrM-wfE1oSUDiA2Mr0S6jLQ%2BcXKk2sfE0XEenA%40mail.gmail.com
> <https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2_J9OL0ZrM-wfE1oSUDiA2Mr0S6jLQ%2BcXKk2sfE0XEenA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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%3DVHNwAJ3jvo4AXB4R4DrUpP_810J6eMQ3q_ymkJAKQuFbA%40mail.gmail.com.

Reply via email to