<div dir="ltr">Shouldn't a project be independent of other projects? </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 8:19 AM Siva Chandra <<a href="mailto:sivachandra@google.com">sivachandra@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It seems to me that openmp requires clang to be built along with it.<br>
For example, remove libc from the list and you will be able to<br>
reproduce the same errors you are seeing. Add clang and they will go<br>
away.<br>
<br>
On Mon, Dec 2, 2019 at 3:11 PM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com" target="_blank">itaru.kitayama@gmail.com</a>> wrote:<br>
><br>
> cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/opt/llvm-libc/${now} -DCMAKE_C_COMPILER=armclang -DCMAKE_CXX_COMPILER=armclang++ -DLLVM_ENABLE_PROJECTS="libc;openmp" -DLLVM_TARGETS_TO_BUILD="AArch64;NVPTX" ~/projects/llvm-project/llvm<br>
><br>
> On Tue, Dec 3, 2019 at 7:58 AM Siva Chandra <<a href="mailto:sivachandra@google.com" target="_blank">sivachandra@google.com</a>> wrote:<br>
>><br>
>> I normally build clang and LLD along with libc and have not seen any<br>
>> problems. I added openmp to that list now and could build without any<br>
>> problems. My CMake line was:<br>
>><br>
>> $> cmake ../llvm -G Ninja<br>
>> -DLLVM_ENABLE_PROJECTS="libc;clang;lld;openmp"<br>
>> -DLLVM_USE_SANITIZER=Address<br>
>><br>
>> Can you share the cmake command line that is causing problems for you?<br>
>><br>
>> On Mon, Dec 2, 2019 at 2:41 PM Itaru Kitayama via libc-dev<br>
>> <<a href="mailto:libc-dev@lists.llvm.org" target="_blank">libc-dev@lists.llvm.org</a>> wrote:<br>
>> ><br>
>> > If I add, for example, openmp to the list of projects, CMake errors out:<br>
>> ><br>
>> > [...]<br>
>> > -- Performing Test HAVE_POSIX_REGEX<br>
>> > -- Performing Test HAVE_POSIX_REGEX -- success<br>
>> > -- Performing Test HAVE_STEADY_CLOCK<br>
>> > -- Performing Test HAVE_STEADY_CLOCK<br>
>> > -- Performing Test HAVE_STEADY_CLOCK -- success<br>
>> > -- Configuring done<br>
>> > CMake Error at cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang" of target "check-all" does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   CMakeLists.txt:987 (add_lit_target)<br>
>> ><br>
>> ><br>
>> > CMake Error at cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang-resource-headers" of target "check-all" does<br>
>> >   not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   CMakeLists.txt:987 (add_lit_target)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang" of target "check-openmp" does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:190 (add_openmp_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/CMakeLists.txt:95 (construct_check_openmp_target)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang-resource-headers" of target "check-openmp"<br>
>> >   does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:190 (add_openmp_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/CMakeLists.txt:95 (construct_check_openmp_target)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang" of target "check-ompt" does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/runtime/test/CMakeLists.txt:36 (add_openmp_testsuite)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang-resource-headers" of target "check-ompt" does<br>
>> >   not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/runtime/test/CMakeLists.txt:36 (add_openmp_testsuite)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang" of target "check-libomp" does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/runtime/test/CMakeLists.txt:33 (add_openmp_testsuite)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang-resource-headers" of target "check-libomp"<br>
>> >   does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/runtime/test/CMakeLists.txt:33 (add_openmp_testsuite)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang" of target "check-libomptarget" does not<br>
>> >   exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/libomptarget/test/CMakeLists.txt:15 (add_openmp_testsuite)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang-resource-headers" of target<br>
>> >   "check-libomptarget" does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/libomptarget/test/CMakeLists.txt:15 (add_openmp_testsuite)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang" of target "check-libarcher" does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/tools/archer/tests/CMakeLists.txt:29 (add_openmp_testsuite)<br>
>> ><br>
>> ><br>
>> > CMake Error at /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456 (add_dependencies):<br>
>> >   The dependency target "clang-resource-headers" of target "check-libarcher"<br>
>> >   does not exist.<br>
>> > Call Stack (most recent call first):<br>
>> >   /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175 (add_lit_testsuite)<br>
>> >   /fefs/home/r1050/projects/llvm-project/openmp/tools/archer/tests/CMakeLists.txt:29 (add_openmp_testsuite)<br>
>> > _______________________________________________<br>
>> > libc-dev mailing list<br>
>> > <a href="mailto:libc-dev@lists.llvm.org" target="_blank">libc-dev@lists.llvm.org</a><br>
>> > <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/libc-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/libc-dev</a><br>
</blockquote></div>