Skip to content

Unable to run inlining-demo #379

@srivathsang

Description

@srivathsang

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions