| View previous topic :: View next topic |
| Author |
Message |
tranquilcool Veteran

Joined: 25 Mar 2005 Posts: 1220
|
Posted: Thu Nov 06, 2014 8:52 am Post subject: SOLVED Nvidia-drivers fails |
|
|
for some reasons, nvidia-drivers of the 340 series fails with all kernels after
world update. i have tried to trace the culprit package with no success.
/usr/src/linux-3.16.6-geek/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-340.58/work/kernel/nv.c:13:0:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.58/work/kernel/nv-linux.h: At top level:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.58/work/kernel/nv-linux.h:199:2: error: #error "This driver requires the ability to change memory types!"
#error "This driver requires the ability to change memory types!"
^
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-340.58/work/kernel/nv.c:13:0:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.58/work/kernel/nv-linux.h:306:6: warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined [-Wundef]
#if (NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 6) _________________ this is a strange strange world.
Last edited by tranquilcool on Fri Nov 07, 2014 6:48 pm; edited 1 time in total |
|
| Back to top |
|
 |
arnvidr l33t


Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Thu Nov 06, 2014 1:23 pm Post subject: |
|
|
I have the same problem after updating world today. My initial errors are identical to the ones posted above, but there are lots of errors after this as well | Code: | /var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:316:2: error: #error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
#error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
^
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:744:2: error: #error "NV_KMEM_CACHE_CREATE() undefined (kmem_cache_create() unavailable)!"
#error "NV_KMEM_CACHE_CREATE() undefined (kmem_cache_create() unavailable)!"
^
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:802:2: error: #error "NV_VMAP() undefined (vmap() unavailable)!"
#error "NV_VMAP() undefined (vmap() unavailable)!"
^
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-chrdev.c:15:0:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:859:2: error: #error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function() unavailable)!"
#error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function() unavailable)!"
^
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv.c:13:0:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h: At top level:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:201:2: error: #error "This driver requires the ability to change memory types!"
#error "This driver requires the ability to change memory types!"
^
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:879:2: error: #error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
#error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
^
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h: In function ‘nv_execute_on_all_cpus’:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:888:5: error: implicit declaration of function ‘NV_ON_EACH_CPU’ [-Werror=implicit-function-declaration]
ret = NV_ON_EACH_CPU(func, info, 1);
^
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h: At top level:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:1182:2: error: #error "console lock api unrecognized!."
#error "console lock api unrecognized!."
^
/var/tmp/portage/x11-drivers/nvidia-drivers-340.46/work/kernel/nv-linux.h:1623:14: error: #error "No known allocation function for sg_table present!"
#error "No known allocation function for sg_table present!"
^
cc1: some warnings being treated as errors | and even more, including some repeats. I have no idea what could be causing this, rebuilding the already installed nvidia-driver against the currently running kernel gives the same errors. _________________
|
|
| Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7470
|
|
| Back to top |
|
 |
steveL Watchman

Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Thu Nov 06, 2014 2:43 pm Post subject: |
|
|
| krinn wrote: | http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-340.46.ebuild?r1=1.1&r2=1.2
so kernel 3.18 or no chocolat guys. |
That's saying it works with kernels less than 3.18, ie: up to 3.17.x
All they've done is bump the top of the range. |
|
| Back to top |
|
 |
Yamakuzure Advocate


Joined: 21 Jun 2006 Posts: 2285 Location: Adendorf, Germany
|
Posted: Thu Nov 06, 2014 2:44 pm Post subject: |
|
|
| krinn wrote: | http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-340.46.ebuild?r1=1.1&r2=1.2
so kernel 3.18 or no chocolat guys. | This means that you must not have a kernel of version 3.18 or above. Everything below is supported.
But, why are you trying nvidia-drivers-340.58 ?
nvidia-drivers-343.22-r2 is stable and compiled fine on my system with geek-sources-3.16.7 installed. Even uvm now works fine. | Code: | # uname -srvp
Linux 3.16.7-geek #4 ZEN SMP Thu Nov 6 11:01:39 CET 2014 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
# lsmod | grep nvidia
nvidia_uvm 36019 0
nvidia 10998947 1 nvidia_uvm
# modinfo nvidia | grep version
version: 343.22 |
_________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Last edited by Yamakuzure on Thu Nov 06, 2014 2:55 pm; edited 1 time in total |
|
| Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7470
|
Posted: Thu Nov 06, 2014 2:47 pm Post subject: |
|
|
ok sorry then
you loves too much chocolat |
|
| Back to top |
|
 |
tranquilcool Veteran

Joined: 25 Mar 2005 Posts: 1220
|
Posted: Thu Nov 06, 2014 6:16 pm Post subject: |
|
|
| Yamakuzure wrote: | | krinn wrote: | http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-340.46.ebuild?r1=1.1&r2=1.2
so kernel 3.18 or no chocolat guys. | This means that you must not have a kernel of version 3.18 or above. Everything below is supported.
But, why are you trying nvidia-drivers-340.58 ?
nvidia-drivers-343.22-r2 is stable and compiled fine on my system with geek-sources-3.16.7 installed. Even uvm now works fine. | Code: | # uname -srvp
Linux 3.16.7-geek #4 ZEN SMP Thu Nov 6 11:01:39 CET 2014 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
# lsmod | grep nvidia
nvidia_uvm 36019 0
nvidia 10998947 1 nvidia_uvm
# modinfo nvidia | grep version
version: 343.22 |
|
nvidia-drivers above 340 do not support all cards. 340 or 343 is not the problem at all.
the problems is nvidia doesn't build with any kernel after a world update.
nobody seems to figure out which package in the world update is the culprit. it doesn't
compile even for the kernel it compiled before the world update.
bellow is the bug report.
https://bugs.gentoo.org/show_bug.cgi?id=528108
no known solutions so far. _________________ this is a strange strange world. |
|
| Back to top |
|
 |
arnvidr l33t


Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Fri Nov 07, 2014 10:35 am Post subject: |
|
|
Version of nvidia-drivers and version of the kernel don't seem to matter. What worked before doesn't work any more. I tried downgrading linux-headers, as they were updated in the last world update, but no change. _________________
|
|
| Back to top |
|
 |
Yamakuzure Advocate


Joined: 21 Jun 2006 Posts: 2285 Location: Adendorf, Germany
|
Posted: Fri Nov 07, 2014 2:32 pm Post subject: |
|
|
| arnvidr wrote: | | Version of nvidia-drivers and version of the kernel don't seem to matter. What worked before doesn't work any more. I tried downgrading linux-headers, as they were updated in the last world update, but no change. | The ebuild just doesn't stop working for *some* while still working for others out of a bad mood.
There must be a reason to this.
Which versions of gcc, glibc and binutils are you using? | Code: | ~ $ eix -I -c "(linux-headers|gcc|glibc|binutils)"
[I] sys-devel/binutils (2.24-r3@06.11.2014): Tools necessary to build programs
[I] sys-devel/binutils-config (3-r3@06.11.2014): Utility to change the binutils version being used
[I] sys-devel/gcc (4.9.2(4.9)@03.11.2014): The GNU Compiler Collection
[I] sys-devel/gcc-config (1.8@06.11.2014): utility to manage compilers
[I] sys-kernel/linux-headers (3.16@06.11.2014): Linux system headers
[I] sys-libs/glibc (2.19-r1(2.2)@07.11.2014): GNU libc6 (also called glibc2) C library
[I] x11-misc/gccmakedep (1.0.2-r1@07.11.2014): create dependencies in makefiles using 'gcc -M'
|
_________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
| Back to top |
|
 |
Yamakuzure Advocate


Joined: 21 Jun 2006 Posts: 2285 Location: Adendorf, Germany
|
Posted: Fri Nov 07, 2014 2:56 pm Post subject: |
|
|
Something else:
What does your /bin/sh link to? Which version and USE flags? _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
| Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7470
|
Posted: Fri Nov 07, 2014 3:40 pm Post subject: |
|
|
By logic it should be the latest change, so the new constify patch (bug #482784).
Are you using pax kernel so? |
|
| Back to top |
|
 |
tranquilcool Veteran

Joined: 25 Mar 2005 Posts: 1220
|
Posted: Fri Nov 07, 2014 6:27 pm Post subject: |
|
|
| Yamakuzure wrote: | | arnvidr wrote: | | Version of nvidia-drivers and version of the kernel don't seem to matter. What worked before doesn't work any more. I tried downgrading linux-headers, as they were updated in the last world update, but no change. | The ebuild just doesn't stop working for *some* while still working for others out of a bad mood.
There must be a reason to this.
Which versions of gcc, glibc and binutils are you using? | Code: | ~ $ eix -I -c "(linux-headers|gcc|glibc|binutils)"
[I] sys-devel/binutils (2.24-r3@06.11.2014): Tools necessary to build programs
[I] sys-devel/binutils-config (3-r3@06.11.2014): Utility to change the binutils version being used
[I] sys-devel/gcc (4.9.2(4.9)@03.11.2014): The GNU Compiler Collection
[I] sys-devel/gcc-config (1.8@06.11.2014): utility to manage compilers
[I] sys-kernel/linux-headers (3.16@06.11.2014): Linux system headers
[I] sys-libs/glibc (2.19-r1(2.2)@07.11.2014): GNU libc6 (also called glibc2) C library
[I] x11-misc/gccmakedep (1.0.2-r1@07.11.2014): create dependencies in makefiles using 'gcc -M'
|
|
eix -I -c "(linux-headers|gcc|glibc|binutils)"
dev-util/colorgcc (1.3.2-r5@07/27/2014): Adds color to gcc output
[I] sys-devel/binutils (2.24-r3@11/05/2014): Tools necessary to build programs
[I] sys-devel/binutils-config (4@11/07/2014): Utility to change the binutils version being used
[I] sys-devel/gcc (4.9.2(4.9)@11/05/2014): The GNU Compiler Collection
[I] sys-devel/gcc-config (1.8@11/07/2014): utility to manage compilers
[I] sys-kernel/linux-headers (3.17-r1@11/04/2014): Linux system headers
[I] sys-libs/glibc (2.20(2.2)@11/06/2014): GNU libc6 (also called glibc2) C library
ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Nov 5 01:06 /bin/sh -> bash
beats me. it just fails for all kernels.
not using pax kernel.
SOLVED
unbelievable. it builds with FEATURES="-ccache" _________________ this is a strange strange world. |
|
| Back to top |
|
 |
229566 Tux's lil' helper

Joined: 16 Aug 2010 Posts: 127
|
Posted: Fri Nov 07, 2014 7:45 pm Post subject: |
|
|
| tranquilcool wrote: |
SOLVED
unbelievable. it builds with FEATURES="-ccache" |
Well, if I'm not mistaken there's a huge warning wrt ccache that such things will happen... I've disabled ccache some time ago because it was failing a lot of builds, and haven't really noticed any difference in compilation speed. Might be because I don't pay attention, I run emerge and go about my business If you ask me, ccache should be unstable'd with a warning on installation (actually I think there IS a warning on installation? Can't remember). |
|
| Back to top |
|
 |
tranquilcool Veteran

Joined: 25 Mar 2005 Posts: 1220
|
Posted: Fri Nov 07, 2014 8:24 pm Post subject: |
|
|
| GrueXYZ wrote: | | tranquilcool wrote: |
SOLVED
unbelievable. it builds with FEATURES="-ccache" |
Well, if I'm not mistaken there's a huge warning wrt ccache that such things will happen... I've disabled ccache some time ago because it was failing a lot of builds, and haven't really noticed any difference in compilation speed. Might be because I don't pay attention, I run emerge and go about my business If you ask me, ccache should be unstable'd with a warning on installation (actually I think there IS a warning on installation? Can't remember). |
sure, i have just done away with it. edited /etc/profile too. _________________ this is a strange strange world. |
|
| Back to top |
|
 |
Yamakuzure Advocate


Joined: 21 Jun 2006 Posts: 2285 Location: Adendorf, Germany
|
Posted: Fri Nov 07, 2014 8:55 pm Post subject: |
|
|
I have ccache enabled, too. But I had it cleare a few days ago because I suspected it to be responsible for mariadb-5 failing to build. (But the culprit was the gold linker I used.)
Great that it worked for you. _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
| Back to top |
|
 |
NympH n00b

Joined: 10 Mar 2009 Posts: 5
|
Posted: Fri Nov 07, 2014 9:14 pm Post subject: |
|
|
Confirmed, disabling ccache works!  |
|
| Back to top |
|
 |
techie705 n00b


Joined: 01 Apr 2006 Posts: 45 Location: Kenosha, WI
|
Posted: Wed Nov 12, 2014 4:33 pm Post subject: |
|
|
| I can also confirm that disabling ccache works. |
|
| Back to top |
|
 |
|