CMake configuration errors

I have not quite caught up with the v3.9 branch point at SVN #275826, but I am at #275166.

But I am seeing loads of CMake configuration errors along the lines of:

CMake Error at cmake/modules/AddLLVM.cmake:1097 (add_dependencies):

The dependency target “c-arcmt-test” of target “check-clang-preprocessor”

does not exist.

Call Stack (most recent call first):

cmake/modules/AddLLVM.cmake:1148 (add_lit_target)

tools/clang/test/CMakeLists.txt:96 (add_lit_testsuites)

This was not happening with #272991 which was the previous version I had synchronised to. This is a “cross compiler” configuration in case that helps.

Any ideas why this would happen?

Thanks,

MartinO

"Martin J. O'Riordan via llvm-dev" <llvm-dev@lists.llvm.org> writes:

I have not quite caught up with the v3.9 branch point at SVN #275826, but I
am at #275166.
But I am seeing loads of CMake configuration errors along the lines of:

CMake Error at cmake/modules/AddLLVM.cmake:1097 (add_dependencies):
  The dependency target "c-arcmt-test" of target "check-clang-preprocessor"
  does not exist.

Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1148 (add_lit_target)
  tools/clang/test/CMakeLists.txt:96 (add_lit_testsuites)

This was not happening with #272991 which was the previous version I had
synchronised to. This is a "cross compiler" configuration in case that
helps.

Any ideas why this would happen?

How are you invoking cmake? It sounds like the build is getting
different views of the cmake setting "CLANG_ENABLE_ARCMT" in different
parts of the build, which would be very strange.