Opened 8 years ago

Last modified 8 years ago

#51754 closed defect

Clang 3.9 can't link a C++ program — at Initial Version

Reported by: noloader (Jeffrey Walton) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: clang-3.9

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

Change History (0)

Note: See TracTickets for help on using tickets.