google / google/ml-compiler-opt

Unable to run inlining-demo

Open
#379 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
798
Forks
123
Avg merge
55m
Merged PRs (30d)
4

Description

I have been trying to run the inlining-demo, but keep running into the same error while [building LLVM](https://github.com/google/ml-compiler-opt/blob/main/docs/inlining-demo/demo.md#build-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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.