[Bug 285666] Sanitized build of one port fails: undefined reference due to --no-allow-shlib-undefined: __sanitizer_annotate_double_ended_contiguous_container
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Mar 2025 14:17:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285666
Dimitry Andric <dim@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|New |Open
--- Comment #1 from Dimitry Andric <dim@FreeBSD.org> ---
You should probably not set CXXFLAGS/LDFLAGS directly, as the port's CMakeLists
has a USE_ASAN option for this. E.g. this builds fine for me:
diff --git a/misc/py-pytorch/Makefile b/misc/py-pytorch/Makefile
index 9db96e4f4e9b..53d7c166a405 100644
--- a/misc/py-pytorch/Makefile
+++ b/misc/py-pytorch/Makefile
@@ -58,6 +58,7 @@ MAKE_ENV+= USE_MKLDNN=0 # disable MKLDNN that doesn't
exist, see https://github.
MAKE_ENV+= USE_CUDNN=0
MAKE_ENV+= USE_LAPACK=1 # needed on FreeBSD to run w/out GPU
MAKE_ENV+= USE_QNNPACK=0
+MAKE_ENV+= USE_ASAN=1
LDFLAGS+= -lexecinfo
LDFLAGS_powerpc64le= -pthread
I don't know how to properly test the result, though. "make test" doesn't
appear to do much?
--
You are receiving this mail because:
You are the assignee for the bug.