[PATCH] D141824: [clang-repl] Add a command to load dynamic libraries
Han Zhu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 6 00:24:41 PDT 2023
zhuhan0 added subscribers: ayermolo, zhuhan0.
zhuhan0 added a comment.
Hi @argentite, we build llvm in a custom distro which is missing some C startup code, and this fails with errors like:
/abc/bin/ld: cannot find crti.o: No such file or directory
/abc/bin/ld: cannot find crtbeginS.o: No such file or directory
/abc/bin/ld: cannot find -lgcc
/abc/bin/ld: cannot find -lgcc_s
/abc/bin/ld: cannot find -lc
/abc/bin/ld: cannot find -lgcc
/abc/bin/ld: cannot find -lgcc_s
/abc/bin/ld: cannot find crtendS.o: No such file or directory
/abc/bin/ld: cannot find crtn.o: No such file or directory
This seems to be the first clang test that involves actual linking. If the intention is to test loading a dynamic library, could you commit the library in the Inputs directory instead of building it from source?
cc @ayermolo
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141824/new/
https://reviews.llvm.org/D141824
More information about the cfe-commits
mailing list