i686-pc-linux-gnu-gcc -Wp,-MD,/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8774 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_2_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-vm.o /tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-vm.c /tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-vm.c: In function 'nv_vmap': /tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-vm.c:723: error: too few arguments to function 'vmap' make[3]: *** [/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-vm.o] Error 1 make[2]: *** [_module_/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [mdl] Error 1 make: *** [module] Error 2 !!! ERROR: x11-drivers/nvidia-drivers-1.0.8774 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile nvidia-drivers-1.0.8774.ebuild, line 144: Called linux-mod_src_compile linux-mod.eclass, line 469: Called die !!! 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, and the call stack if relevant.
Created attachment 95510 [details] emerge --info
I'm having the same error. Building modules, stage 2. make -rR -f /usr/src/linux-2.6.17-gentoo-r8/scripts/Makefile.modpost scripts/mod/modpost -m -i /usr/src/linux-2.6.17-gentoo-r8/Module.symvers -I /var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/Modules.symvers -o /var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/Modules.symvers /var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/nvidia.o /bin/sh: scripts/mod/modpost: No such file or directory make[3]: *** [__modpost] Error 127 make[2]: *** [modules] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [mdl] Error 1 make: *** [module] Error 2 !!! ERROR: x11-drivers/nvidia-drivers-1.0.8774 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile nvidia-drivers-1.0.8774.ebuild, line 175: Called linux-mod_src_compile linux-mod.eclass, line 469: Called die !!! 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, and the call stack if relevant. Portage 2.1.2_pre2-r8 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 x86_64) ================================================================= System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.5 Last Sync: Wed, 11 Oct 2006 18:00:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.2.3-r6, 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://lug.mtu.edu/gentoo " LINGUAS="en ja" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 64bit X alsa amd apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cpudetection crypt ctype cups dba dlloader doc dri dvd eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gcc64 gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog ivtv javascript jpeg jpeg2k kde kernel_linux lcms libg++ libwww linguas_en linguas_ja lirc lirc_devices_hauppauge mad memlimit mikmod mng motif mozilla mp3 mpeg mysql mythtv ncurses nls nptl nptlonly nvidia ogg openexr opengl oss pam pcre pdf pdflib perl png posix ppds pppd python qt quicktime readline reflection samba sdk sdl session simplexml slang soap sockets spell spl ssl swat symlink tcltk tcpd tiff tokenizer transcode transmitter truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga vorbis xml xml2 xmms xorg xsl xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Are you using genkernel?
(In reply to comment #3) > Are you using genkernel? > I have my own.
(In reply to comment #3) > Are you using genkernel? > Yes
If you're using genkernel, do --callback="emerge nvidia-drivers" when building your kernel. You can add other external modules during the callback, also. As for Josef, I'm not sure what "I have my own" means in this regard. Did you compile it yourself?
(In reply to comment #6) > If you're using genkernel, do --callback="emerge nvidia-drivers" when building > your kernel. You can add other external modules during the callback, also. > > As for Josef, I'm not sure what "I have my own" means in this regard. Did you > compile it yourself? > Thanks, that fixed my problem.
(In reply to comment #6) > As for Josef, I'm not sure what "I have my own" means in this regard. Did you > compile it yourself? > yes I compiled it only with make menuconf. But with new kernel 2.6.18 I compile it without problem, so I can`t reproduce bug now.
OK. I'm marking this as FIXED, then.