Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED - Emerge nvidia-drivers failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
MikeW
n00b
n00b


Joined: 03 Dec 2012
Posts: 2

PostPosted: Wed Dec 05, 2012 3:43 am    Post subject: SOLVED - Emerge nvidia-drivers failed Reply with quote

I have been trying to get the nvidia-drivers to build, and currently both stable and unstable versions fail to build (304.64, 310.19).

Code:

* Preparing nvidia module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.5.7-gentoo/build 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
 * ERROR: x11-drivers/nvidia-drivers-310.19 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-310.19'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-310.19'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-310.19/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-310.19/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-310.19/work/kernel'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-310.19/work/'

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

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



The message above "*** Unable to determine the target kernel version. ***" interesting. I have checked and the link in /usr/src/ is correct, and "eselect kernel list" also shows the correct and only kernel on the system. I may be missing something here but I'm not sure what.

Does anyone have any ideas on this one?


Last edited by MikeW on Wed Dec 05, 2012 4:31 am; edited 1 time in total
Back to top
View user's profile Send private message
MikeW
n00b
n00b


Joined: 03 Dec 2012
Posts: 2

PostPosted: Wed Dec 05, 2012 4:31 am    Post subject: Reply with quote

Of course I solved this myself after posting the question. :)

As it turns the kernel config was not in sync with the installed kernel. Running "genkernel all" again fixed the problem and allowed nvidia-driver compile to complete.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum