[MacPorts] #51754: Clang 3.9 can't link a C++ program

MacPorts noreply at macports.org
Mon Jul 4 04:48:03 PDT 2016


#51754: Clang 3.9 can't link a C++ program
--------------------------------+--------------------------------
 Reporter:  noloader@…          |      Owner:  macports-tickets@…
     Type:  defect              |     Status:  new
 Priority:  Normal              |  Milestone:
Component:  ports               |    Version:  2.3.4
 Keywords:  "clang-3.9" "link"  |       Port:
--------------------------------+--------------------------------
 {{{
 $ 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

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


More information about the macports-tickets mailing list