I can compile nvidia-drivers with /usr/src/linux pointing to a gentoo-sources kernel, but when I point it to a mm-sources kernel; /var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/nv-i2c.c:26: error: unknown field 'slave_send' specified in initializer /var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/nv-i2c.c:27: error: unknown field 'slave_recv' specified in initializer make[3]: *** [/var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/usr/src/nv/nv-i2c.o] Error 1 make[2]: *** [_module_/var/tmp/portage/nvidia-drivers-1.0.8774/work/NVIDIA-Linux-x86_64-1.0-8774-pkg2/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 1546: Called dyn_compile ebuild.sh, line 937: 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. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-x11-drivers_-_nvidia-drivers-1.0.8774-14075.log" open_wr: /usr/src/linux-2.6.18-rc6-mm2/-.gcda --------------------------------------------------------------------------------
Created attachment 97263 [details] emerge --info
Unsupported kernel... http://www.gentoo.org/doc/en/gentoo-kernel.xml#doc_chap3
After hitting up nvidia's forums the suggestion was to delete lines 26 and 27 from the file usr/src/nv/nv-i2c.c. *** usr/src/nv/nv-i2c.c Wed Aug 2 05:21:28 2006 --- usr/src/nv/nv-i2c.c.new Sun Sep 17 13:34:25 2006 *************** *** 23,30 **** static struct i2c_algorithm nv_i2c_algo = { .master_xfer = nv_i2c_algo_xfer, .smbus_xfer = NULL, - .slave_send = NULL, - .slave_recv = NULL, .algo_control = nv_i2c_algo_control, .functionality = nv_i2c_algo_functionality, }; --- 23,28 ---- I modified the ebuild and through it in an overlay. emerged it and it still gave me the access violation summary... so i emerged without the sandbox and it compiled and installed. now X wont start. X Window System Version 7.0.0 Release Date: 21 December 2005 X Protocol Version 11, Revision 0, Release 7.0 Build Operating System:Linux 2.6.17-gentoo-r4 x86_64 Current Operating System: Linux Tyr 2.6.18-rc6-mm2 #1 SMP PREEMPT Sun Sep 17 02:12:55 Local time zone must be set-- x86_64 Build Date: 15 September 2006 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep 17 14:05:29 2006 (==) Using config file: "/etc/X11/xorg.conf" *** If unresolved symbols were reported above, they might not *** be the reason for the server aborting. Backtrace: 0: X(xf86SigHandler+0x82) [0x477152] 1: /lib/libc.so.6 [0x369662f5d0] 2: X(NumMotionEvents+0x12) [0x440672] 3: X(CreateConnectionBlock+0x53) [0x432453] 4: X(main+0x65d) [0x432fad] 5: /lib/libc.so.6(__libc_start_main+0xf4) [0x369661d134] 6: X(FontFileCompleteXLFD+0xa1) [0x432089] Fatal server error: Caught signal 11. Server aborting XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known processed) with 0 events remaining. Any ideas?
Created attachment 97278 [details] Patch to make nvidia-drivers to compile with mm-sources
patch fixes compile errors