#51542: clang-3.8 and clang-3.9 fail to function due to rpath -------------------------------------+------------------------ Reporter: kenneth.f.cunningham@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: clang-3.8 | -------------------------------------+------------------------ Comment (by kenneth.f.cunningham@…): Well - installed fresh macports on a different machine running snowleopard and then installed only clang-3.8 -- downloaded it precompiled - but seems to be showing the same problem. {{{ $ which clang /opt/local/bin/clang $ clang --version clang version 3.8.0 (branches/release_38 262722) Target: x86_64-apple-darwin10.8.0 Thread model: posix InstalledDir: /opt/local/libexec/llvm-3.8/bin $ 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) $ otool -L /opt/local/libexec/llvm-3.8/bin/../lib/libLTO.dylib /opt/local/libexec/llvm-3.8/bin/../lib/libLTO.dylib: @rpath/libLTO.dylib (compatibility version 1.0.0, current version 3.8.0) @rpath/libLLVM.dylib (compatibility version 1.0.0, current version 3.8.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 3.7.1) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current version 3.7.0) $ otool -l /opt/local/libexec/llvm-3.8/bin/../lib/libLTO.dylib | grep -A2 LC_RPATH cmd LC_RPATH cmdsize 32 path @loader_path (offset 12) -- cmd LC_RPATH cmdsize 40 path @executable_path/../lib (offset 12) }}} -- Ticket URL: <https://trac.macports.org/ticket/51542#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X