On recent 14-CURRENT (14.0-CURRENT #147 main-n248437-600745f1e226: Mon Aug 2 18:34:54 CEST 2021 amd64) building port x11/nvidia-driver fails due to the error shown below. [...] :> export_syms awk -f /usr/src/sys/conf/kmod_syms.awk nvidia-modeset.ko export_syms | xargs -J% objcopy % nvidia-modeset.ko ===> lib (all) ===> lib/libGLX_nvidia (all) ===> lib/libnvidia-tls (all) ===> lib/libnvidia-cfg (all) ===> lib/libnvidia-glcore (all) ===> lib/libvdpau_nvidia (all) ===> lib/libnvidia-glvkspirv (all) ===> lib/libnvidia-eglcore (all) ===> lib/libnvidia-glsi (all) ===> lib/libEGL_nvidia (all) ===> lib/libGLESv2_nvidia (all) ===> lib/libGLESv1_CM_nvidia (all) ===> lib/libnvidia-egl-wayland (all) ===> lib/libnvidia-ml (all) ===> x11 (all) ===> x11/driver (all) ===> x11/extension (all) ===> doc (all) make[6]: "/usr/share/mk/bsd.prog.mk" line 84: Could not find bsd.sanitizer.mk make[6]: Fatal errors encountered -- cannot continue make[6]: stopped in /usr/obj/usr/src/amd64.amd64/sys/THOR/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-460.84/doc *** Error code 1 Stop. make[5]: stopped in /usr/obj/usr/src/amd64.amd64/sys/THOR/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-460.84 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1
This is some kind of local issue in your base system mk directory (/usr/share/mk) unrelated to the port or ports itself.