On a recently build 10-STABLE i386 system with unmodified sources, I svn switch to /usr/src to 11-CURRENT r274278 and make buildworld, which fails with: /usr/src/lib/libc/gen/cap_sandboxed.c:33:10: fatal error: 'sys/capsicum.h' file not found #include <sys/capsicum.h> ^ 1 error generated. /usr/src/lib/libc/../../sys/kern/subr_capability.c:38:10: fatal error: 'sys/capsicum.h' file not found #include <sys/capsicum.h> ^ 1 error generated. mkdep: compile failed *** Error code 1 Stop. make[4]: stopped in /usr/src/lib/libc *** Error code 1 Stop. make[3]: stopped in /usr/src *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src # uname -a FreeBSD Marianne.Juan.home 10.1-PRERELEASE FreeBSD 10.1-PRERELEASE #0 r274026 Mon Nov 3 16:20:52 CET 2014 root@Marianne.Juan.home:/usr/obj/usr/src/sys/GENERIC i386 # cat /etc/make.conf .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) .if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc) CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1} CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1} .endif .endif WITH_CCACHE_BUILD=yes SVN_UPDATE= # cat /etc/src.conf cat: /etc/src.conf: No such file or directory
I have tried again today with a fresh checkout of HEAD after having deleted /usr/obj and /usr/src and make buildworld fails at the same place.
Same to me. I have the same situation with these files too when trying to compile nanobsd buildworld. One funny thing is that this file, sys/capsicum.h, actually exist in the directory /usr/src/sys/ along with cdefs.h which is also included in cap_sandboxed.c. Why is compiler finds one .h file and can't find another, if I could know.. The system is: FreeBSD 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 22:51:51 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
Try a slightly different make.conf: .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) .if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc) PATH=/usr/local/libexec/ccache/world:/sbin:/bin:/usr/sbin:/usr/bin #CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1} #CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1} .endif .endif
Actually that doesn't work :)
Does it happen only with ccache?
(In reply to Ed Maste from comment #5) This error seems to be gone with an updated source (as of today, rev. 285321). make buildworld still fails with ccache enabled, but works without it, so I think we could close this PR. Thanks for your work! Juan
Submitter reports this specific issue is no longer reproducible.