When doing an "emerge -uaD world" I always fail on the media-video/nvidia-kernel-1.0.6106 ebuild. emerge shows the following: [ebuild N ] media-video/nvidia-kernel-1.0.6106 Every time (and for a few days now) I run the above command it fails with: NVIDIA: calling KBUILD... *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies mkdir -p .tmp_versions make -f scripts/Makefile.build obj=scripts/basic make -f scripts/Makefile.build obj=scripts gcc -Wp,-MD,scripts/.conmakehash.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/conmakehash scripts/conmakehash.c ACCESS DENIED open_wr: /usr/src/linux-2.6.5-gentoo-r1/scripts/.conmakehash.d cc1: Permission denied: opening dependency file scripts/.conmakehash.d make[3]: *** [scripts/conmakehash] Error 1 make[2]: *** [scripts] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [module] Error 1 make: *** [module] Error 2 !!! ERROR: media-video/nvidia-kernel-1.0.6106 failed. !!! Function src_compile, Line 87, Exitcode 2 !!! Failed to build module --------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-media-video_-_nvidia-kernel-1.0.6106-18134.log" open_wr: /usr/src/linux-2.6.5-gentoo-r1/scripts/.conmakehash.d -------------------------------------------------------------------------------- Reproducible: Always Steps to Reproduce: 1. emerge -uaD world 2. hit enter Actual Results: The emerge failed with the above error message. Expected Results: Completed the emerge.
I got the same error, this is what happens: (the log in /tmp is useless) bash-2.05b# emerge nvidia-kernel Calculating dependencies ...done! >>> emerge (1 of 1) media-video/nvidia-kernel-1.0.6106 to / x86 >>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6106-pkg1.run x86 x86 >>> Unpacking source... * /usr/src/linux is a symbolic link * Determining the real directory of the Linux kernel source code * Building for Linux 2.6.4-gentoo-r1 found in /usr/src/linux * which outputs to /usr/src/linux * By not using the kernel's ability to output to an alternative * directory, some external module builds may fail. * See <insert link to user doc here> Creating directory NVIDIA-Linux-x86-1.0-6106-pkg1 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-6106......... ................................................................................ ................................................................................ ................................. * Applying NVIDIA_kernel-1.0-6106-koutput-support.patch... [ ok ] >>> Source unpacked. x86 NVIDIA: calling KBUILD... make -f scripts/Makefile.build obj=scripts gcc -Wp,-MD,scripts/.docproc.d -Wall -Wstrict-prototypes -O2 -fomit-frame-poin ter -o scripts/docproc scripts/docproc.c ACCESS DENIED open_wr: /usr/src/linux-2.6.4-gentoo-r1/scripts/.docproc.d cc1: Permission denied: opening dependency file scripts/.docproc.d make[3]: *** [scripts/docproc] Error 1 make[2]: *** [scripts] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [module] Error 1 make: *** [module] Error 2 !!! ERROR: media-video/nvidia-kernel-1.0.6106 failed. !!! Function src_compile, Line 87, Exitcode 2 !!! Failed to build module --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-media-video_-_nvidia-kernel-1.0.6106-18402.log" open_wr: /usr/src/linux-2.6.4-gentoo-r1/scripts/.docproc.d --------------------------------------------------------------------------------
Similar for me. It is interesting that the ACCESS DENIED happens with a different file for each of uis??? NVIDIA: calling KBUILD... SPLIT include/linux/autoconf.h -> include/config/* ACCESS DENIED open_wr: /usr/src/linux-2.6.5-gentoo-r1/include/config/hpet/timer.h scripts/basic/split-include: hpet/timer.h: Permission denied make[2]: *** [include/config/MARKER] Error 1 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [module] Error 1 make: *** [module] Error 2
Same here: >>> emerge (3 of 8) media-video/nvidia-kernel-1.0.6106 to / x86 >>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6106-pkg1.run x86 x86 >>> Unpacking source... * /usr/src/linux is a symbolic link * Determining the real directory of the Linux kernel source code * * The kernel Makefile says that this is a 2.6.5 kernel * but the source is in a directory for a 2.6.5-win4lin-r1 kernel. * * This goes against the recommended Gentoo naming convention. * Please rename your source directory to 'linux-2.6.5' * * Building for Linux 2.6.5 found in /usr/src/linux * which outputs to /usr/src/linux * By not using the kernel's ability to output to an alternative * directory, some external module builds may fail. * See <insert link to user doc here> Creating directory NVIDIA-Linux-x86-1.0-6106-pkg1 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-6106.......................................................................................................................................................................................................... * Applying NVIDIA_kernel-1.0-6106-koutput-support.patch... [ ok ]>>> Source unpacked. x86 NVIDIA: calling KBUILD... *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies mkdir -p .tmp_versions make -f scripts/Makefile.build obj=scripts/basic make -f scripts/Makefile.build obj=scripts make -f scripts/Makefile.build obj=arch/i386/kernel arch/i386/kernel/asm-offsets.s make[3]: `arch/i386/kernel/asm-offsets.s' is up to date. make -f scripts/Makefile.build obj=/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/nv_compiler.h gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/.nv.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -Wdeclaration-after-statement -I/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6106 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/nv.c gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/.os-agp.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -Wdeclaration-after-statement -I/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6106 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DMODULE -DKBUILD_BASENAME=os_agp -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-agp.c gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/.os-interface.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -Wdeclaration-after-statement -I/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6106 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DMODULE -DKBUILD_BASENAME=os_interface -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-interface.c gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/.os-registry.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -Wdeclaration-after-statement -I/var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6106 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DMODULE -DKBUILD_BASENAME=os_registry -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-registry.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-registry.c ld -m elf_i386 -r -o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/nvidia.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/nv-kernel.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.6106/work/NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/os-registry.o ACCESS DENIED open_wr: /usr/src/linux-2.6.5-win4lin-r1/.tmp_versions/nvidia.mod /bin/sh: line 1: .tmp_versions/nvidia.mod: Permission denied Building modules, stage 2. make -rR -f /usr/src/linux-2.6.5-win4lin-r1/scripts/Makefile.modpost scripts/modpost vmlinux drivers/media/video/adv7170.o drivers/media/video/adv7175.o drivers/media/video/bt819.o drivers/media/video/bt856.o drivers/media/video/bw-qcam.o drivers/media/video/c-qcam.o drivers/media/video/cpia.o drivers/media/video/cpia_usb.o drivers/media/video/dpc7146.o drivers/net/dummy.o drivers/media/video/hexium_gemini.o drivers/media/video/hexium_orion.o drivers/ide/ide-cd.o drivers/ide/ide-floppy.o drivers/scsi/ide-scsi.o drivers/media/common/ir-common.o drivers/char/lp.o arch/i386/mki-adapter26/mki-adapter.o drivers/parport/parport.o drivers/parport/parport_pc.o drivers/media/video/saa5246a.o drivers/media/video/saa5249.o drivers/media/video/saa7110.o drivers/media/video/saa7114.o drivers/media/video/saa7134/saa7134.o drivers/media/video/saa7185.o drivers/media/video/stradis.o drivers/media/video/tuner-3036.o drivers/media/video/videocodec.o drivers/media/video/vpx3220.o drivers/media/video/zr36016.o drivers/media/video/zr36050.o drivers/media/video/zr36060.o drivers/media/video/zr36067.o ACCESS DENIED open_wr: /usr/src/linux-2.6.5-win4lin-r1/.__modpost.cmd /bin/sh: line 1: ./.__modpost.cmd: Permission denied make[3]: *** [__modpost] Error 1 make[2]: *** [modules] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [module] Error 1 make: *** [module] Error 2 !!! ERROR: media-video/nvidia-kernel-1.0.6106 failed. !!! Function src_compile, Line 87, Exitcode 2 !!! Failed to build module --------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-media-video_-_nvidia-kernel-1.0.6106-4407.log" open_wr: /usr/src/linux-2.6.5-win4lin-r1/.tmp_versions/nvidia.mod open_wr: /usr/src/linux-2.6.5-win4lin-r1/.__modpost.cmd --------------------------------------------------------------------------------screamer root #
Im sorry guys, when making the ebuilds it looked to me that nvidia had handled kernels <= 2.6.5 so that we didnt have to write to /usr/src/linux ... it is obvious that they haven't. Im working on a patch that should fix this -- but for the time being it looks like either disable sandbox for the kernel build, or add an addwrite statement into the ebuild (look in 5336-r4 for an example). The different files are simply a by product of having the kernels built in different ways, however I would suggest that you look that you have the built running kernel as /usr/src/linux.
I did have the built kernel with the proper symlink in /usr/src. Implicit in your comment is that upgrading to > 2.6.5 will fix the problem. At least it did for me. I just wanted it to be clear to folks.
The comment by Robert Winthrow about things working correctly if you upgrade to > 2.6.5 worked for me. Thank you all!
*** Bug 57781 has been marked as a duplicate of this bug. ***
I am not going to fix this, if someone thinks it is important enough they can submit a patch and reopen the bug.
*** Bug 61462 has been marked as a duplicate of this bug. ***
*** Bug 62817 has been marked as a duplicate of this bug. ***