The nvidia-kernel build fails for me with vanilla-sources-2.6.6_rc2. I notice a couple of these already mentioned, but I don't have the userpriv feature set so assume this is different. Building modules, stage 2. MODPOST ACCESS DENIED open_wr: /usr/src/linux-2.6.6-rc2/.__modpost.cmd /bin/sh: line 1: ./.__modpost.cmd: Permission denied make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.6-rc2' nvidia.ko failed to build! make: *** [module] Error 1 !!! ERROR: media-video/nvidia-kernel-1.0.5336-r3 failed. !!! Function src_compile, Line 117, Exitcode 2 !!! Failed to build module --------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-media-video_-_nvidia-kernel-1.0.5336-r3-11549.log" open_wr: /usr/src/linux-2.6.6-rc2/.__modpost.cmd --------------------------------------------------------------------------------bash-2.05b# bash-2.05b# emerge info Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4) ================================================================= System uname: 2.6.4 i686 Intel(R) Xeon(TM) CPU 2.40GHz Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -mfpmath=sse -msse2 -mmmx -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref:/usr/X11R6/lib/X11/xkb:/usr/kde/3.2/share/config:/usr/kde/3.1/share/config:/usr/share/texmf/tex/generic/config/ /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/:/usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/gconf:/etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -mfpmath=sse -msse2 -mmmx -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo http://mirrors.tds.net/gentoo http://gentoo.noved.org/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb cdr crypt cscope cups doc dvd encode esd flac foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl nvidia oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline sdl slang snmp spell sse ssl svga tcltk tcpd tetex threads tiff truetype unicode vim-with-x x86 xml2 xmms xv zlib"
AFAIK it does this because you are not running the kernel that you are trying to build the kernel module against... Can you try running the 2.6.6_rc2 kernel and building against it then. Or better can you try the build against the full 2.6.6 tree (turn off 4k stacks).
Its important that /usr/src/linux points to the right kernel tree aswell.
I booted the 2.6.6_rc2 kernel and /usr/src/linux does point to the appropriate place. Same problem.
Can you attach a log of your entire nvidia-kernel build please (PLAIN TEXT format).
This seems to work fine as of development-sources-2.6.6. I'm assuming it was something to do with the 2.6.6_rc* kernel trees.