<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 - llvm-config: error: libLLVM-7.dylib is missing"
href="https://bugs.llvm.org/show_bug.cgi?id=40252">40252</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-config: error: libLLVM-7.dylib is missing
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>llvm-config
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>p@pwaller.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>LLVM was built like so:
Revision r348444
git clone --depth=1 <a href="https://github.com/llvm-mirror/llvm">https://github.com/llvm-mirror/llvm</a>
cd llvm
mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=$PWD/install \
-DLLVM_INCLUDE_EXAMPLES=OFF \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_TARGETS_TO_BUILD='' \
-DCMAKE_CXX_FLAGS='-march=native' \
-DCMAKE_C_FLAGS='-march=native' \
-DLLVM_ENABLE_PROJECTS='clang' \
..
make install
This installs LLVM to $DIR/llvm/build/install.
If I then run `$DIR/llvm/build/install/llvm-config --link-shared` I get:
`llvm-config: error: libLLVM-7.dylib is missing`.
I expected it to report `$DIR/llvm/build/install/lib/libLLVM.dylib`, which does
exist.
Judging by llvm-config, this can't work, since the code hard-codes a `-`
separator:
<a href="https://github.com/llvm-mirror/llvm/blob/7885d2ca5ae8da146dcb51232ea8754aa07b5708/tools/llvm-config/llvm-config.cpp#L395-L396">https://github.com/llvm-mirror/llvm/blob/7885d2ca5ae8da146dcb51232ea8754aa07b5708/tools/llvm-config/llvm-config.cpp#L395-L396</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>