Current latest version in portage tree 295.49 as well as "highest" version 302.07 fails to find kernel headers. Newest version 295.53 builds fine with 3.4-rc7. http://www.nvidia.com/object/linux-display-amd64-295.53-driver.html build error: x86_64-pc-linux-gnu-gcc -Wp,-MD,/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/.nv-mempool.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include -I/usr/src/linux-3/arch/x86/include -Iarch/x86/include/ generated -Iinclude -I/usr/src/linux-3/include -include /usr/src/linux-3/include/linux/kconfig.h -I/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-str ict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=k8 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_A S_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-s et-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer- x86_64-pc-linux-gnu-gcc -Wp,-MD,/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/.nv-mlock.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux -gnu/4.6.3/include -I/usr/src/linux-3/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-3/include -include /usr/src/linux-3/include/linux/kconfig.h -I/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/ker nel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=k8 -mno-red-zone -mcmodel=kerne l -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dno w -mno-avx -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/tmp/tmpfs/portage/x1 1-drivers/nvidia-drivers-302.07/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"302.07\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DM ODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_mlock)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/.tmp_nv-mlock.o /tmp/tmpfs/portage/x11-drivers/nvidia-driv ers-302.07/work/kernel/nv-mlock.c sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"302.07\" -Wno-unuse d-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_mempool)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/.tmp_nv-mempool.o /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-mempool.c In file included from /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv.c:13:0: /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory compilation terminated. In file included from /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-acpi.c:15:0: /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory compilation terminated. make[4]: *** [/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv.o] Error 1 make[4]: *** Waiting for unfinished jobs.... In file included from /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-i2c.c:15:0: /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directoryIn file included from /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-chrdev.c:15:0: /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory compilation terminated. compilation terminated. make[4]: *** [/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-acpi.o] Error 1 make[4]: *** [/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-chrdev.o] Error 1 make[4]: *** [/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-i2c.o] Error 1 In file included from /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-gvi.c:15:0: /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory compilation terminated. make[4]: *** [/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-gvi.o] Error 1 In file included from /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-cray.c:15:0: /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory compilation terminated. make[4]: *** [/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-cray.o] Error 1 In file included from /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-mlock.c:15:0: /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory compilation terminated. In file included from /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-mempool.c:15:0: /tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory compilation terminated. make[4]: *** [/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-mlock.o] Error 1 make[4]: *** [/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel/nv-mempool.o] Error 1 make[3]: *** [_module_/tmp/tmpfs/portage/x11-drivers/nvidia-drivers-302.07/work/kernel] Error 2 make[2]: *** [sub-make] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [module] Error 1 make: *** [module] Error 2 emake failed * ERROR: x11-drivers/nvidia-drivers-302.07 failed (compile phase):
*** This bug has been marked as a duplicate of bug 414645 ***