Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101985 - gentoo-sources-2.6.12-r{7,8} breaks nvidia-kernel (vmap issue)
Summary: gentoo-sources-2.6.12-r{7,8} breaks nvidia-kernel (vmap issue)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 07:43 UTC by Rodolphe Rocca
Modified: 2005-08-11 13:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodolphe Rocca 2005-08-10 07:43:38 UTC
gentoo-sources-r7 and gentoo-source-r8 seem to break nvidia-kernel (either 7174
or 7667) while gentoo-sources-r6 is just fine.
This is a vmap issue.
The problem happens with both gcc 3.4.4 and gcc 4.0.1.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
taichi src # emerge --oneshot nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.7667 to 

<< snip >>

/var/tmp/portage/nvidia-kernel-1.0.7667/work/NVIDIA-Linux-x86_64-1.0-7667-pkg2/usr/src/nv/nv-vm.c:
In function 
Comment 1 Rodolphe Rocca 2005-08-10 07:43:38 UTC
gentoo-sources-r7 and gentoo-source-r8 seem to break nvidia-kernel (either 7174
or 7667) while gentoo-sources-r6 is just fine.
This is a vmap issue.
The problem happens with both gcc 3.4.4 and gcc 4.0.1.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
taichi src # emerge --oneshot nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.7667 to 

<< snip >>

/var/tmp/portage/nvidia-kernel-1.0.7667/work/NVIDIA-Linux-x86_64-1.0-7667-pkg2/usr/src/nv/nv-vm.c:
In function nv_vm_malloc_pages:
/var/tmp/portage/nvidia-kernel-1.0.7667/work/NVIDIA-Linux-x86_64-1.0-7667-pkg2/usr/src/nv/nv-vm.c:283:
error: too few arguments to function vmap
make[3]: ***
[/var/tmp/portage/nvidia-kernel-1.0.7667/work/NVIDIA-Linux-x86_64-1.0-7667-pkg2/usr/src/nv/nv-vm.o]
Error 1
make[2]: ***
[_module_/var/tmp/portage/nvidia-kernel-1.0.7667/work/NVIDIA-Linux-x86_64-1.0-7667-pkg2/usr/src/nv]
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.7667 failed.
!!! Function linux-mod_src_compile, Line 491, Exitcode 2
!!! Unable to make                                  IGNORE_CC_MISMATCH=yes V=1
SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux clean module.
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
nvidia-kernel emerges

taichi src # emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-4.0.1, glibc-2.3.5-r0,
2.6.12-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r2, 2.15.92.0.2-r10, 2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/perso"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d a52 aalib acpi alsa apache2 arts avi bash-completion berkdb
bitmap-fonts bonobo cdr crypt cups curl dba dga directfb dts dvd dvdr eds encode
esd ethereal faac faad fam fbcon flac flash foomaticdb fortran gcj gd gdbm ggi
gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick
imap imlib ipv6 java jpeg kde lcms ldap libwww lzw lzw-tiff mad maildir matroska
mbox mikmod motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis
opengl pam pdflib perl plotutils png pnp ppds python qt quicktime readline ruby
samba sasl scanner sdl slang socks5 spell sqlite ssl svg tcltk tcpd theora tiff
truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wmf xine xml
xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 2 Joshua Baergen (RETIRED) gentoo-dev 2005-08-10 18:19:14 UTC
Kernel team, do you know what introduced this change?
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-08-11 02:02:41 UTC
No, we don't modify the vmap function at all. It seems unlikely that anything
changing between -r6 and -r7 would cause this.

It looks like the nvidia module is incorrectly detecting the number of arguments
that vmap() takes. This is an x86_64-only codepath so difficult for me to diagnose.
Comment 4 rob shelton 2005-08-11 07:37:06 UTC
I have gentoo-sources-2.6.12-r8 installed, along with nvidia-kernel-1.0.7667,
but using gcc-3.4.3, and it works fine.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-08-11 08:23:31 UTC
Rob: are you on amd64?
Comment 6 Rodolphe Rocca 2005-08-11 13:25:56 UTC
I made some new tests.
I tried to recompile gentoo-sources-r6 (using gcc 3.4.4 then 4.0.1) and then
nvidia-kernel 7667. Guess what ? It fails with the same vmap error, where it was
succeeding before with an old r6.
I thought it was a genkernel issue so I recompiled my kernel by hand :

$ make mrpropper && make && make modules && make modules_install

But I still have the issue.
Comment 7 Rodolphe Rocca 2005-08-11 13:44:36 UTC
OK that's it. There is no spoon. The issue was a ccache issue. I disabled it in
my make.conf and now nvidia-kernel emerges correctly on r8. So I close the bug
and set it to INVALID. Sorry for the noise.