[MacPorts] #38527: clang-3.3 @3.3-r173279 AddressSanitizer binaries don't work without explicitly setting DYLD_LIBRARY_PATH

MacPorts noreply at macports.org
Thu Aug 1 11:15:42 PDT 2013


#38527: clang-3.3 @3.3-r173279 AddressSanitizer binaries don't work without
explicitly setting DYLD_LIBRARY_PATH
--------------------------------+------------------------
  Reporter:  andrew.c.morrow@…  |      Owner:  jeremyhu@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.1.3
Resolution:                     |   Keywords:
      Port:  clang-3.3          |
--------------------------------+------------------------

Comment (by andrew.c.morrow@…):

 One workaround for this is to change to the directory where
 libclang_rt.asan lives and use install_name_tool to patch it up:

 {{{

 $ mdfind -name libclang_rt.asan_osx_dynamic.dylib
 /opt/local/libexec/llvm-3.4/lib/clang/3.4/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/libexec/llvm-3.2/lib/clang/3.2/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
 $ cd /opt/local/libexec/llvm-3.4/lib/clang/3.4/lib/darwin/
 $ sudo install_name_tool -id $(grealpath
 ./libclang_rt.asan_osx_dynamic.dylib) ./libclang_rt.asan_osx_dynamic.dylib
 }}}

 You will need to re-link any executables built with -fsanitize=address so
 they pick up the new install name. Obviously, if you re-install the port,
 you will need to redo this.

-- 
Ticket URL: <https://trac.macports.org/ticket/38527#comment:3>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list