[clang] Fix lld link issue for OHOS (PR #118192)
Peng Huang via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 16 15:15:21 PST 2024
phuang wrote:
I still cannot repro the problem locally, but base on th log in http://45.33.8.238/linux/155432/step_6.txt . Looks like clang tries to search runtime library at "/usr/local/google/home/thakis/src/llvm-project/out/gn/lib/clang/20/lib/linux/libclang_rt.builtins-x86_64.a" (It is the OldPath in https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChain.cpp#L771). Not sure why the file does exist on the gn bot. Maybe it is not a clean build. I workarounded the problem by adding "-ohos" suffix in the runtime library like android.
@kpdev @nico , could you please take a look the new PR https://github.com/llvm/llvm-project/pull/120159
Thanks.
https://github.com/llvm/llvm-project/pull/118192
More information about the cfe-commits
mailing list