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
Message-Id: CAK2H+edPXevXQpR09mg4Zv2-3iQd6Hpw1o4VLxJxnxTkFPzCpw@mail.gmail.com
In Reply to: [gentoo-amd64] Kernel-3.3.0 and Nvidia-drivers by Frank Peters
1 On Mon, Mar 19, 2012 at 9:12 AM, Frank Peters <frank.peters@×××××××.net> wrote:
2 > Linux-3.3.0 is released and, as is my usual habit, I downloaded and compiled
3 > the plain vanilla source.
4 >
5 > After rebooting to the command console, and before starting X, I needed
6 > to re-install the nvidia-driver module for the new kernel.  Doing
7 > "emerge nvidia-drivers" gave me the following error (the entire build log
8 > is attached):
9 >
10 >>>> Source prepared.
11 >>>> Configuring source in /tmp/portage-acc/tmp/portage/x11-drivers/nvidia-drivers-295.20-r1/work ...
12 >>>> Source configured.
13 >>>> Compiling source in /tmp/portage-acc/tmp/portage/x11-drivers/nvidia-drivers-295.20-r1/work ...
14 > Preparing nvidia module
15 > 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
16 >
17 > *** Unable to determine the target kernel version. ***
18 >
19 > make: *** [select_makefile] Error 1
20 > emake failed
21 > ERROR: x11-drivers/nvidia-drivers-295.20-r1 failed (compile phase):
22 >  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
23 >
24 > Call stack:
25 >    ebuild.sh, line   85:  Called src_compile
26 >  environment, line 3711:  Called linux-mod_src_compile
27 >  environment, line 2668:  Called die
28 > The specific snippet of code:
29 >              eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"
30 >
31 >
32 > The first part of the build log (see attached file) indicates that the
33 > kernel source was correctly found (at /usr/src/linux), but for some
34 > reason the make process fails.
35 >
36 > Could this be due to some changes in the kernel-3.3.0 tree?
37 >
38 > Frank Peters
39 >
40
41 Hey Frank,
42 I hadn't played with this since you first posted but I've been
43 waiting for a new nvidia-driver to solve the problem and not seen it.
44 As my laptop uses vanilla-sources I was stuck but also not really
45 wanting to do the patch you did.
46
47 Anyway, for kicks this morning I tried gentoo-sources-3.3.0 and
48 found that nvidia-drivers builds & runs fine with that kernel.
49
50 Don't know if this is helpful but thought I'd let you know that the
51 gentoo devs seem to know how to fix this for their kernel.
52
53 Cheers,
54 Mark

Replies

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