[libc-dev] libc project can't be built together with other projects
Itaru Kitayama via libc-dev
libc-dev at lists.llvm.org
Mon Dec 2 15:11:16 PST 2019
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
On Tue, Dec 3, 2019 at 7:58 AM Siva Chandra <sivachandra at google.com> wrote:
> I normally build clang and LLD along with libc and have not seen any
> problems. I added openmp to that list now and could build without any
> problems. My CMake line was:
>
> $> cmake ../llvm -G Ninja
> -DLLVM_ENABLE_PROJECTS="libc;clang;lld;openmp"
> -DLLVM_USE_SANITIZER=Address
>
> Can you share the cmake command line that is causing problems for you?
>
> On Mon, Dec 2, 2019 at 2:41 PM Itaru Kitayama via libc-dev
> <libc-dev at lists.llvm.org> wrote:
> >
> > If I add, for example, openmp to the list of projects, CMake errors out:
> >
> > [...]
> > -- Performing Test HAVE_POSIX_REGEX
> > -- Performing Test HAVE_POSIX_REGEX -- success
> > -- Performing Test HAVE_STEADY_CLOCK
> > -- Performing Test HAVE_STEADY_CLOCK
> > -- Performing Test HAVE_STEADY_CLOCK -- success
> > -- Configuring done
> > CMake Error at cmake/modules/AddLLVM.cmake:1456 (add_dependencies):
> > The dependency target "clang" of target "check-all" does not exist.
> > Call Stack (most recent call first):
> > CMakeLists.txt:987 (add_lit_target)
> >
> >
> > CMake Error at cmake/modules/AddLLVM.cmake:1456 (add_dependencies):
> > The dependency target "clang-resource-headers" of target "check-all"
> does
> > not exist.
> > Call Stack (most recent call first):
> > CMakeLists.txt:987 (add_lit_target)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang" of target "check-openmp" does not exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:190
> (add_openmp_testsuite)
> > /fefs/home/r1050/projects/llvm-project/openmp/CMakeLists.txt:95
> (construct_check_openmp_target)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang-resource-headers" of target "check-openmp"
> > does not exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:190
> (add_openmp_testsuite)
> > /fefs/home/r1050/projects/llvm-project/openmp/CMakeLists.txt:95
> (construct_check_openmp_target)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang" of target "check-ompt" does not exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/runtime/test/CMakeLists.txt:36
> (add_openmp_testsuite)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang-resource-headers" of target "check-ompt"
> does
> > not exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/runtime/test/CMakeLists.txt:36
> (add_openmp_testsuite)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang" of target "check-libomp" does not exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/runtime/test/CMakeLists.txt:33
> (add_openmp_testsuite)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang-resource-headers" of target "check-libomp"
> > does not exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/runtime/test/CMakeLists.txt:33
> (add_openmp_testsuite)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang" of target "check-libomptarget" does not
> > exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/libomptarget/test/CMakeLists.txt:15
> (add_openmp_testsuite)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang-resource-headers" of target
> > "check-libomptarget" does not exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/libomptarget/test/CMakeLists.txt:15
> (add_openmp_testsuite)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang" of target "check-libarcher" does not
> exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/tools/archer/tests/CMakeLists.txt:29
> (add_openmp_testsuite)
> >
> >
> > CMake Error at
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
> (add_dependencies):
> > The dependency target "clang-resource-headers" of target
> "check-libarcher"
> > does not exist.
> > Call Stack (most recent call first):
> >
> /fefs/home/r1050/projects/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477
> (add_lit_target)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/cmake/OpenMPTesting.cmake:175
> (add_lit_testsuite)
> >
> /fefs/home/r1050/projects/llvm-project/openmp/tools/archer/tests/CMakeLists.txt:29
> (add_openmp_testsuite)
> > _______________________________________________
> > libc-dev mailing list
> > libc-dev at lists.llvm.org
> > https://lists.llvm.org/cgi-bin/mailman/listinfo/libc-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libc-dev/attachments/20191203/f0806c9f/attachment-0001.html>
More information about the libc-dev
mailing list