<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - compile-rt enabled runtime causes 'Target "llvm-ranlib" is not an executable or library'"
href="https://bugs.llvm.org/show_bug.cgi?id=45870">45870</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>compile-rt enabled runtime causes 'Target "llvm-ranlib" is not an executable or library'
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>10.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>arcadiy@ivanov.biz
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>This reproduces **ALL** the time.
Fedora 31 x86_64
```
$ cmake --version
cmake version 3.17.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
```
1. `git clone <a href="https://github.com/llvm/llvm-project/">https://github.com/llvm/llvm-project/</a>`
2. `git checkout llvmorg-10.0.0` or `git checkout release/10.x`.
3. Use the following build file:
```
#/bin/bash -eEu
LLVM_SRC="$(readlink -nf llvm-project/llvm)"
LLVM_BIN="$(readlink -nf llvm.bin.scratch)"
LLVM_BUILD="$(readlink -nf llvm-project/build)"
rm -rf "$LLVM_BUILD" || true
rm -rf "$LLVM_BIN" || true
mkdir -p "$LLVM_BUILD"
pushd "$LLVM_BUILD"
cmake -G Ninja \
-DLLVM_TARGETS_TO_BUILD="X86" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld" \
-DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libunwind" \
"$LLVM_SRC"
popd
```
Result (truncated):
```
-- Configuring done
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-ranlib>
Target "llvm-ranlib" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:237 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:297 (builtin_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-strip>
Target "llvm-strip" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:237 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:297 (builtin_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-ranlib>
Target "llvm-ranlib" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:377 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:502 (runtime_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-strip>
Target "llvm-strip" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:377 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:502 (runtime_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-ranlib>
Target "llvm-ranlib" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:237 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:297 (builtin_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-strip>
Target "llvm-strip" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:237 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:297 (builtin_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-ranlib>
Target "llvm-ranlib" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:377 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:502 (runtime_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-strip>
Target "llvm-strip" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:377 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:502 (runtime_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-ranlib>
Target "llvm-ranlib" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:237 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:297 (builtin_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-strip>
Target "llvm-strip" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:237 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:297 (builtin_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-ranlib>
Target "llvm-ranlib" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:377 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:502 (runtime_default_target)
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2224
(add_custom_command):
Error evaluating generator expression:
$<TARGET_FILE:llvm-strip>
Target "llvm-strip" is not an executable or library.
Call Stack (most recent call first):
cmake/modules/LLVMExternalProjectUtils.cmake:259 (ExternalProject_Add_Step)
runtimes/CMakeLists.txt:377 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:502 (runtime_default_target)
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
```
Same result trying to build DistributionExample.cmake per
<a href="https://releases.llvm.org/10.0.0/docs/BuildingADistribution.html">https://releases.llvm.org/10.0.0/docs/BuildingADistribution.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>