[MacPorts] #39267: clang-3.3: Address sanitizer library needs id to be changed on install
MacPorts
noreply at macports.org
Tue May 28 19:00:38 PDT 2013
#39267: clang-3.3: Address sanitizer library needs id to be changed on install
--------------------+-----------------------
Reporter: dh@… | Owner: jeremyhu
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Keywords: | Port: clang-3.3
--------------------+-----------------------
Compiling (and linking) using the -fsanitize=address flags leads to an
executable with dangling library dependencies. This is because a library
has been installed with a bad id
{{{
$ otool -L
/opt/local/libexec/llvm-3.3/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
/opt/local/libexec/llvm-3.3/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib:
/opt/local/var/macports/build/_opt_mports_dports_lang_llvm-3.3/clang-3.3/work/trunk/Release+Debug+Asserts/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
(compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
(compatibility version 300.0.0, current version 833.25.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 52.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 159.1.0)
}}}
Manually fixing the id solves the problem
{{{
$ sudo install_name_tool -id
/opt/local/libexec/llvm-3.3/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
/opt/local/libexec/llvm-3.3/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
}}}
So I guess this just needs to be added to the post-destroot ... I'm not
sure if this also affects 3.2.
--
Ticket URL: <https://trac.macports.org/ticket/39267>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list