[MacPorts] #59821: ccls: dyld: Library not loaded: @rpath/libLLVM.dylib

MacPorts noreply at macports.org
Sat Dec 7 19:21:52 UTC 2019


#59821: ccls: dyld: Library not loaded: @rpath/libLLVM.dylib
----------------------+--------------------
  Reporter:  casouri  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  High     |  Milestone:
 Component:  ports    |    Version:  2.6.2
Resolution:           |   Keywords:
      Port:  ccls     |
----------------------+--------------------

Comment (by kencu):

 I see, this is not in the clang-X build itself, but uses clang.

 It will probably need a similar fix to what we did in `clang-8.0` for
 example, I would think:
 {{{
 # clang shared libraries are not all installed in
 ${cmake.install_prefix}/lib
 # so we have to let the llvm/clang cmake scripts handle the @rpath setting
 # See:
 #     https://llvm.org/bugs/show_bug.cgi?id=31425
 #     https://trac.macports.org/ticket/53299
 configure.args-delete \
     -DCMAKE_INSTALL_NAME_DIR=${cmake.install_prefix}/lib \
     -DCMAKE_INSTALL_RPATH=${cmake.install_prefix}/lib \
     -DCMAKE_SYSTEM_PREFIX_PATH="${prefix}\;/usr"
 configure.args-append \
     -DCMAKE_SYSTEM_PREFIX_PATH="${cmake.install_prefix}\;${prefix}\;/usr"
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/59821#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list