The nvidia-kernel ebuild compiles the module and merges successfully, with only one compiler warning, but modprobe complains that the module is invalid. Modprobe gives the error: FATAL: Error inserting nvidia (/lib/modules/2.6.5/video/nvidia.ko): Invalid module format and the kernel logs show "No module found in object". The only patches applied to the kernel are EVMS. Kernel config follows.
Created attachment 29200 [details] Kernel config (gzipped) Forgot to mention: The nvidia-kernel ebuild in question is nvidia-kernel-1.0.5336-r2
you forgot to provide #emerge info points /usr/src/linux to the dev-sources-2.6.5 ?
Same as me. I use gentoo-devel 2.6.5 # emerge info Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo) ================================================================= System uname: 2.6.5-gentoo i686 AMD Athlon(TM) XP 2200+ Gentoo Base System version 1.4.3.13p1 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs sandbox strict userpriv usersandbox" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" USE="X aalib apache2 apm arts avi berkdb cdr crypt cups directfb dvd encode esd exiscan-acl fbcon foomaticdb gdbm gif gphoto2 gpm gtk gtk2 guile imap imlib ipv6 java jpeg kde ldap libg++ libwww lmtp mad maildir matroska mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sasl scanner sdl slang spell ssl svga tcltk tcpd tetex truetype vhosts x86 xml xml2 xmms xv zlib"
Created attachment 29238 [details] Kernel config from laptop (gzipped) Of note: nvidia.ko inserts without a hitch on my laptop (P4-m, integrated GeForce). I'll attach the laptop's kernel config as well, for comparison. $ ls -ld /usr/src/linux lrwxrwxrwx 1 root root 11 Apr 13 18:09 /usr/src/linux -> linux-2.6.5 # emerge info Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.24) ================================================================= System uname: 2.4.24 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.7 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [disabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs distcc sandbox" GENTOO_MIRRORS="ftp://mirror.aarnet.edu.au/pub/gentoo http://www.planetmirror.com/pub/gentoo http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa apache2 apm arts artswrappersuid avi berkdb bonobo cdr crypt cups doc dvd dvdr encode esd ethereal evms2 evo flash foomaticdb gdbm ggi gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imap imlib java javamail javascript jdepend jikes joystick jpeg kde kerberos krb4 lcms ldap libg++ libwww lirc mad maildir mbox mikmod motif mozilla mpeg mysql ncurses nls oav oggvorbis openal opengl oss pam pcap pdflib perl png ppds python qt quicktime readline samba sasl scanner sdl slang slp snmp socks5 spell src sse ssl svga tcltk tcpd tetex tiff transcode truetype usb vanilla videos wmf wxwindows x86 xinerama xml xml2 xmms xv xvid zlib"
Have you tried compiling without distcc ??
Can you try the patch mentioned on this bug http://bugs.gentoo.org/show_bug.cgi?id=48030 It might be the same thing, albeit that issue was meant to be introduced after 2.6.5
AFAIK the problem is because you have in your kernel config CONFIG_4KSTACKS=y Try deactivating it, and install nvidia drivers again. Also, dont set CONFIG_REGPARM cause it will break too. IIRC Nvidia will release new drivers with this fixed, i can use my nvidia since 2.6.6-rc1 Hope this helps.
test
I am stuck and forced to use an old kernel to work. How much do you think this could take?
Please test nvidia-kernel-5336-r3 (preferably with 2.6.6 kernel, but not essential) and report back please. The new driver will definately fix the modprobe errors (well at least it should as far as ive tested), however you must disable 4k stacks still.
I was just messing with kernel 2.6.6, and I noticed this bug. I can say that nvidia-kernel-5336-r3 works just fine with development-sources-2.6.6.
Looks like we can close this.