-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
I have been trying to run the inlining-demo, but keep running into the same error while building LLVM for Fuchsia. The error happens specifically when I try to generate runtimes with the given python script:
$ python3 scripts/clang/generate_runtimes.py --clang-prefix=$LLVM_INSTALLDIR --sdk-dir=$IDK_DIR --build-id-dir=$LLVM_INSTALLDIR/lib/.build-id > $LLVM_INSTALLDIR/lib/runtime.json
ld.lld: error: unable to find library -lc++
ld.lld: error: unable to find library -lunwind
clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
ld.lld: error: unable to find library -lc++
ld.lld: error: unable to find library -lunwind
clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
ld.lld: error: unable to find library -lc++
ld.lld: error: cannot open /home/sgovind7/llvm-install/lib/clang/20/lib/x86_64-unknown-fuchsia/libclang_rt.asan.so: No such file or directory
ld.lld: error: cannot open /home/sgovind7/llvm-install/lib/clang/20/lib/x86_64-unknown-fuchsia/libclang_rt.asan-preinit.a: No such file or directory
ld.lld: error: cannot open /home/sgovind7/llvm-install/lib/clang/20/lib/x86_64-unknown-fuchsia/libclang_rt.asan_static.a: No such file or directory
ld.lld: error: unable to find library -lunwind
clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
ld.lld: error: unable to find library -lc++
ld.lld: error: cannot open /home/sgovind7/llvm-install/lib/clang/20/lib/x86_64-unknown-fuchsia/libclang_rt.asan.so: No such file or directory
ld.lld: error: cannot open /home/sgovind7/llvm-install/lib/clang/20/lib/x86_64-unknown-fuchsia/libclang_rt.asan-preinit.a: No such file or directory
ld.lld: error: cannot open /home/sgovind7/llvm-install/lib/clang/20/lib/x86_64-unknown-fuchsia/libclang_rt.asan_static.a: No such file or directory
ld.lld: error: unable to find library -lunwind
clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
ld.lld: error: unable to find library -lc++
ld.lld: error: cannot open /home/sgovind7/llvm-install/lib/clang/20/lib/x86_64-unknown-fuchsia/libclang_rt.ubsan_standalone.so: No such file or directory
ld.lld: error: unable to find library -lunwind
clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
ld.lld: error: unable to find library -lc++
ld.lld: error: cannot open /home/sgovind7/llvm-install/lib/clang/20/lib/x86_64-unknown-fuchsia/libclang_rt.ubsan_standalone.so: No such file or directory
ld.lld: error: unable to find library -lunwind
clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
Fuchsia hash: 42f5675c4
LLVM hash: 8280651ad
P.S: I have disabled generating runtimes for other targets (ARM and RISC), but having them also produces the same error
Metadata
Metadata
Assignees
Labels
No labels