Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152690 - nvidia-drivers-1.0-8776 fails to emerge with 2.6.19-rc kernels
Summary: nvidia-drivers-1.0-8776 fails to emerge with 2.6.19-rc kernels
Status: RESOLVED DUPLICATE of bug 156978
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.19
  Show dependency tree
 
Reported: 2006-10-24 12:10 UTC by Michael Rasenberger
Modified: 2006-12-03 05:29 UTC (History)
3 users (show)

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


Attachments
fix compilation issue (nvidia-drivers-8774-i2c.patch,488 bytes, patch)
2006-10-24 12:15 UTC, Michael Rasenberger
Details | Diff
improved (nvidia-drivers-8774-i2c-with-versioncheck.patch,954 bytes, patch)
2006-10-24 13:08 UTC, Michael Rasenberger
Details | Diff
Compilation fix nvidia-drivers-1.0.9626 / gentoo-sources-2.6.19 (nvidia-drivers-1.0.9626-linux-2.6.19.patch,252 bytes, patch)
2006-12-01 10:26 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rasenberger 2006-10-24 12:10:28 UTC
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 ..
Comment 1 Michael Rasenberger 2006-10-24 12:15:22 UTC
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
Comment 2 Michael Rasenberger 2006-10-24 13:08:13 UTC
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*
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-24 16:47:18 UTC
...and this is still needed with 2.6.19 and 8776, the current stable?
Comment 4 Michael Rasenberger 2006-10-24 22:32:55 UTC
Reproduced with 2.6.19-rc3 and 8776 (changed Bug summary accordingly).
Have to wait for 2.6.19 to test against.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-25 15:07:19 UTC
OK.  One last test.  Can you reproduce this with 9626, which is currently hard masked since it is BETA?
Comment 6 Michael Rasenberger 2006-10-26 05:32:26 UTC
9626 is working just fine with -rc3. So this means that when 9626 becomes stable 
before 2.6.19. everthing should be fine.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-26 06:08:31 UTC
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.
Comment 8 Maxx Twayne 2006-11-05 07:17:26 UTC
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)

Comment 9 Sven 2006-11-11 10:11:34 UTC
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.
Comment 10 John teBokkel 2006-11-18 18:48:56 UTC
(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
Comment 11 Dennis Schridde 2006-12-01 10:26:34 UTC
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.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-12-03 05:29:35 UTC

*** This bug has been marked as a duplicate of 156978 ***