[llvm-bugs] [Bug 40252] New: llvm-config: error: libLLVM-7.dylib is missing

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 8 07:02:07 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40252

            Bug ID: 40252
           Summary: llvm-config: error: libLLVM-7.dylib is missing
           Product: tools
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-config
          Assignee: unassignedbugs at nondot.org
          Reporter: p at pwaller.net
                CC: llvm-bugs at lists.llvm.org

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190108/de45dfa4/attachment-0001.html>


More information about the llvm-bugs mailing list