[Bug 245542] devel/llvm10: cannot use ASan API

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Apr 11 20:52:05 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245542

            Bug ID: 245542
           Summary: devel/llvm10: cannot use ASan API
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
          Assignee: brooks at FreeBSD.org
             Flags: maintainer-feedback?(brooks at FreeBSD.org)

$ echo "#include <sanitizer/asan_interface.h>" >a.c
$ cc -fsanitize=address -c a.c
$ clang10 -fsanitize=address -c a.c
a.c:1:10: fatal error: 'sanitizer/asan_interface.h' file not found
#include <sanitizer/asan_interface.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Found via Firefox's --enable-address-sanitizer:

In file included from ipc/glue/BackgroundChildImpl.cpp:13:
In file included from objdir/dist/include/CamerasChild.h:20:
In file included from
media/webrtc/trunk/webrtc/modules/video_capture/video_capture_defines.h:15:
In file included from
media/webrtc/trunk/webrtc/modules/include/module_common_types.h:20:
In file included from media/webrtc/trunk/webrtc/api/optional.h:25:
In file included from media/webrtc/trunk/webrtc/rtc_base/sanitizer.h:32:
objdir/dist/system_wrappers/sanitizer/asan_interface.h:3:15: fatal error:
      'sanitizer/asan_interface.h' file not found
#include_next <sanitizer/asan_interface.h>
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list