[llvm] [runtimes] Add missing test dependencies to check-all (PR #72955)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 03:49:13 PST 2023
zmodem wrote:
A reproducer on Linux:
```
$ curl -LO https://dl.google.com/android/repository/android-ndk-r26b-linux.zip
$ unzip android-ndk-r26b-linux.zip
$ cmake -GNinja -DCMAKE_BUILD_TYPE=Release "-DLLVM_ENABLE_PROJECTS=clang" -DLLVM_ENABLE_RUNTIMES=compiler-rt "-DLLVM_TARGETS_TO_BUILD=X86;AArch64" -DRUNTIMES_aarch64-linux-android21_LLVM_ENABLE_RUNTIMES=compiler-rt -DBUILTINS_aarch64-linux-android21_LLVM_ENABLE_RUNTIMES=compiler-rt -DRUNTIMES_aarch64-linux-android21_CMAKE_BUILD_TYPE=RelWithDebInfo -DBUILTINS_aarch64-linux-android21_CMAKE_BUILD_TYPE=RelWithDebInfo "-DRUNTIMES_aarch64-linux-android21_CMAKE_C_FLAGS=--sysroot=$PWD/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot --unwindlib=none -mbranch-protection=standard" "-DBUILTINS_aarch64-linux-android21_CMAKE_C_FLAGS=--sysroot=$PWD/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot --unwindlib=none -mbranch-protection=standard" "-DRUNTIMES_aarch64-linux-android21_CMAKE_CXX_FLAGS=--sysroot=$PWD/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot --unwindlib=none -mbranch-protection=standard" "-DBUILTINS_aarch64-linux-android21_CMAKE_CXX_FLAGS=--sysroot=$PWD/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot --unwindlib=none -mbranch-protection=standard" "-DRUNTIMES_aarch64-linux-android21_CMAKE_ASM_FLAGS=--sysroot=$PWD/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot --unwindlib=none -mbranch-protection=standard" "-DBUILTINS_aarch64-linux-android21_CMAKE_ASM_FLAGS=--sysroot=$PWD/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot --unwindlib=none -mbranch-protection=standard" -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_USE_BUILTINS_LIBRARY=ON -DBUILTINS_aarch64-linux-android21_COMPILER_RT_USE_BUILTINS_LIBRARY=ON -DRUNTIMES_aarch64-linux-android21_SANITIZER_CXX_ABI=libcxxabi -DBUILTINS_aarch64-linux-android21_SANITIZER_CXX_ABI=libcxxabi -DRUNTIMES_aarch64-linux-android21_CMAKE_SHARED_LINKER_FLAGS=-Wl,-u__cxa_demangle -DBUILTINS_aarch64-linux-android21_CMAKE_SHARED_LINKER_FLAGS=-Wl,-u__cxa_demangle -DRUNTIMES_aarch64-linux-android21_ANDROID=1 -DBUILTINS_aarch64-linux-android21_ANDROID=1 -DRUNTIMES_aarch64-linux-android21_LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF -DBUILTINS_aarch64-linux-android21_LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF -DRUNTIMES_aarch64-linux-android21_LLVM_INCLUDE_TESTS=OFF -DBUILTINS_aarch64-linux-android21_LLVM_INCLUDE_TESTS=OFF -DRUNTIMES_aarch64-linux-android21_ANDROID_NATIVE_API_LEVEL=21 -DBUILTINS_aarch64-linux-android21_ANDROID_NATIVE_API_LEVEL=21 -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_BUILD_CRT=ON -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_BUILD_LIBFUZZER=OFF -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_BUILD_MEMPROF=OFF -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_BUILD_ORC=OFF -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_BUILD_PROFILE=ON -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_BUILD_SANITIZERS=ON -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_BUILD_XRAY=OFF "-DRUNTIMES_aarch64-linux-android21_COMPILER_RT_SANITIZERS_TO_BUILD=asan;dfsan;msan;hwasan;tsan;cfi" -DRUNTIMES_aarch64-linux-android21_COMPILER_RT_DEFAULT_TARGET_ONLY=ON "-DLLVM_BUILTIN_TARGETS=aarch64-linux-android21" "-DLLVM_RUNTIME_TARGETS=aarch64-linux-android21" ../llvm
$ ninja check-all
...
[4693/4697] cd /work/llvm-project/build.xxx/runtimes/runtimes-aarch64-linux-android21-bins && /usr/bin/cmake --build /work/llvm-project/build.xxx/runtimes/runtimes-aarch64-linux-android21-bins/ --target runtimes-test-depends --config Release
ninja: error: unknown target 'runtimes-test-depends'
FAILED: runtimes/CMakeFiles/runtimes-test-depends-aarch64-linux-android21 /work/llvm-project/build.xxx/runtimes/CMakeFiles/runtimes-test-depends-aarch64-linux-android21
```
https://github.com/llvm/llvm-project/pull/72955
More information about the llvm-commits
mailing list