Bug 194148 - x11/nvidia-driver: @/sys/filedesc.h:37:10: fatal error: 'opt_capsicum.h' file not found
Summary: x11/nvidia-driver: @/sys/filedesc.h:37:10: fatal error: 'opt_capsicum.h' file...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-04 22:08 UTC by O. Hartmann
Modified: 2014-11-05 17:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2014-10-04 22:08:39 UTC
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
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-10-04 22:08:39 UTC
Maintainers CC'd
Comment 2 david 2014-10-05 14:24:55 UTC
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).
Comment 3 Alexey Dokuchaev freebsd_committer freebsd_triage 2014-11-03 16:35:01 UTC
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
Comment 4 david 2014-11-03 16:43:47 UTC
I have not had the issue for some time (but then, I update daily).
Comment 5 Alexey Dokuchaev freebsd_committer freebsd_triage 2014-11-05 17:50:38 UTC
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.