Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run inlining-demo #379

Open
srivathsang opened this issue Oct 4, 2024 · 1 comment
Open

Unable to run inlining-demo #379

srivathsang opened this issue Oct 4, 2024 · 1 comment

Comments

@srivathsang
Copy link

srivathsang commented Oct 4, 2024

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

@mtrofin
Copy link
Collaborator

mtrofin commented Oct 5, 2024

See issue #373 - the build fixes on Fuchsia haven't landed yet, will update there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants