http://llvm.org/bugs/show_bug.cgi?id=21618
Bug ID: 21618
Summary: libclang_rt.asan_osx_dynamic.dylib incorrect RPATH
Product: clang
Version: 3.5
Hardware: PC
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
*asan*.dylib has an incorrect rpath:
> otool -L lib/clang/3.5.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
/private/tmp/llvm-release/final/Phase3/Release/llvmCore-3.5.0-final.obj/Release/lib/clang/3.5.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
(compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1197.1.1)
It's probably some temporary build location which not exists.
This lead to error:
> cat main.cpp
#include <iostream>
int main() {
std::cout << "hello" << std::endl;
}
> clang++ -fsanitize=address main.cpp -o foo && ./foo
dyld: Library not loaded:
/private/tmp/llvm-release/final/Phase3/Release/llvmCore-3.5.0-final.obj/Release/lib/clang/3.5.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
Referenced from: /.../foo
Reason: image not found
Trace/BPT trap: 5
Simple workaround:
> install_name_tool /path/to/real/*.dylib -id /path/to/real/*.dylib
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs