[MacPorts] #57152: clang: asan does not work

MacPorts noreply at macports.org
Sun Sep 23 07:12:51 UTC 2018


#57152: clang: asan does not work
--------------------+---------------------------------------------
 Reporter:  akimd   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.5.3
 Keywords:          |       Port:  clang-devel clang-6.0 clang-7.0
--------------------+---------------------------------------------
 Hi!

 {{{
 $ cat foo.cc
 int main()
 {
   return 0;
 }
 $ clang++-mp-devel foo.cc
 $ ./a.out
 $ clang++-mp-devel foo.cc -fsanitize=address
 $ ./a.out
 dyld: Library not loaded: /opt/local/libexec/llvm-
 devel/lib/libclang_rt.asan_osx_dynamic.dylib
   Referenced from: /private/tmp/./a.out
   Reason: image not found
 zsh: abort      ./a.out
 }}}

 I don't remember when asan worked properly in MacPorts, I think I've
 always had to add symlinks to work around this.  Unfortunately, only one
 compiler can be fixed at a time this way.

 Cheers!

-- 
Ticket URL: <https://trac.macports.org/ticket/57152>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list