Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371147 - x11-drivers/nvidia-drivers-270.41.19 does not build against kernel version 3.0.0
Summary: x11-drivers/nvidia-drivers-270.41.19 does not build against kernel version 3.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-11 13:12 UTC by Attila Jecs
Modified: 2011-06-14 22:54 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,4.06 KB, text/plain)
2011-06-11 13:13 UTC, Attila Jecs
Details
environment (environment,158.72 KB, text/plain)
2011-06-11 13:13 UTC, Attila Jecs
Details
patch to make nvidia-drivers 270.41.19 compile with linux-3.0 (kernel-3.0.patch,796 bytes, patch)
2011-06-14 19:55 UTC, ron widler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Jecs 2011-06-11 13:12:36 UTC
x11-drivers/nvidia-drivers-270.41.19 cannot intercept the new version number format

Reproducible: Always

Steps to Reproduce:
1.sudo emerge -1 nvidia-drivers --ignore-default-opts
2.
3.
Actual Results:  
Calculating dependencies                ... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-270.41.19
 * NVIDIA-Linux-x86_64-270.41.19.run RMD160 SHA1 SHA256 size ;-) ...                                                                                                                     [ ok ]
 * Package:    x11-drivers/nvidia-drivers-270.41.19
 * Repository: gentoo
 * Maintainer: cardoe@gentoo.org jer@gentoo.org,spock@gentoo.org
 * USE:        acpi amd64 custom-cflags elibc_glibc kernel_linux userland_GNU
 * FEATURES:   sandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.0.0-rc1/build
 * Found sources for kernel version:
 *     3.0.0-rc1
 * Checking for MTRR support ...                                                                                                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-270.41.19.run to /var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work ...
 * Applying 256.35-unified-arch.patch ...                                                                                                                                                [ ok ]
 * Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...                                                                                                                  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work ...
 * Preparing nvidia module
make -j3 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/3.0.0-rc1/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module 
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate                                                                                                                                           
output directory using either the "KBUILD_OUTPUT" or                                                                                                                                            
the "O" KBUILD parameter, make sure to specify this                                                                                                                                             
directory with the SYSOUT environment variable or with                                                                                                                                          
the equivalent nvidia-installer command line option.                                                                                                                                            
                                                                                                                                                                                                
Depending on where and how the kernel sources (or the                                                                                                                                           
kernel headers) were installed, you may need to specify                                                                                                                                         
their location with the SYSSRC environment variable or                                                                                                                                          
the equivalent nvidia-installer command line option.                                                                                                                                            
                                                                                                                                                                                                
*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1
emake failed
 * ERROR: x11-drivers/nvidia-drivers-270.41.19 failed (compile phase):
 *   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/3.0.0-rc1/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4035:  Called linux-mod_src_compile
 *   environment, line 2973:  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-270.41.19',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-270.41.19'.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work/'

>>> Failed to emerge x11-drivers/nvidia-drivers-270.41.19, Log file:

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/temp/build.log'

 * Messages for package x11-drivers/nvidia-drivers-270.41.19:

 * ERROR: x11-drivers/nvidia-drivers-270.41.19 failed (compile phase):
 *   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/3.0.0-rc1/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4035:  Called linux-mod_src_compile
 *   environment, line 2973:  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-270.41.19',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-270.41.19'.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work/'


Expected Results:  
as usually

welder@dreamer ~ $ emerge --info
Portage 2.1.10.1 (default/linux/amd64/10.0/no-multilib, gcc-4.5.2, glibc-2.13-r2, 2.6.39-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.0.2
Timestamp of tree: Sat, 11 Jun 2011 13:00:01 +0000
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.1-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-10.1 AdobeFlash-10"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs"
FEATURES="assume-digests binpkg-logs candy distlocks ebuild-locks fixlafiles fixpackages news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="hu_HU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en hu"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 accessibility acl acpi alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cli consolekit cracklib crypt custom-cflags cxx dar32 dbus declarative device-mapper dlloader dri dvd dvdr dvdread dynamic enca encode exif expat fam ffmpeg flac fontconfig fuse gd gdbm gif glibc-omitfp glitz gpm hashstyle hddtemp iconv icu id3tag imagemagick inotify jce jpeg jpeg2k kde kipi libnotify lm_sensors lzma mad mmap mmx mmxext modules mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp optimized-qmake pam pch pcre pdf perl phonon png policykit postgres ppds pppd private-headers python python3 qt3support qt4 quicktime readline secure-delete semantic-desktop session slang spell sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs system-sqlite tcpd theora threads thumbnail tiff truetype udev unicode usb vaapi vdpau vhosts vlc vorbis windeco x264 xattr xcomposite xinerama xml xml2 xmp xorg 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" 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 hu" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Attila Jecs 2011-06-11 13:13:22 UTC
Created attachment 276651 [details]
build.log

/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/temp/build.log
Comment 2 Attila Jecs 2011-06-11 13:13:54 UTC
Created attachment 276653 [details]
environment

/var/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/temp/environment
Comment 3 ron widler 2011-06-14 19:54:02 UTC
2 small patches are needed to get this to run, see here:

http://weltall.heliohost.org/wordpress/2011/05/30/linux-3-0-0-rc1-and-nvidia/

package compiles without problems then. i made a patch to get nvidia-drivers-275.09 to install with linux-3.0-rc3, but it seems to work with nvidia-drivers-270.41.19 just as well.
Comment 4 ron widler 2011-06-14 19:55:25 UTC
Created attachment 277063 [details, diff]
patch to make nvidia-drivers 270.41.19 compile with linux-3.0
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-14 22:54:46 UTC
275.09.07 is in the tree, and builds fine against a 3.0.0_rc3 kernel.