<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84053>84053</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLDB on MacOS: `ninja check-lldb` generates error `LIBCXXABI_USE_LLVM_UNWINDER is set to ON, but libunwind is not specified in LLVM_ENABLE_RUNTIMES` on a freshly cloned repo
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++,
libc++abi
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
royitaqi
</td>
</tr>
</table>
<pre>
My apologies for the trouble if this is a dupe to issue #83899 (I'm not entirely sure, because it mentioned "RISC-V" which I don't understand but seems very specific).
Just cloned the project this morning, built it, and tried to run the tests. All 3 kinds of tests fail with this same error message:
```
CMake Deprecation Warning at /Users/royshi/llvm-project/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.
```
See full message at the end.
The comands I have used to clone/build/test:
```
cd ~
git clone https://github.com/llvm/llvm-project.git
mkdir llvm-build
cd llvm-build
cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lldb" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" ~/llvm-project/llvm
ninja lldb lldb-server
ninja check-lldb-unit
ninja check-lldb-api
ninja check-lldb-shell
```
First time posting an issue in this project. Kindly LMK if there is any other info that is needed from me (like commit of the repo; ninja/cmake/clang++ versions; etc). FWIW I quickly scanned through [contributing guidelines](https://llvm.org/docs/HowToSubmitABug.html).
Full console output for running the unit tests:
```
% ninja check-lldb-unit
[0/7] Performing configure step for 'runtimes'
Not searching for unused variables given on the command line.
CMake Deprecation Warning at /Users/royshi/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
CMake Deprecation Warning at /Users/royshi/llvm-project/cmake/Modules/CMakePolicy.cmake:11 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
-- Building with -fPIC
-- LLVM host triple: arm64-apple-darwin23.3.0
-- LLVM default target triple: arm64-apple-darwin23.3.0
-- Found libtool - /Users/royshi/llvm-build/bin/llvm-libtool-darwin
CMake Error at /Users/royshi/llvm-project/libcxxabi/CMakeLists.txt:51 (message):
LIBCXXABI_USE_LLVM_UNWINDER is set to ON, but libunwind is not specified in
LLVM_ENABLE_RUNTIMES.
-- Configuring incomplete, errors occurred!
[2/7] Running utility command for lldb-python
FAILED: runtimes/runtimes-stamps/runtimes-configure /Users/royshi/llvm-build/runtimes/runtimes-stamps/runtimes-configure
cd /Users/royshi/llvm-build/runtimes/runtimes-bins && /opt/homebrew/Cellar/cmake/3.28.3/bin/cmake --no-warn-unused-cli -DCMAKE_C_COMPILER=/Users/royshi/llvm-build/./bin/clang -DCMAKE_CXX_COMPILER=/Users/royshi/llvm-build/./bin/clang++ -DCMAKE_ASM_COMPILER=/Users/royshi/llvm-build/./bin/clang -DCMAKE_AR=/Users/royshi/llvm-build/./bin/llvm-ar -DCMAKE_LIBTOOL=/Users/royshi/llvm-build/./bin/llvm-libtool-darwin -DCMAKE_LIPO=/Users/royshi/llvm-build/./bin/llvm-lipo -DCMAKE_RANLIB=/Users/royshi/llvm-build/./bin/llvm-ranlib -DCMAKE_NM=/Users/royshi/llvm-build/./bin/llvm-nm -DCMAKE_OBJDUMP=/Users/royshi/llvm-build/./bin/llvm-objdump -DCMAKE_C_COMPILER_TARGET=arm64-apple-darwin23.3.0 -DCMAKE_CXX_COMPILER_TARGET=arm64-apple-darwin23.3.0 -DCMAKE_ASM_COMPILER_TARGET=arm64-apple-darwin23.3.0 -DCMAKE_INSTALL_PREFIX=/usr/local -DLLVM_BINARY_DIR=/Users/royshi/llvm-build -DLLVM_CONFIG_PATH=/Users/royshi/llvm-build/bin/llvm-config -DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=arm64-apple-darwin23.3.0 -DLLVM_HAVE_LINK_VERSION_SCRIPT=0 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF -DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF -DLLVM_LIT_ARGS=-sv -DLLVM_SOURCE_PREFIX= -DPACKAGE_VERSION=19.0.0git -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCOMPILER_RT_BUILD_BUILTINS=Off -DLLVM_INCLUDE_TESTS=ON -DLLVM_DEFAULT_TARGET_TRIPLE=arm64-apple-darwin23.3.0 -DLLVM_ENABLE_PROJECTS_USED=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF -DLLVM_BUILD_TOOLS=ON -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_ASM_COMPILER_WORKS=ON -DHAVE_LLVM_LIT=ON -DCLANG_RESOURCE_DIR= "-DLLVM_ENABLE_RUNTIMES=libcxx;libcxxabi" -GNinja -S /Users/royshi/llvm-project/llvm/runtimes/../../runtimes -B /Users/royshi/llvm-build/runtimes/runtimes-bins && /opt/homebrew/Cellar/cmake/3.28.3/bin/cmake -E touch /Users/royshi/llvm-build/runtimes/runtimes-stamps/runtimes-configure
ninja: build stopped: subcommand failed.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWM1u4zgSfhrmUrBhU7ETH3KwLSmjafk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