Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47692 - nvidia-kernel builds invalid module with dev-sources-2.6.5
Summary: nvidia-kernel builds invalid module with dev-sources-2.6.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-13 04:45 UTC by Chris van der Pennen
Modified: 2004-06-15 14:11 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel config (gzipped) (config.gz,7.29 KB, application/x-gzip)
2004-04-13 04:47 UTC, Chris van der Pennen
Details
Kernel config from laptop (gzipped) (config.gz,6.62 KB, application/x-gzip)
2004-04-13 16:54 UTC, Chris van der Pennen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris van der Pennen 2004-04-13 04:45:02 UTC
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.
Comment 1 Chris van der Pennen 2004-04-13 04:47:26 UTC
Created attachment 29200 [details]
Kernel config (gzipped)

Forgot to mention:
The nvidia-kernel ebuild in question is nvidia-kernel-1.0.5336-r2
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-04-13 08:36:08 UTC
you forgot to provide
#emerge info

points /usr/src/linux to the dev-sources-2.6.5 ?
Comment 3 Svein 2004-04-13 14:42:56 UTC
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"
Comment 4 Chris van der Pennen 2004-04-13 16:54:22 UTC
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"
Comment 5 Andrew Bevitt 2004-04-15 16:39:20 UTC
Have you tried compiling without distcc ??
Comment 6 Andrew Bevitt 2004-04-16 04:26:58 UTC
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
Comment 7 Adrian Almenar 2004-04-22 11:19:15 UTC
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.
Comment 8 Jean-Philippe Provost 2004-04-22 17:35:39 UTC
test
Comment 9 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-05-10 14:35:40 UTC
I am stuck and forced to use an old kernel to work. How much do you think this could take?
Comment 10 Andrew Bevitt 2004-05-10 20:52:47 UTC
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.
Comment 11 Peter Jensen 2004-06-01 00:54:10 UTC
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.
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-15 14:11:17 UTC
Looks like we can close this.