LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 40252 - llvm-config: error: libLLVM-7.dylib is missing
Summary: llvm-config: error: libLLVM-7.dylib is missing
Status: NEW
Alias: None
Product: tools
Classification: Unclassified
Component: llvm-config (show other bugs)
Version: trunk
Hardware: PC MacOS X
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-08 07:02 PST by Peter Waller
Modified: 2019-01-08 07:02 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Waller 2019-01-08 07:02:07 PST
LLVM was built like so:

Revision r348444

git clone --depth=1 https://github.com/llvm-mirror/llvm
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:

https://github.com/llvm-mirror/llvm/blob/7885d2ca5ae8da146dcb51232ea8754aa07b5708/tools/llvm-config/llvm-config.cpp#L395-L396