One of export GCC_INCLUDE_DIR="${KERNEL_DIR}/arch/x86/include/generated/" export C_INCLUDE_PATH="${KERNEL_DIR}/arch/x86/include/generated/" before linux-mod_src_compile works around this. Tested with Linux 3.3-rc commit 23783f817bceedd6d4e549385e3f400ea64059e5 and nvidia-drivers-290.10-rc1 More information: Removing some >/dev/null in conftest.sh reveals make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux CC=x86_64-pc-linux-gnu-gcc clean module Test---1 In file included from /usr/src/linux/include/linux/unistd.h:7:0, from /usr/src/linux/arch/x86/include/asm/seccomp_64.h:4, from /usr/src/linux/arch/x86/include/asm/seccomp.h:4, from /usr/src/linux/include/linux/seccomp.h:8, from /usr/src/linux/include/linux/sched.h:80, from /usr/src/linux/include/linux/utsname.h:35, from conftest30236.c:5: /usr/src/linux/arch/x86/include/asm/unistd.h:16:29: fatal error: asm/unistd_64.h: No such file or directory Since Linux commit 303395ac3bf3e2cb488435537d416bc840438fcb, unistd_{32,64}.h are autogenerated and placed in arch/x86/include/generated/asm/. I don't know how they are supposed to be found there. A "git grep generated/" shows a lot of includes. A "git grep /generated" shows at least one "-Iarch/$(hdr-arch)/include/generated". I can only tell that this may or may not be a kernel bug, or an eclass bug, or an nvidia upstream bug.
We don't support RC kernels. Never have and never will.