Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Kernel-3.3.0 and Nvidia-drivers
Date: Thu, 22 Mar 2012 18:03:41
In Reply to: [gentoo-amd64] Kernel-3.3.0 and Nvidia-drivers by Frank Peters
On Mon, Mar 19, 2012 at 9:12 AM, Frank Peters <frank.peters@×××××××.net> wrote:
> Linux-3.3.0 is released and, as is my usual habit, I downloaded and compiled > the plain vanilla source. > > After rebooting to the command console, and before starting X, I needed > to re-install the nvidia-driver module for the new kernel.  Doing > "emerge nvidia-drivers" gave me the following error (the entire build log > is attached): > >>>> Source prepared. >>>> Configuring source in /tmp/portage-acc/tmp/portage/x11-drivers/nvidia-drivers-295.20-r1/work ... >>>> Source configured. >>>> Compiling source in /tmp/portage-acc/tmp/portage/x11-drivers/nvidia-drivers-295.20-r1/work ... > Preparing nvidia module > make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.3.0/build CC=x86_64-pc-linux-gnu-gcc clean module > > *** Unable to determine the target kernel version. *** > > make: *** [select_makefile] Error 1 > emake failed > ERROR: x11-drivers/nvidia-drivers-295.20-r1 failed (compile phase): >  Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=-m elf_x86_64  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux             SYSOUT=/lib/modules/3.3.0/build CC=x86_64-pc-linux-gnu-gcc clean module > > Call stack: >, line   85:  Called src_compile >  environment, line 3711:  Called linux-mod_src_compile >  environment, line 2668:  Called die > The specific snippet of code: >              eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" > > > The first part of the build log (see attached file) indicates that the > kernel source was correctly found (at /usr/src/linux), but for some > reason the make process fails. > > Could this be due to some changes in the kernel-3.3.0 tree? > > Frank Peters >
Hey Frank, I hadn't played with this since you first posted but I've been waiting for a new nvidia-driver to solve the problem and not seen it. As my laptop uses vanilla-sources I was stuck but also not really wanting to do the patch you did. Anyway, for kicks this morning I tried gentoo-sources-3.3.0 and found that nvidia-drivers builds & runs fine with that kernel. Don't know if this is helpful but thought I'd let you know that the gentoo devs seem to know how to fix this for their kernel. Cheers, Mark


Subject Author
Re: [gentoo-amd64] Kernel-3.3.0 and Nvidia-drivers Frank Peters <frank.peters@×××××××.net>