[MacPorts] #51542: clang-3.8 and clang-3.9 fail to function due to rpath
MacPorts
noreply at macports.org
Wed Jun 1 09:13:41 PDT 2016
#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
Resolution: | Keywords:
Port: clang-3.8 |
-------------------------------------+--------------------------------
Comment (by kenneth.f.cunningham@…):
here's the verbose output
{{{
user$ sudo port select clang mp-clang-3.8
Selecting 'mp-clang-3.8' for 'clang' succeeded. 'mp-clang-3.8' is now
active.
user$ clang -v hello.c -o hello
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
"/opt/local/libexec/llvm-3.8/bin/clang" -cc1 -triple x86_64-apple-
macosx10.6.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
hello.c -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-
linker-version 136 -v -dwarf-column-info -debugger-tuning=lldb -resource-
dir /opt/local/libexec/llvm-3.8/bin/../lib/clang/3.8.0 -fdebug-
compilation-dir /Users/cunningh/Desktop/test_llvm -ferror-limit 19
-fmessage-length 129 -stack-protector 1 -fblocks -fobjc-
runtime=macosx-10.6.0 -fencode-extended-block-signature -fmax-type-
align=16 -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/I0/I0fOotq3ErGZHYxrmmWiqU+++TI/-Tmp-/hello-299a89.o -x c
hello.c
clang -cc1 version 3.8.0 based upon LLVM 3.8.0 default target x86_64
-apple-darwin10.8.0
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/opt/local/libexec/llvm-3.8/bin/../lib/clang/3.8.0/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/opt/local/libexec/llvm-3.8/bin/ld" -demangle -dynamic -arch x86_64
-macosx_version_min 10.6.0 -o hello -lcrt1.10.6.o
/var/folders/I0/I0fOotq3ErGZHYxrmmWiqU+++TI/-Tmp-/hello-299a89.o -lSystem
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)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/51542#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list