FATAL: Error inserting nvidia (/lib/modules/2.6.8-gentoo-r4/video/nvidia.ko): Invalid module format I tried using the 6111 r1 and that didnt work I tried using the 5336 r4 / r2 and that didnt work either. It was working last night and then I did a emerge -u world and it no longer works. After I restarted my machine after the -u world it would not load the nvidia driver. Reproducible: Always Steps to Reproduce: 1.just restart the computer. Actual Results: nvidia driver would not load Expected Results: should have loaded the driver Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4 i686) ================================================================= System uname: 2.6.8-gentoo-r4 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz Gentoo Base System version 1.6.0 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb bitmap-fonts crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xprint xv zlib"
as I keep trying things I recieved this error durring emerge. Not sure what it means. By notusing the kernel's ability to output to an alternative directory, some external module builds may fail.
I'd guess you compiled your kernel with a different version of gcc than the nvidia kernel module. Run `dmesg | head -n 1` please, then compare that with `emerge -V`.
You are right they are two different versions. SHould I just recompile the kernel? I am sorry for not figuring this out. I am new to linux so a lot of this is new to me
Recompile nvidia-kernel with the gcc version you compiled your kernel with or Recompile your kernel with the gcc version you compiled nvidia-kernel with The last line in dmesg after modprobe nvidia should tell you which versions are mismatched... gcc-config is a nice tool you might want to look at aswell.
PEBKAC
i recompiled the kernel. Yes the problem was with me. I didnt know that they had to have the gcc version. Again I am new and just learning