Bug#1010932: wasm-ld-13: unable to find library -lgcc
Jérémy Lal
kapouer at melix.org
Fri May 13 13:55:07 BST 2022
Package: lld-13
Version: 1:13.0.1-4
Severity: normal
Hi,
I am trying to build llhttp, an indirect dependency of nodejs 16.5.0.
Using the recommended method is:
/usr/bin/clang -v --sysroot=/usr -target wasm32-unknown-wasi -Ofast -fno-exceptions -fvisibility=hidden -mexec-model=reactor -Wl,-error-limit=0 -Wl,-O3 -Wl,--lto-O3 -Wl,--strip-all -Wl,--allow-undefined -Wl,--export-dynamic -Wl,--export-table -Wl,--export=malloc -Wl,--export=free /home/dev/Software/debian/node-undici/js-team/deps/llhttp/src/*.c -I/home/dev/Software/debian/node-undici/js-team/deps/llhttp/include -o /home/dev/Software/debian/node-undici/js-team/lib/llhttp/llhttp.wasm
(I installed wasi-libc, lld, llvm, clang)
however, the result is:
"/usr/bin/wasm-ld-13" -m wasm32 -L/usr/lib/wasm32-wasi /usr/lib/wasm32-wasi/crt1-reactor.o --entry _initialize -error-limit=0 -O3 --lto-O3 --strip-all --allow-undefined --export-dynamic --export-table --export=malloc --export=free /tmp/api-1a4e87.o /tmp/http-f5ff3b.o /tmp/llhttp-f86505.o -lc -lgcc -o /home/dev/Software/debian/node-undici/js-team/lib/llhttp/llhttp.wasm
wasm-ld-13: error: unable to find library -lgcc
I apt-installed more packages, like libunwind-dev and libc++, libclang-cpp, etc...
but it still fails.
So maybe it's a problem with llvm, after all ?
Jérémy
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (101, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.17.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages lld-13 depends on:
ii libc6 2.33-7
ii libgcc-s1 12.1.0-1
ii libllvm13 1:13.0.1-4
ii libstdc++6 12.1.0-1
lld-13 recommends no packages.
lld-13 suggests no packages.
-- no debconf information
More information about the Pkg-llvm-team
mailing list