Shown below the error, which occured with lates ports tree update. The error also shows up with the in-ports version of the driver (331.67, 340.32). --- nvidia_ctl.o --- cc -O2 -pipe -O3 -march=native -fno-strict-aliasing -O3 -march=native -DNV_VERSION_STRING=\"343.22\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2 -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -mno-aes -mno-avx -Qunused-arguments -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -mno-aes -mno-avx -Qunused-arguments -c nvidia_ctl.c --- nvidia_acpi.o --- In file included from nvidia_acpi.c:14: In file included from ./nv-freebsd.h:89: @/sys/filedesc.h:37:10: fatal error: 'opt_capsicum.h' file not found #include "opt_capsicum.h" ^ --- nvidia_ctl.o --- In file included from nvidia_ctl.c:14: In file included from ./nv-freebsd.h:89: @/sys/filedesc.h:37:10: fatal error: 'opt_capsicum.h' file not found #include "opt_capsicum.h" ^ 1 error generated. *** [nvidia_ctl.o] Error code 1
Maintainers CC'd
I also see this, and note that the mode of failure is quite similar to that in "make buildworld" for head@272513; in that case, I was seeing (e.g.): ... --- lib/libkvm__L --- In file included from /usr/src/lib/libkvm/kvm_minidump_i386.c:34: In file included from /usr/obj/usr/src/tmp/usr/include/sys/user.h:49: In file included from /usr/obj/usr/src/tmp/usr/include/sys/proc.h:45: /usr/obj/usr/src/tmp/usr/include/sys/filedesc.h:36:10: fatal error: 'opt_capsicum.h' file not found #include "opt_capsicum.h" ^ --- lib/libmd__L --- ... while for nvidia-driver, what I'm seeing is: ... :> opt_global.h clang -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"331.67\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -fno-common -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -mno-aes -mno-avx -Qunused-arguments -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -mno-aes -mno-avx -Qunused-arguments -c nvidia_acpi.c In file included from nvidia_acpi.c:14: In file included from ./nv-freebsd.h:89: @/sys/filedesc.h:37:10: fatal error: 'opt_capsicum.h' file not found #include "opt_capsicum.h" ^ 1 error generated. *** Error code 1 ... Note: I have the line: PORTS_MODULES=x11/nvidia-driver in /etc/src.conf (so I rebuild nvidia-driver when I rebuild the kernel).
Did you try the latest -CURRENT (head)? I believe this particular problem had occurred for a short while and no longer exists. You might also want to test upcoming update of the drivers to the latest versions (see the following linked patch). http://people.freebsd.org/~danfe/nvidia-update.diff
I have not had the issue for some time (but then, I update daily).
I believe it was a temporary fallout during normal -CURRENT development, and had been fixed shortly after. Submitter confirms it is no longer an issue, hence I'm closing this bug.