Oclgrind icon indicating copy to clipboard operation
Oclgrind copied to clipboard

cmake fails on "Clang libraries not found (set CLANG_ROOT)"

Open Abh15h3k opened this issue 4 years ago • 5 comments

I have tried exporting CLANG_ROOT=/lib/clang/10.0.0 ( which contains the 'bin' 'include' and 'lib' forlders ). but cmake is always failing at "Clang libraries not found (set CLANG_ROOT)" Attaching my CMakeOutput.log

I'm using Arch Linux

CMakeOutput.log

Abh15h3k avatar May 25 '20 08:05 Abh15h3k

while breaking my head on this. i remembered another package that wouldn't build after version 10 of all these tools (gcc llvm) came out.

so i downgraded to gcc9 llvm9 clang9. and it builds and installs. properly. ( from archive.archlinux.org)

Abh15h3k avatar May 25 '20 10:05 Abh15h3k

but now make test. everything fails

Abh15h3k avatar May 25 '20 10:05 Abh15h3k

This should be fixed by the buildsystem changes in #185 (at least it is for me on Arch as well).

For the CLANG_ROOT error in particular, Arch just seems to have a single libclang-cpp, not all the individual libs that Oclgrind was looking for, so cmake wasn't finding it.

alexfikl avatar May 30 '20 00:05 alexfikl

Same issue here with make test building with gcc7 llvm7 and clang7, I get 97/98 failures. Any updates?

mdigiorgio avatar Jul 29 '20 12:07 mdigiorgio

Having this issue with Ubuntu 18.04, LLVM 11, Clang-13. Installing libclang-13-dev solved the problem

ululi1970 avatar Aug 31 '21 13:08 ululi1970