Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Problem nvidia drivers :Unableto determine the target kernel

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

Problem nvidia drivers :Unableto determine the target kernel

  • Quote

Post by Pes88 » Sat Oct 24, 2009 7:42 pm

As the title says, I have some troubles with the official nvidia drivers, if I compile them the following error occurs:

Code: Select all

localhost ~ # emerge -avt nvidia-drivers
 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.                         
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild  N    ] x11-drivers/nvidia-drivers-180.60  USE="acpi (multilib) -custom-cflags -gtk" 0 kB                                                                             
Total: 1 package (1 new), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-180.60
 * NVIDIA-Linux-x86_64-180.60-pkg2.run RMD160 SHA1 SHA256 size ;-) ...          [ ok ]
 * checking ebuild checksums ;-) ...                                            [ ok ]
 * checking auxfile checksums ;-) ...                                           [ ok ]
 * checking miscfile checksums ;-) ...                                          [ ok ]
 * Determining the location of the kernel source code                                 
 * Found kernel source directory:                                                     
 *     /usr/src/linux                                                                 
 * Found kernel object directory:                                                     
 *     /lib/modules/2.6.31-gentoo-r3/build                                           
 * Found sources for kernel version:                                                 
 *     2.6.31-gentoo-r3                                                               
 * Checking for MTRR support ...                                                 [ ok ]
>>> Unpacking source...                                                               
>>> Unpacking NVIDIA-Linux-x86_64-180.60-pkg2.run to /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work/NVIDIA-Linux-x86_64-180.60-pkg2                                 
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work         
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work/NVIDIA-Linux-x86_64-180.60-pkg2 ...                                                           
 * Applying NVIDIA_glx-defines.patch ...                                         [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...                                        [ ok ]
 * Converting NVIDIA-Linux-x86_64-180.60-pkg2/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ...                                                              [ ok ]
>>> Source prepared.                                                                   
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work/NVIDIA-Linux-x86_64-180.60-pkg2 ...                                                         
>>> Source configured.                                                                 
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-180.60/work/NVIDIA-Linux-x86_64-180.60-pkg2 ...                                                           
 * Preparing nvidia module                                                             
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc [b]CROSS_COMPILE=x86_64-pc-linux-gnu- [/b]LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.31-gentoo-r3/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.   
[b]*** Unable to determine the target kernel version. ***[/b]
[b]make: *** [select_makefile] Error 1[/b]
 *                                 
 * ERROR: x11-drivers/nvidia-drivers-180.60 failed.
 * Call stack:                                     
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3965:  Called linux-mod_src_compile
 *             environment, line 2962:  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}";                                 
 *  The die message:                                                                   
 *   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/2.6.31-gentoo-r3/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module               
 *                                                                                     
 * If you need support, post the topmost build error, and the call stack if relevant. 
 * A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/build.log'.                                                                   
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/environment'.                                                           
 *                                                                                     
>>> Failed to emerge x11-drivers/nvidia-drivers-180.60, Log file:
>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/build.log'
 * Messages for package x11-drivers/nvidia-drivers-180.60:
 *
 * ERROR: x11-drivers/nvidia-drivers-180.60 failed.
 * Call stack:                                     
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3965:  Called linux-mod_src_compile
 *             environment, line 2962:  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}";
 *  The die message:
 *   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/2.6.31-gentoo-r3/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-180.60/temp/environment'. 
la prima: Why does the error "make: *** [select_makefile] Error 1" appear?
Is CROSS_COMPILE=x86_64-pc-linux-gnu- corret??
As you can notice the main problem is: "Unable to determine the target kernel version" ! But I use eselect to select the kernel:

Code: Select all

Available kernel symlink targets:
  [1]   linux-2.6.30-gentoo-r5
  [2]   linux-2.6.31-gentoo-r3 *
I tried using both...
I post other parameters to be more exhaustive:
uname -a :

Code: Select all

Linux localhost 2.6.31-gentoo-r3 #1 SMP Thu Oct 22 11:32:03 Local time zone must be set--see zic  x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ AuthenticAMD GNU/Linux
uname -r :

Code: Select all

2.6.31-gentoo-r3
ls /usr/src/linux

Code: Select all

COPYING        Makefile        block     include  mm        sound
CREDITS        Module.symvers  crypto    init     net       tools
Documentation  README          drivers   ipc      samples   usr
Kbuild         REPORTING-BUGS  firmware  kernel   scripts   virt
MAINTAINERS    arch            fs        lib      security
readlink /usr/src/linux

Code: Select all

linux-2.6.31-gentoo-r3
Top
forkboy
Apprentice
Apprentice
User avatar
Posts: 200
Joined: Wed Nov 24, 2004 5:32 pm
Location: Blackpool, UK

  • Quote

Post by forkboy » Sat Oct 24, 2009 8:01 pm

The stable nvidia-drivers doesn't build with the ~arch kernel, currently the ~arch nvidia-driver version is 185.18.36-r1, use this.
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sat Oct 24, 2009 8:08 pm

Someone else had a similar problem.

What does

Code: Select all

gcc-config -l
return
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Sat Oct 24, 2009 8:35 pm

The stable nvidia-drivers doesn't build with the ~arch kernel, currently the ~arch nvidia-driver version is 185.18.36-r1, use this.
I tried these versions :

Code: Select all

180.60        on kernel 30 
185.18.36   on kernel 31 and zen-kernel 
190.42        on kernel 31 and zen-kernel
gcc-config -l

Code: Select all

[1] x86_64-pc-linux-gnu-4.3.4 * 
[2] x86_64-pc-linux-gnu-4.3.4 -hardenednopie 
[3] x86_64-pc-linux-gnu-4.3.4 -vanilla
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sat Oct 24, 2009 8:37 pm

Pes88 wrote:
The stable nvidia-drivers doesn't build with the ~arch kernel, currently the ~arch nvidia-driver version is 185.18.36-r1, use this.
I tried these versions :

Code: Select all

180.60        on kernel 30 
185.18.36   on kernel 31 and zen-kernel 
190.42        on kernel 31 and zen-kernel
gcc-config -l

Code: Select all

[1] x86_64-pc-linux-gnu-4.3.4 * 
[2] x86_64-pc-linux-gnu-4.3.4 -hardenednopie 
[3] x86_64-pc-linux-gnu-4.3.4 -vanilla
I was pretty sure you were going to report that type of gcc-config

"gcc-config 2" and try the emerge again ( I believe that is what the other person did to get it to compile)
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Sat Oct 24, 2009 8:42 pm

Yes! Now all ok...
Many thanks!!!!!!
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sat Oct 24, 2009 8:43 pm

Once it emerges fine, then reset "gcc-config 1" to where it was.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Sat Oct 24, 2009 8:49 pm

ok!!!
but why?
What is the difference???
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sat Oct 24, 2009 10:06 pm

Pes88 wrote:ok!!!
but why?
What is the difference???
Well, you have compiled everything else with the gcc-config 1 version
so I would stay with that, just to be safe.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
Post Reply

9 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic