[llvm-dev] build fail -- clang-11 not found
Manas via llvm-dev
llvm-dev at lists.llvm.org
Mon Jan 11 13:23:14 PST 2021
Hi everyone, I recently forked and cloned upstream llvm-project/ (IIRC
the tests were passing on upstream at the time I cloned). I used the
following cmake command for my debug build.
```
cmake -G Ninja -DLLVM_TARGETS_TO_BUILD="X86;AMDGPU" \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DCMAKE_C_COMPILER=/usr/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DCMAKE_BUILD_TYPE=Debug \
-DLLVM_CCACHE_BUILD=ON \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
../llvm/
```
Followed by `ninja -j8`, it threw me errors saying "clang-11 not found",
and "use -v for invocations" as suggestion; despite clang-11 being
present in my system and PATH.
One more thing, it threw errors while building libLTO.
Can someone help me out? I have never encountered this.
Thank you
PS: Sorry I dont have the exact error.
--
Manas
CSAM Undergraduate | 2022
IIIT-Delhi, India
More information about the llvm-dev
mailing list