Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-25-09, 01:53 PM   #1
abc.mikey
Registered User
 
Join Date: Jan 2008
Posts: 20
Default Cant build or install on x86_64 kernel

I'm trying to install 180.60 on a x86_64 kernel and I can't get it to work. The kernel is a gentoo standard one 2.6.30-gentoo-r5.

When I run the installer I get:

Code:
Unable to determine version of kernel sources located in '/lib/modules/2.6.30-gentoo-r5/source'. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on red Hat Linux Systems, for example, be sure you have the 'kernel-source' or 'kernel-devel'RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.
and when I run the make in the usr/src/nv folder I get:

Code:
$make 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.30-gentoo-r5/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
I've checked all paths and they are correct.

What is it looking for in my kernel source directory that it's not finding?
abc.mikey is offline   Reply With Quote
Old 10-26-09, 07:57 AM   #2
abc.mikey
Registered User
 
Join Date: Jan 2008
Posts: 20
Default Re: Cant build or install on x86_64 kernel

I've tried every version of the driver form down in the 170's to 190.40 and they all exit with the same result.

I have a functioning kernel compiled from the source directory so what does it look for which I don't have?
abc.mikey is offline   Reply With Quote
Old 10-26-09, 06:49 PM   #3
abc.mikey
Registered User
 
Join Date: Jan 2008
Posts: 20
Default Re: Cant build or install on x86_64 kernel

I've now tried this with the 2.6.30-r3 kernel and the 2.6.31-r1 kernel both of which fail in exactly the same way. To rule out kernel config errors I tried installing on a fresh kernel using the -mrproper and -clean flags with genkernel to make sure that it wouldn't bring across an old kernel config and left the values at the defaults for my system. I also checked that the flags required for NVidia drivers had been set by genkernel and they had. Still nothing.

I'll attach the contents of my /usr/src/linux directory in case that helps.
Attached Files
File Type: txt linux.txt (2.3 KB, 80 views)
File Type: txt include.txt (1.2 KB, 88 views)
abc.mikey is offline   Reply With Quote
Old 10-27-09, 04:35 AM   #4
mdriftmeyer
Registered User
 
Join Date: Feb 2009
Posts: 40
Default Re: Cant build or install on x86_64 kernel

It may be looking for your Header files that list the actual version of your kernel under your /include path.

Make sure the GCC version you built your kernel is the default gcc you build against the nvidia kernel source.
mdriftmeyer is offline   Reply With Quote
Old 10-27-09, 01:04 PM   #5
abc.mikey
Registered User
 
Join Date: Jan 2008
Posts: 20
Default Re: Cant build or install on x86_64 kernel

My version.h is in place in my include folder

${SOURCES_DIR}/include/linux/version.h
abc.mikey is offline   Reply With Quote
Old 10-28-09, 05:53 AM   #6
abc.mikey
Registered User
 
Join Date: Jan 2008
Posts: 20
Default Re: Cant build or install on x86_64 kernel

I believe the problem was a broken profile / toolchain combination. For some reason - I have no idea how it happened - I seemed to end up on a profile which inclueded multilib which is what I was expecting but I ended up with a hardened toolchain and gcc.

This appeared to be causing a whole host of random problems. I did a very carefull reinstall of the whole system from scratch - from downloading the livecd and stage3 tarball downwards.

NVidia compiled and installed as expected with no problems.

Sory for taking up your time.
abc.mikey is offline   Reply With Quote
Old 10-29-09, 06:02 AM   #7
mdriftmeyer
Registered User
 
Join Date: Feb 2009
Posts: 40
Default Re: Cant build or install on x86_64 kernel

You aren't taking up anyone's time. Glad to see the system is working. I've experienced issues with just your exact situation.
mdriftmeyer is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:48 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.