emerging nvidia-drivers for kernel 2.6.23.1 fails Reproducible: Always Steps to Reproduce: 1. install vanilla-sources-2.6.23.1 (from kernel.org) 2. symlink linux to linux-2.6.23.1 3. compile and install kernel+modules 4. emerge nvidia-drivers Actual Results: >>> Emerging (1 of 1) x11-drivers/nvidia-drivers-1.0.9639 to / * NVIDIA-Linux-x86-1.0-9639-pkg0.run RMD160 ;-) ... [ ok ] * NVIDIA-Linux-x86-1.0-9639-pkg0.run SHA1 ;-) ... [ ok ] * NVIDIA-Linux-x86-1.0-9639-pkg0.run SHA256 ;-) ... [ ok ] * NVIDIA-Linux-x86-1.0-9639-pkg0.run size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking NVIDIA-Linux-x86-1.0-9639-pkg0.run ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.23.1 * Checking for MTRR support ... [ ok ] >>> Unpacking source... Creating directory NVIDIA-Linux-x86-1.0-9639-pkg0 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-9639.............................................................................................................................. * Applying NVIDIA_glx-defines.patch ... [ ok ] * Applying NVIDIA_glx-glheader.patch ... [ ok ] * Applying NVIDIA_i2c-hwmon.patch ... [ ok ] * Converting Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ] >>> Source unpacked. >>> Compiling source in /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv ... * Preparing nvidia module NVIDIA: calling KBUILD... make CC=i686-pc-linux-gnu-gcc KBUILD_VERBOSE=1 -C /usr/src/linux M=/compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv modules make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false) mkdir -p /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/.tmp_versions rm -f /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/.tmp_versions/* make -f scripts/Makefile.build obj=/compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv echo \#define NV_COMPILER \"`i686-pc-linux-gnu-gcc -v 2>&1 | tail -n 1`\" > /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv_compiler.h i686-pc-linux-gnu-gcc -Wp,-MD,/compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=athlon -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -O -fno-common -msoft-float -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNVRM -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=9639 -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_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.o /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c: In function ‘nvos_create_alloc’: /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:332: error: ‘nv_pte_t_cache’ undeclared (first use in this function) /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:332: error: (Each undeclared identifier is reported only once /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:332: error: for each function it appears in.) /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c: In function ‘nvos_free_alloc’: /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:364: error: ‘nv_pte_t_cache’ undeclared (first use in this function) /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c: In function ‘nvidia_init_module’: /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1292: error: ‘nv_pte_t_cache’ undeclared (first use in this function) /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1292: error: too many arguments to function ‘kmem_cache_create’ /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1426: error: void value not ignored as it ought to be /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c: In function ‘nvidia_exit_module’: /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1453: error: void value not ignored as it ought to be /compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1557: error: ‘nv_pte_t_cache’ undeclared (first use in this function) make[3]: *** [/compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.o] Error 1 make[2]: *** [_module_/compile/portage/x11-drivers/nvidia-drivers-1.0.9639/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [module] Error 1 make: *** [module] Error 2 * * ERROR: x11-drivers/nvidia-drivers-1.0.9639 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * nvidia-drivers-1.0.9639.ebuild, line 212: Called linux-mod_src_compile * linux-mod.eclass, line 518: 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. * A complete build log is located at '/compile/portage/x11-drivers/nvidia-drivers-1.0.9639/temp/build.log'. * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-x11-drivers_-_nvidia-drivers-1.0.9639-29484.log" open_wr: /usr/src/linux-2.6.23.1/null.gcda open_wr: /usr/src/linux-2.6.23.1/null.gcda open_wr: /usr/src/linux-2.6.23.1/null.gcda open_wr: /usr/src/linux-2.6.23.1/null.gcda -------------------------------------------------------------------------------- * Messages for package x11-drivers/nvidia-drivers-1.0.9639: * * ERROR: x11-drivers/nvidia-drivers-1.0.9639 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * nvidia-drivers-1.0.9639.ebuild, line 212: Called linux-mod_src_compile * linux-mod.eclass, line 518: 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. * A complete build log is located at '/compile/portage/x11-drivers/nvidia-drivers-1.0.9639/temp/build.log'. * Expected Results: :-) # emerge --info Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22.6 i686) ================================================================= System uname: 2.6.22.6 i686 AMD Athlon(tm) XP 2600+ Timestamp of tree: Wed, 17 Oct 2007 03:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=i686 -pipe" CHOST="i686-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 /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=i686 -pipe" DISTDIR="/data/linux/gentoo/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="C" LINGUAS="en en_US en_GB nl de" MAKEOPTS="-j2" PKGDIR="/data/linux/gentoo/packages/amd_athlon-xp" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/compile" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl alsa apache2 apm berkdb bitmap-fonts cli cracklib crypt cups dri dvd dvdr dvdread encode esd fortran gdbm gif gnome gpm gstreamer gtk iconv imlib ipv6 isdnlog java jpeg ldap mad midi mikmod mmx mng mozilla mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt qt4 quicktime readline reflection samba sdl session spell spl sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vorbis wmf x86 xinerama xml xorg xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB nl de" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv nvidia v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
So use 96.43.01 *** This bug has been marked as a duplicate of bug 195425 ***
> So use 96.43.01 Should have been: So use sys-apps/sandbox-1.2.18.1-r1 and x11-drivers/nvidia-drivers-96.43.01 Thanx