nvidia-drivers-1.0-8774 failed to emerge on 2.6.19-rc kernels due to a compilation error. Reproduced under -rc1 and -rc3. This error happens in nv-i2c.c nv-i2c.c:26: error: unknown field 'slave_send' specified in initializer nv-i2c.c:27: error: unknown field 'slave_recv' specified in initializer ... nvidia.ko failed to build! This is caused by changes in the i2c code since 2.6.19-rc1. Two fields in the structure 'i2c_algorithm' in include/linux/i2c.h were removed from kernel, but are initialized in nv-i2c.c in nvidia module. Patch is coming ..
Created attachment 100399 [details, diff] fix compilation issue The patch fixes the issue described above. Apply by setup an overlay for nvidia-drivers The change in the kernel is likely to become permanent, so maybe this patch should be added to the portage tree
Created attachment 100406 [details, diff] improved This patch is actually more suitable. It checks the kernel version so that the data is initialized properly also for kernels <2.6.19-rc*
...and this is still needed with 2.6.19 and 8776, the current stable?
Reproduced with 2.6.19-rc3 and 8776 (changed Bug summary accordingly). Have to wait for 2.6.19 to test against.
OK. One last test. Can you reproduce this with 9626, which is currently hard masked since it is BETA?
9626 is working just fine with -rc3. So this means that when 9626 becomes stable before 2.6.19. everthing should be fine.
Well, 9626 won't ever become stable. It's a beta, and has a few known issues that would prevent it from becoming stable. However, NVIDIA should be releasing actual release versions of the drivers soon.
Portage 2.1.1-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-mm3 i686) ================================================================= System uname: 2.6.18-mm3 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Gentoo Base System version 1.12.6 Last Sync: Sat, 04 Nov 2006 22:00:01 +0000 ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=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" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/" MAKEOPTS="-j3" 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.europe.gentoo.org/gentoo-portage" USE="x86 X alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd fam ffmpeg firefox fortran gdbm gif gnome gnome2 gpm gstreamer gtk gtk2 hal iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux ldap libg++ lm_sensors mad mikmod mmx mp3 mpeg mplayer ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl seamonkey session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nvidia video_cards_v4l video_cards_vesa vorbis win32codecs xinerama xml xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I got the same problem with a 2.6.18-mm3 kernel (i don't use it by choice but this is only one who accepted to boot)
With 2.6.19-rc5, the latest (and masked) beta nvidia-driver compiles fine - but only, if i disable the sandbox. Otherwise, i get some sandbox violations. I think, these violations are a rather new problems that needs to be worked around.
(In reply to comment #1) > Created an attachment (id=100399) [edit] > fix compilation issue > > The patch fixes the issue described above. > Apply by setup an overlay for nvidia-drivers > > The change in the kernel is likely to become permanent, so maybe this patch > should be added to the portage tree > how do I go about applying this patch? I am a bit of a n00b in this area
Created attachment 103151 [details, diff] Compilation fix nvidia-drivers-1.0.9626 / gentoo-sources-2.6.19 Fix for nvidia-drivers-1.0.9626 / gentoo-sources-2.6.19 is attached. This may also work for the 9629 drivers, but those are unusable for me (the GL segfault... :( ), so I didn't try.
*** This bug has been marked as a duplicate of 156978 ***