#51542: clang-3.8 and clang-3.9 fail to function due to rpath ------------------------------------+-------------------------------- Reporter: kenneth.f.cunningham@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: clang-3.8 ------------------------------------+-------------------------------- when compiling simple 'hello world' app {{{ #include <stdio.h> int main() { printf("hello world\n"); return 0; } }}} clang-3.8 fails with {{{ user$ clang hello.c -o hello dyld: Library not loaded: @rpath/libLLVM.dylib Referenced from: /opt/local/libexec/llvm-3.8/bin/../lib/libLTO.dylib Reason: image not found clang: error: unable to execute command: Trace/BPT trap clang: error: linker command failed due to signal (use -v to see invocation) }}} same error happens with clang-3.9, I noticed. code compiles correctly and llvm tools work with clang 3.7 and 3.4 selected. It appears the clang 3.8 and 3.9 rpath is not finding the runtime libraries. I'm not certain if this is due to how they were compiled, or something different in my configuration that would affect only the newer versions of clang. (Clang-3.8 was installed precompiled. Clang-3.9 was installed from source). I'm on 10.6.8. -- Ticket URL: <https://trac.macports.org/ticket/51542> MacPorts <https://www.macports.org/> Ports system for OS X