[MacPorts] #51754: clang-3.9: dyld: Library not loaded: @rpath/libLLVM.dylib (was: Clang 3.9 can't link a C++ program)

MacPorts noreply at macports.org
Mon Jul 4 09:26:38 PDT 2016


#51754: clang-3.9: dyld: Library not loaded: @rpath/libLLVM.dylib
-------------------------+------------------------
  Reporter:  noloader@…  |      Owner:  jeremyhu@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.4
Resolution:              |   Keywords:
      Port:  clang-3.9   |
-------------------------+------------------------
Changes (by ryandesign@…):

 * keywords:  "clang-3.9" "link" =>
 * owner:  macports-tickets@… => jeremyhu@…
 * port:   => clang-3.9


Old description:

> {{{
> $ cat test.cxx
> #include <iostream>
> #include <algorithm>
>
> int main(int argc, char* argv[])
> {
>   std::for_each(argv, argv+argc, [](char* str)
>       {std::cout << str << std::endl;});
>
>   return 0;
> }
> }}}
>
> And
>
> {{{
> $ /opt/local/bin/clang-mp-3.9 -std=c++11 test.cxx -o test.exe
> dyld: Library not loaded: @rpath/libLLVM.dylib
>   Referenced from: /opt/local/libexec/llvm-3.9/lib/libLTO.dylib
>   Reason: image not found
> clang: error: unable to execute command: Trace/BPT trap: 5
> clang: error: linker command failed due to signal (use -v to see
> invocation)
> }}}
>
> This appears to be related: https://trac.macports.org/ticket/50853

New description:

 {{{
 $ cat test.cxx
 #include <iostream>
 #include <algorithm>

 int main(int argc, char* argv[])
 {
   std::for_each(argv, argv+argc, [](char* str)
       {std::cout << str << std::endl;});

   return 0;
 }
 }}}

 And

 {{{
 $ /opt/local/bin/clang-mp-3.9 -std=c++11 test.cxx -o test.exe
 dyld: Library not loaded: @rpath/libLLVM.dylib
   Referenced from: /opt/local/libexec/llvm-3.9/lib/libLTO.dylib
   Reason: image not found
 clang: error: unable to execute command: Trace/BPT trap: 5
 clang: error: linker command failed due to signal (use -v to see
 invocation)
 }}}

 This appears to be related: #50853

--

Comment:

 Jeffrey, are you also running Snow Leopard? If so, I would call this a
 duplicate of #51542.

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


More information about the macports-tickets mailing list