[Bug 285666] Sanitized build of one port fails: undefined reference due to --no-allow-shlib-undefined: __sanitizer_annotate_double_ended_contiguous_container

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 26 Mar 2025 06:06:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285666

            Bug ID: 285666
           Summary: Sanitized build of one port fails: undefined reference
                    due to --no-allow-shlib-undefined:
                    __sanitizer_annotate_double_ended_contiguous_container
           Product: Base System
           Version: 14.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

When these 2 lines are added to /usr/ports/misc/py-pytorch/Makefile:
> CXXFLAGS+=	-fsanitize=address
> LDFLAGS+=	-fsanitize=address

the build of this port fails:

> [ 91%] Linking CXX executable ../../../../bin/torch_shm_manager
> ld: error: undefined reference due to --no-allow-shlib-undefined: __sanitizer_annotate_double_ended_contiguous_container
> >>> referenced by ../../../../lib/libc10.so

Unfortunately I don't have a smaller testcase.

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