wasm32-unknown-unknown does not link
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| llvm-toolchain-13 (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned | ||
Bug Description
$ cat x.c
int main() {
return 0;
}
$ clang --target=
clang: error: unable to execute command: Executable "wasm-ld" doesn't exist!
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: clang-10 1:10.0.0-4ubuntu1
ProcVersionSign
Uname: Linux 5.4.0-53-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Tue Nov 17 18:52:56 2020
InstallationDate: Installed on 2018-06-23 (877 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: llvm-toolchain-10
UpgradeStatus: Upgraded to focal on 2020-05-13 (188 days ago)

Fixed in https:/ /tracker. debian. org/news/ 1289006/ accepted- llvm-toolchain- 13-11301rc1- 1exp2-source- into-experiment al/
Note that it won't be enough, it needs the runtime: wasm32- unknown- unknown foo.c
clang-13 --target=
wasm-ld: error: cannot open crt1.o: No such file or directory
wasm-ld: error: unable to find library -lc
wasm-ld: error: unable to find library -lgcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)