[llvm-bugs] [Bug 51115] New: Fail to build recent llvm checkout, CMAKE_LINKER-NOTFOUND
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 16 12:33:38 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51115
Bug ID: 51115
Summary: Fail to build recent llvm checkout,
CMAKE_LINKER-NOTFOUND
Product: Build scripts
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: denis.yaroshevskij at gmail.com
CC: llvm-bugs at lists.llvm.org
Cmake
cmake -G Ninja
-DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;clang-tools-extra;libunwind;compiler-rt;openmp"
-DCMAKE_BUILD_TYPE=Release ../llvm
Build fails with
```
[445/445] Linking CXX static library
/home/dyarosh/space/llvm-...jects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a
Merging archives:
['/home/dyarosh/space/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a',
'/home/dyarosh/space/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++abi.a']
[4384/6383] Linking CXX static library
lib/clang/13.0.0/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a
FAILED: lib/clang/13.0.0/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a
: && /snap/cmake/912/bin/cmake -E rm -f
lib/clang/13.0.0/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a &&
/usr/local/bin/llvm-ar Dqc
lib/clang/13.0.0/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer_interceptors.x86_64.dir/FuzzerInterceptors.cpp.o
&& /usr/local/bin/llvm-ranlib -D
lib/clang/13.0.0/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a && cd
/home/dyarosh/space/llvm-project/build/projects/compiler-rt/lib/fuzzer/cxx_x86_64_merge.dir
&& CMAKE_LINKER-NOTFOUND --whole-archive
/home/dyarosh/space/llvm-project/build/lib/clang/13.0.0/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a
--no-whole-archive
/home/dyarosh/space/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a
-r -o fuzzer_interceptors.o && /usr/local/bin/llvm-objcopy --localize-hidden
fuzzer_interceptors.o && /snap/cmake/912/bin/cmake -E remove
/home/dyarosh/space/llvm-project/build/lib/clang/13.0.0/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a
&& /usr/local/bin/llvm-ar qcs
/home/dyarosh/space/llvm-project/build/lib/clang/13.0.0/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a
fuzzer_interceptors.o
/bin/sh: 1: CMAKE_LINKER-NOTFOUND: not found
[4399/6383] Building CXX object
tools/clang/tools/extra/clangd...aks/CMakeFiles/obj.clangDaemonTweaks.dir/ExtractFunction.cpp.o
ninja: build stopped: subcommand failed.
```
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210716/af3e481e/attachment.html>
More information about the llvm-bugs
mailing list