<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJytWFtzokoQ_jX6MgWFeEny4ANyMZwgWIAb94kaYFQSBAuGRP_96eG2SsxWsiZlwcD0fN3z9YXp-Gl4msrp_hDFUbJF7xHdod5ECPb4lSBujswoecGIUwzj18JTTWlmqN7Stv5TZdfpDZWeeBfEONn2hjMYduTslenqC7WRK5WQjMsoSMeRH9S347EdYD-qxkXyHiVhBSkvpCfVm610Q_Hc30sV4GwSE5yTRp8r2XPVdTzXqsQqhev7yTmAbjquZBhgvarp61JEK_IMrnEa4Jjd47c94vl6BCwgnISMjYSRwJ4PWRoWAckR3RG0SeM4fWesyQvGFsmyNOsNpZ6g9IT6aqTpa47iCKbZklIERTlKk_I5J0EKKipqMI3g9QHneU-U0fuOJMgvojhkGphwViQ02oPyIm9evRQ55ZgQRaUb-HPd1oFkgAmi-SmnZA-mISkLdsiIkuLIdMCWyjE6Ho9ozA8m_JjDIDHgtoMRN0A9cThAzmKJgDN1sXSRuyvYOmGINOIjURBFNLgDXHECl5EAC2YC_KHj_cSbjNDcXAGZlbqJcGGcWjLRE-83abbHlJIQ-MyQT2CYoYzgEGIhjuiJ6dsUcYzidIswLbftp5Sm-5740GEblNS_6nE848GdY6V65Di0JBnTxzhxSU6Roc9W5rNuKp6zWi4tG2JIMy3Pdl3d0wxp_s8LEYecIoBIyVsIDUP0h4imiMUbBecfdlFyLN0XInIkQUGxHxNGyj7KmY-Zx5zlo26uPXWtyiuXpRVsG1WgVdhVTAIzQPUu3RO4gTvhmmdBHcocxO0LCSh7ZHknaj5Jgt0eZ68Qa1qJY0Q5zXl6hOSUxmNmBA5DLyQHkoQgHJH8nG8EoUBQO3tCFGdbwmwQW2gYo3RzNsN0cxfTYQrhnKS0ASVHsOIiTlr65iRpwjlME3LOwDPOkoqtBmeBkwLH8YnLDySINhHw_oaziNGbo3eSEaYU8gje-6cypBqGLgMKwV9ZYerqY1mG89G6yoraQPArJ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hPk7f_IvrRBrDp_CZCv9zgtNzd_zwgsTc>53686</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
CMake fails with `The dependency target "benchmark" of target "libc-benchmark" does not exist.`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lovelymono
</td>
</tr>
</table>
<pre>
Compiling with `cmake -G Ninja -DLLVM_ENABLE_PROJECTS='clang;' -DLLVM_ENABLE_RUNTIMES='compiler-rt;libc;libcxx;libcxxabi;libunwind' -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD='X86' -DCMAKE_INSTALL_PREFIX=/usr/local/llvm ../llvm` and `ninja` produces the following CMake error:
Looks like the error is on the second compilation pass, when building the runtimes using the just-built clang.
Operating system: Arch Linux, `Linux xxx 5.16.5-arch1-g14-1 #1 SMP PREEMPT Thu, 03 Feb 2022 17:26:40 +0000 x86_64 GNU/Linux`.
Error (formatted for better readability, full log at the bottom):
```
[...]
-- Performing Test LIBUNWIND_SUPPORTS_FNO_RTTI_FLAG
-- Performing Test LIBUNWIND_SUPPORTS_FNO_RTTI_FLAG - Success
-- Failed to locate sphinx-build executable (missing: SPHINX_EXECUTABLE)
CMake Error at /home/xxx/src/llvm-project/libc/benchmarks/CMakeLists.txt:55 (add_dependencies):
The dependency target "benchmark" of target "libc-benchmark" does not
exist.
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
LLVM_BUILD_TOOLS
CMake Generate step failed. Build files cannot be regenerated correctly.
FAILED: runtimes/runtimes-stamps/runtimes-configure /home/xxx/src/llvm-project/build/runtimes/runtimes-stamps/runtimes-configure
cd /home/xxx/src/llvm-project/build/runtimes/runtimes-bins
&& /usr/bin/cmake -DCMAKE_C_COMPILER=/home/xxx/src/llvm-project/build/./bin/clang
-DCMAKE_CXX_COMPILER=/home/xxx/src/llvm-project/build/./bin/clang++
-DCMAKE_ASM_COMPILER=/home/xxx/src/llvm-project/build/./bin/clang
-DCMAKE_AR=/home/xxx/src/llvm-project/build/./bin/llvm-ar
-DCMAKE_RANLIB=/home/xxx/src/llvm-project/build/./bin/llvm-ranlib
-DCMAKE_NM=/home/xxx/src/llvm-project/build/./bin/llvm-nm
-DCMAKE_OBJDUMP=/home/xxx/src/llvm-project/build/./bin/llvm-objdump
-DCMAKE_OBJCOPY=/home/xxx/src/llvm-project/build/./bin/llvm-objcopy
-DCMAKE_STRIP=/home/xxx/src/llvm-project/build/./bin/llvm-strip
-DCMAKE_READELF=/home/xxx/src/llvm-project/build/./bin/llvm-readelf
-DCMAKE_C_COMPILER_TARGET=x86_64-unknown-linux-gnu
-DCMAKE_CXX_COMPILER_TARGET=x86_64-unknown-linux-gnu
-DCMAKE_ASM_COMPILER_TARGET=x86_64-unknown-linux-gnu
-DCMAKE_INSTALL_PREFIX=/usr/local/llvm
-DLLVM_BINARY_DIR=/home/xxx/src/llvm-project/build
-DLLVM_CONFIG_PATH=/home/xxx/src/llvm-project/build/bin/llvm-config
-DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=x86_64-unknown-linux-gnu
-DLLVM_HAVE_LINK_VERSION_SCRIPT=1 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF
-DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF
-DLLVM_LIT_ARGS=-sv
-DLLVM_SOURCE_PREFIX=
-DPACKAGE_VERSION=15.0.0git
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja
-DCMAKE_C_COMPILER_LAUNCHER=
-DCMAKE_CXX_COMPILER_LAUNCHER=
-DCMAKE_EXPORT_COMPILE_COMMANDS=1
-DCOMPILER_RT_BUILD_BUILTINS=Off
-DLLVM_INCLUDE_TESTS=ON
-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu
-DLLVM_ENABLE_PROJECTS_USED=ON
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON
-DLLVM_BUILD_TOOLS=ON
-DCMAKE_C_COMPILER_WORKS=ON
-DCMAKE_CXX_COMPILER_WORKS=ON
-DCMAKE_ASM_COMPILER_WORKS=ON
-DHAVE_LLVM_LIT=ON
"-DLLVM_ENABLE_RUNTIMES=compiler-rt;libc;libcxx;libcxxabi;libunwind"
-GNinja /home/xxx/src/llvm-project/llvm/runtimes/../../runtimes
&& /usr/bin/cmake -E touch /home/xxx/src/llvm-project/build/runtimes/runtimes-stamps//runtimes-configure
```
Full compilation log: <https://0x0.st/oXOn.log>.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytWFtzokoQ_jX6MgWFGN3kwQfkYjhBsAA37hM1wKgkOFgwbPTfnx4urhKzlaxJWcPA9HzdfH1hOmEWHydqttsnaUI36C1hW9QbS9EOvxIkzJCd0BeMBM2yfs4D3Vamlh4sXOc_XfW93lDryT-iFNNNbziFaUfOXdq-OddbuUoJyYWcgXSahFFzORxOExwm9bykbwmNa0h1rjzpwXRpWlrg_1roAOeSlOCCtPp8xZ3pvhf4Ti1WK1zdj88BTNvzFcsC63XDXFUiRlnkMKZZhFN-TX_vkCg2M2ABYRpzNigngd_v8ywuI1IgtiVonaVp9sZZU-ecLZLnWd4bKj1J60nNaGXZa4HSBJb5lkoEJQXKaHVfkCgDFTU1mCXweI-Loier6G1LKArLJI25Bi6cl5QlO1BeFu2jl7JgAhdiqHKDeK7b2ZMcMEG0OBaM7MA0pOTRFlkJLQ9cB7xSNUeHwwGNxMFYHAkYJAbCZnAnDFBPHg6QN18g4EyfL3zkb0u-Txoig4RIlmQZDX4ArjyG4U6CDVMJ_tDhfhyM79DMXgKZtbqxdGGcXjHRk-_XWb7DjJEY-MxRSGCao5zgGGIhTdiR61uXaYrSbIMwq147zBjLdj35ocM2KGl-9e1oKoI7R1p9KwhoQXKuj3Pik4Ihy5wu7WfT1gJvuVg4LsSQYTuB6_tmYFjK7J83IgF5ZQSRUpwgDAzRH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