https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288669
Bug ID: 288669
Summary: Current fails to compile nvidia driver
Product: Base System
Version: CURRENT
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
FreeBSD FBSD15 15.0-CURRENT FreeBSD 15.0-CURRENT #0
main-n276090-20bdda14fa5c-dirty: Wed Mar 26 10:06:58 EDT 2025
root@FBSD15:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1500034
--- nvlink_freebsd.o ---
cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"470.256.02\"
-D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2
-fno-strict-aliasing -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG
-DNV_SPECTRE_V2=1 -DNV_KERNEL_INTERFACE_LAYER -Werror=undef -Werror -D_KERNEL
-DKLD_MODULE -nostdinc -I. -I../common/inc -include
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/x11/nvidia-driver-470/work/NVIDIA-FreeBSD-x86_64-470.256.02/src/nvidia/opt_global.h
-I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=./machine=/usr/src/sys/amd64/include
-fdebug-prefix-map=./x86=/usr/src/sys/x86/include
-fdebug-prefix-map=./i386=/usr/src/sys/i386/include -MD
-MF.depend.nvlink_freebsd.o -MTnvlink_freebsd.o -mcmodel=kernel -mno-red-zone
-mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-fwrapv -fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wswitch
-Wno-error=tautological-compare -Wno-error=empty-body
-Wno-error=parentheses-equality -Wno-error=unused-function
-Wno-error=pointer-sign -Wno-error=shift-negative-value
-Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx
-std=gnu17 -c nvlink_freebsd.c -o nvlink_freebsd.o
--- nvidia_subr.o ---
nvidia_subr.c:1475:15: error: use of undeclared identifier 'DMAP_MIN_ADDRESS'
1475 | if (va >= DMAP_MIN_ADDRESS && va < DMAP_MAX_ADDRESS)
| ^
nvidia_subr.c:1475:40: error: use of undeclared identifier 'DMAP_MAX_ADDRESS'
1475 | if (va >= DMAP_MIN_ADDRESS && va < DMAP_MAX_ADDRESS)
| ^
2 errors generated.
*** [nvidia_subr.o] Error code 1
make[2]: stopped making "all" in
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/x11/nvidia-driver-470/work/NVIDIA-FreeBSD-x86_64-470.256.02/src/nvidia
make[2]: 1 error
make[2]: stopped making "all" in
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/x11/nvidia-driver-470/work/NVIDIA-FreeBSD-x86_64-470.256.02/src/nvidia
make[1]: stopped making "all" in
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/x11/nvidia-driver-470/work/NVIDIA-FreeBSD-x86_64-470.256.02/src
make: stopped making "all" in
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/x11/nvidia-driver-470/work/NVIDIA-FreeBSD-x86_64-470.256.02
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[4]: stopped making
"/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/usr/ports/x11/nvidia-driver-470/work/.build_done.nvidia-driver._usr_local"
in /usr/ports/x11/nvidia-driver-470
*** Error code 1
Stop.
make[3]: stopped making "clean build" in /usr/ports/x11/nvidia-driver-470
*** [all] Error code 1
make[2]: stopped making "all" in
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
make[2]: 1 error
--
You are receiving this mail because:
You are the assignee for the bug.