Created attachment 115443 [details] Terminal output showing failure Bisected to 716372ae2e8dff9c51e94d33443536786e4bd85b Clang discovery works with beae0686a228f7ce15f9eac9ede4ba03d10eb328 Log attached with terminal error output.
Can you please post the output of (just to be 100% sure): 1. llvm-config --libdir 2. llvm-config --includedir 3. find /usr -name cpuid.h For the last command & with the output of your log: I would expect to see a: "/usr/lib64/clang/8.0.0svn/include/cpuid.h" but I have a bad feeling that it will only find "/usr/lib64/clang/8.0.0/include/cpuid.h" which would explain this behavior...
Created attachment 115455 [details] LLVM config output > "/usr/lib64/clang/8.0.0/include/cpuid.h" Is how it's indeed installed as, but it's still not found...? :/
Ah, I see what you mean, now. I misread, sorry.
I posted a patch https://phabricator.kde.org/D15998 Can you please test if this will fix your problem? And on the bright side, this was previously only a run time error and now we caught the error on configure/cmake-time, sooner! :)
Thanks! It works now, happily. :)
It's only fixed when the patch is pushed. Reopening for now :)
Git commit 6da2caac877d75d53d4e4af0e060f93defe701d6 by Bernd Buschinski. Committed on 07/10/2018 at 13:46. Pushed by buschinski into branch '5.3'. Fix discovery of clang builtin directory with clang svn versions Summary: The CLANG_VERSION for svn clang versions have a svn suffix "8.0.0svn" and all the libraries have a svn suffix. But not the in builtin include dir. It still points to "/usr/lib/clang/8.0.0/include/cpuid.h" without the suffix. Extend the PATH_SUFFIXES to also looks a version without svn suffix. Test Plan: - install clang-svn - execute cmake .. (for kdevelop) -> it will fail Reviewers: #kdevelop, kfunk Reviewed By: #kdevelop, kfunk Subscribers: kdevelop-devel Tags: #kdevelop Differential Revision: https://phabricator.kde.org/D15998 M +5 -0 cmake/modules/FindClang.cmake https://commits.kde.org/kdevelop/6da2caac877d75d53d4e4af0e060f93defe701d6