Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#54068 - [emscripten] Please rebuild against newer llvm
Attached to Project:
Community Packages
Opened by Link Mauve (linkmauve) - Monday, 15 May 2017, 18:28 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 26 May 2017, 13:15 GMT
Opened by Link Mauve (linkmauve) - Monday, 15 May 2017, 18:28 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 26 May 2017, 13:15 GMT
|
DetailsDescription:
The emscripten package is currently built against LLVM 3.9.0, while the llvm package in extra is 4.0.0, this makes it impossible for programs using the system LLVM to use Emscripten. Additional info: * package version(s) emscripten 1.37.5-1 llvm 4.0.0-2 * config and/or log files etc. When running `rustc --target=wasm32-unknown-emscripten`: error: Invalid record (Producer: 'LLVM4.0.0' Reader: 'LLVM 3.9.0') Traceback (most recent call last): File "/usr/lib/emscripten/emcc.py", line 2383, in <module> run() File "/usr/lib/emscripten/emcc.py", line 1637, in run final = shared.Building.llvm_opt(final, link_opts, DEFAULT_FINAL) File "/usr/lib/emscripten/tools/shared.py", line 1838, in llvm_opt assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output AssertionError: Failed to run llvm optimizations: Steps to reproduce: - Write a Rust hello world program. - Run `rustc --target=wasm32-unknown-emscripten hello.rs` - See it fail with the above log. |
This task depends upon
Comment by Doug Newgard (Scimmia) -
Tuesday, 16 May 2017, 15:52 GMT
Is LLVM 4 available for it?
Comment by Link Mauve (linkmauve) -
Wednesday, 17 May 2017, 03:12 GMT
Oh, maybe not, should I take that upstream?
Comment by Link Mauve (linkmauve) -
Sunday, 21 May 2017, 17:03 GMT
According to https://github.com/kripken/emscripten-fastcomp/pull/166 support for LLVM 4.0 got merged two months ago already.
Comment by Link Mauve (linkmauve) -
Tuesday, 23 May 2017, 23:44 GMT
Sorry, but it seems just bumping the pkgrel didn’t make it rebuild against 4.0, from what I understand you may need to point the emscripten-fastcomp to a newer release.
Comment by Sven-Hendrik Haase (Svenstaro) -
Wednesday, 24 May 2017, 03:17 GMT
Frankly I don't know what to do. The merged went into incoming and should be contained in our release.
Comment by Link Mauve (linkmauve) -
Wednesday, 24 May 2017, 10:08 GMT
From what I can see when pressing the “… Show 7 newer tags” here, the current version for the whole Emscripten project is 1.37.12, but the “latest release” is still marked as 1.37.12, they probably forgot to update it: https://github.com/kripken/emscripten/releases
Comment by Sven-Hendrik Haase (Svenstaro) -
Wednesday, 24 May 2017, 10:51 GMT
Oh gee! You're right.
Comment by Sven-Hendrik Haase (Svenstaro) -
Wednesday, 24 May 2017, 12:04 GMT
Check now.
Comment by Link Mauve (linkmauve) -
Friday, 26 May 2017, 10:39 GMT
I could successfully build a wasm file from a Rust hello world, so consider this fixed, thanks!