wasm-ld reports error with LLVM web assembly backend

620 views
Skip to first unread message

Chuck H

unread,
Apr 8, 2019, 6:08:05 AM4/8/19
to emscripten-discuss
Hi, 

I manage to use LLVM web assembly backend in the emscripten with LLVM 9.0.0. And it gets the following error for the third party bc files:

wasm-ld: error: lib.bc: machine type must be wasm32

So what is the possible issue? any solution to it?  Thanks!

Alon Zakai

unread,
Apr 8, 2019, 4:04:49 PM4/8/19
to emscripte...@googlegroups.com
Bitcode files generated with an earlire version of emscripten need to be rebuilt. They will be rebuilt into wasm object files.

(Or, you can try to build everything with -s WASM_OBJECT_FILES=0 which uses LLVM IR as object files, but that is not guaranteed to be compatible between versions of LLVM, so it's best to rebuild anyhow.)

--
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 emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages