Package: emscripten Version: 3.1.6~dfsg-5 Severity: important X-Debbugs-Cc: a...@debian.org
Dear maintainer, emscripten fails to build from source with the latest version of binaryen, currently 116, in experimental. I'm attaching the complete build log. I intend to upload a new version of binaryen to unstable next year because I know that emscripten has no real maintainer and is currently maintained by the QA team. I will ping this bug report again before I do the upload but I hope someone else can look into this problem before that. I wonder if emscripten should embed the exact version of binaryen required to build the package to avoid a circular dependency (because then I could use emscripten to build wabt.js for example). These are the last log lines when emscripten fails: embuilder:INFO: building struct_info cache:INFO: generating system asset: sysroot/lib/wasm32-emscripten/struct_info.json... (this will be cached in "/<<PKGBUILDDIR>>/debian/em_cache/sysroot/lib/wasm32-emscripten/struct_info.json" for subsequent builds) emscripten:ERROR: emscript: failure to parse metadata output from wasm-emscripten-finalize. raw output is: Traceback (most recent call last): File "/<<PKGBUILDDIR>>/emcc.py", line 3947, in <module> sys.exit(main(sys.argv)) ^^^^^^^^^^^^^^ File "/usr/lib/python3.11/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/emcc.py", line 3940, in main ret = run(args) ^^^^^^^^^ File "/<<PKGBUILDDIR>>/emcc.py", line 1199, in run phase_post_link(options, state, wasm_target, wasm_target, target) File "/usr/lib/python3.11/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/emcc.py", line 2753, in phase_post_link phase_emscript(options, in_wasm, wasm_target, memfile) File "/usr/lib/python3.11/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/emcc.py", line 2781, in phase_emscript emscripten.run(in_wasm, wasm_target, final_js, memfile) File "/<<PKGBUILDDIR>>/emscripten.py", line 932, in run emscript(in_wasm, out_wasm, outfile_js, memfile) File "/<<PKGBUILDDIR>>/emscripten.py", line 297, in emscript metadata = finalize_wasm(in_wasm, out_wasm, memfile) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/emscripten.py", line 521, in finalize_wasm metadata = get_metadata_binaryen(infile, outfile, modify_wasm, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/emscripten.py", line 406, in get_metadata_binaryen metadata = load_metadata_json(stdout) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/emscripten.py", line 851, in load_metadata_json metadata_json = json.loads(metadata_raw) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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!: ['emcc', '-D_GNU_SOURCE', '-o', '/tmp/tmp3mop6qgt.js', '/tmp/tmpelb1y5rp.c', '-O0', '-Werror', '-Wno-format', '-nostdlib', '/<<PKGBUILDDIR>>/debian/em_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'] make[1]: *** [debian/rules:195: override_dh_auto_build] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:378: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
emscripten_3.1.6~dfsg-5.gz
Description: application/gzip