Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342021 - x11-drivers/nvidia-drivers-256.53 fails to build against Linux kernel 2.6.36
Summary: x11-drivers/nvidia-drivers-256.53 fails to build against Linux kernel 2.6.36
Status: RESOLVED DUPLICATE of bug 341975
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL: http://blog.hosowicz.com/2010/08/15/n...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-21 14:12 UTC by Brant Gurganus
Modified: 2010-10-22 13:36 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brant Gurganus 2010-10-21 14:12:32 UTC
The kernel patch from Git commit b19dd42faf413b4705d4adb38521e82d73fa4249 visible at http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b19dd42faf413b4705d4adb38521e82d73fa4249 removes the ioctl operation. nvidia-drivers wants to link with this operation in its kernel interfaces. The blog post at http://blog.hosowicz.com/2010/08/15/nvidia-graphics-in-fresh-kernels suggests that you can remove the ioctl and set a definition to have it use the non-locking ioctl instead.

Reproducible: Always

Steps to Reproduce:
1. Set your kernel symlink to point to a 2.6.36 kernel.
2. Emerge "=x11-drivers/nvidia-drivers-256.53"
Actual Results:  
/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.c:426: error: unknown field ‘ioctl’ specified in initializer
/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.c:426: warning: initialization from incompatible pointer type
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
 * ERROR: x11-drivers/nvidia-drivers-256.53 failed:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux 		SYSOUT=/lib/modules/2.6.36-gentoo/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 * 
 * Call stack:
 *     ebuild.sh, line   47:  Called src_compile
 *   environment, line 4177:  Called linux-mod_src_compile
 *   environment, line 3087:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 			CROSS_COMPILE=${CHOST}- 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 		${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =x11-drivers/nvidia-drivers-256.53',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-256.53'.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/'



Expected Results:  
The module should build fine.

Portage 2.2_rc67-r2 (default/linux/amd64/2008.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.35-gentoo-r11 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-gentoo-r11-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.1.8
Timestamp of tree: Thu, 21 Oct 2010 05:30:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.5-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.1.8-r1
sys-apps/openrc:     0.6.1-r3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O3 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages installsources mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirrors.cs.wmich.edu/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alac alsa amd64 apache2 avahi bash-completion berkdb bzip2 cairo cdda cdr cjk cracklib crypt cups curl cvs cxx dbus dga djvu dri dvd dvdr dvdread eds encode esd exif expat fam ffmpeg fftw flac fontconfig gdbm gif gimp gmp gnome gnome-keyring gnutls gpm graphviz gsm gstreamer gtk hal iconv icu idn imagemagick imlib ipv6 jbig jpeg jpeg2k lame lcms libcaca libnotify libsamplerate mad mmap mmx mng modules mp3 mpeg msn mudflap multilib ncurses networkmanager nls nntp nptl nptlonly ogg openexr opengl openmp pam pch pcre pdf perl plotutils png policykit pppd pulseaudio python qt4 raw readline smp sndfile soap speex spell sqlite sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora threads tiff tk truetype unicode vcd vorbis wavpack wifi wmf x264 xattr xft xine xinerama xml xmp xorg xpm xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================

x11-drivers/nvidia-drivers-256.53 was built with the following:
USE="acpi gtk (multilib) test -custom-cflags" 
CFLAGS="-march=core2 -O2 -pipe -g"
CXXFLAGS="-march=core2 -O2 -pipe -g"


[ebuild   R   ] x11-drivers/nvidia-drivers-256.53  USE="acpi gtk (multilib) -custom-cflags"
Comment 1 Brant Gurganus 2010-10-21 14:13:12 UTC
 [32;01m*[0m CPV:  x11-drivers/nvidia-drivers-256.53
 [32;01m*[0m REPO: funtoo
 [32;01m*[0m USE:  acpi amd64 elibc_glibc gtk kernel_linux multilib test userland_GNU
 [32;01m*[0m Determining the location of the kernel source code
 [32;01m*[0m Found kernel source directory:
 [32;01m*[0m     /usr/src/linux
 [32;01m*[0m Found kernel object directory:
 [32;01m*[0m     /lib/modules/2.6.36-gentoo/build
 [32;01m*[0m Found sources for kernel version:
 [32;01m*[0m     2.6.36-gentoo
 [32;01m*[0m Checking for MTRR support ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-256.53.run to /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work ...
 [32;01m*[0m Applying 256.35-unified-arch.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work ...
 [32;01m*[0m Preparing nvidia module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.36-gentoo/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module 
NVIDIA: calling KBUILD...
make -C /lib/modules/2.6.36-gentoo/build \
	KBUILD_SRC=/usr/src/linux-2.6.36-gentoo \
	KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel" -f /usr/src/linux-2.6.36-gentoo/Makefile \
	modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/generated/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 /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_versions/*
make -f /usr/src/linux-2.6.36-gentoo/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel
(cat /dev/null;   echo kernel//var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nvidia.ko;) > /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/modules.order
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include -I/usr/src/linux-2.6.36-gentoo/arch/x86/include -Iinclude  -I/usr/src/linux-2.6.36-gentoo/include -include include/generated/autoconf.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"256.53\" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.nv_gvi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include -I/usr/src/linux-2.6.36-gentoo/arch/x86/include -Iinclude  -I/usr/src/linux-2.6.36-gentoo/include -include include/generated/autoconf.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"256.53\" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_gvi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_nv_gvi.o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv_gvi.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.nv-vm.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include -I/usr/src/linux-2.6.36-gentoo/arch/x86/include -Iinclude  -I/usr/src/linux-2.6.36-gentoo/include -include include/generated/autoconf.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"256.53\" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv-vm.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.os-agp.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include -I/usr/src/linux-2.6.36-gentoo/arch/x86/include -Iinclude  -I/usr/src/linux-2.6.36-gentoo/include -include include/generated/autoconf.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"256.53\" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_os-agp.o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/os-agp.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.os-interface.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include -I/usr/src/linux-2.6.36-gentoo/arch/x86/include -Iinclude  -I/usr/src/linux-2.6.36-gentoo/include -include include/generated/autoconf.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"256.53\" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_interface)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_os-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/os-interface.c
/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.c:426: error: unknown field ‘ioctl’ specified in initializer
/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.c:426: warning: initialization from incompatible pointer type
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
 [31;01m*[0m ERROR: x11-drivers/nvidia-drivers-256.53 failed:
 [31;01m*[0m   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux 		SYSOUT=/lib/modules/2.6.36-gentoo/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   47:  Called src_compile
 [31;01m*[0m   environment, line 4177:  Called linux-mod_src_compile
 [31;01m*[0m   environment, line 3087:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 						CROSS_COMPILE=${CHOST}- 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 						${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of 'emerge --info =x11-drivers/nvidia-drivers-256.53',
 [31;01m*[0m the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-256.53'.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/temp/environment'.
 [31;01m*[0m S: '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/'
Comment 2 Tolga Dalman 2010-10-22 09:14:16 UTC
Seems like bug #341975, no ?
Comment 3 Brant Gurganus 2010-10-22 13:36:50 UTC
Yeah, same issue. I wonder why I didn't find it when I was searching for duplicates.

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