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

Dimitry Andric <d...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open

--- Comment #1 from Dimitry Andric <d...@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.

Reply via email to