Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 752123

Summary: Building llvm with WebAssembly target does not produce wasm-ld
Product: Gentoo Linux Reporter: mg05182-gentoo
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of emerge --info

Description mg05182-gentoo 2020-11-01 15:31:46 UTC
Created attachment 669596 [details]
Output of emerge --info

I added WebAssembly to LLVM_TARGETS and rebuilt with --changed-use.

When I try to compile a test program with "clang --target=wasm32 ..." I get the following error:

clang-11: error: unable to execute command: Executable "wasm-ld" doesn't exist!

I searched for "wasm-ld" and could not find it anywhere.
Comment 1 mg05182-gentoo 2020-11-01 16:16:38 UTC
I had to compile sys-devel/clang with default-lld
Comment 2 Georgy Yakovlev archtester gentoo-dev 2020-11-01 20:53:27 UTC
just installing sys-devel/lld should be enough, it's packaged separately. it will provide wasm-ld. regardless of flags on clang.