Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-drivers-390.* fails against 5.6 kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1206
Location: Stuttgart, Germany

PostPosted: Mon Apr 13, 2020 5:23 am    Post subject: nvidia-drivers-390.* fails against 5.6 kernel Reply with quote

The 5.6 kernel renamed a variable, and it's causing nvidia-drivers to fail to build with the following errors:

Code:
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-390.132-r2/work/kernel/nvidia/nv.c:13:
/var/tmp/portage/x11-drivers/nvidia-drivers-390.132-r2/work/kernel/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/tmp/portage/x11-drivers/nvidia-drivers-390.132-r2/work/kernel/common/inc/nv-linux.h:556:17: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
  556 |     void *ptr = ioremap_nocache(phys, size);
      |                 ^~~~~~~~~~~~~~~
      |                 ioremap_cache
/var/tmp/portage/x11-drivers/nvidia-drivers-390.132-r2/work/kernel/common/inc/nv-linux.h:556:17: warning: initialization of ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
cc1: some warnings being treated as errors


Is there a patch out yet to fix this? So far I haven't been able to find one.

Thanks for the help,

EE
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24067
Location: here

PostPosted: Mon Apr 13, 2020 5:49 am    Post subject: Reply with quote

Try this patch
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Ionen
l33t
l33t


Joined: 06 Dec 2018
Posts: 697

PostPosted: Mon Apr 13, 2020 5:49 am    Post subject: Reply with quote

Rather than try to patch, if using long term support nvidia drivers I'd strongly suggest to just stick with long term support kernels (latest branch being 5.4.x and is also the one marked stable in ::gentoo).
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1206
Location: Stuttgart, Germany

PostPosted: Mon Apr 13, 2020 6:47 am    Post subject: Reply with quote

Hi Ionen. I am not using LTS nvidia-drivers. Everything on my system is ~arch, with only very rare exceptions like python.

Cheers for the patch. I'll try it now.

EE

UPDATE: that patch worked, thanks!


Last edited by ExecutorElassus on Mon Apr 13, 2020 6:52 am; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
l33t
l33t


Joined: 06 Dec 2018
Posts: 697

PostPosted: Mon Apr 13, 2020 6:50 am    Post subject: Reply with quote

390 series is a LTS nvidia drivers with 2 years of support left after which nvidia will no longer update it, and they typically do not bother updating it as quickly for new kernels (440.82 is fixed for 5.6). So these kind of problems may happen again and again with newer kernels. Unless you need features from 5.6 it's just typically a better idea to stick with LTS kernels in this situation, up to you though :)
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1206
Location: Stuttgart, Germany

PostPosted: Mon Apr 13, 2020 6:54 am    Post subject: Reply with quote

Ah, sorry, now I understand the problem. I'm not using the 390 branch because It's LTS. I'm using it because that's the last branch that supports my GPU (a very old GTX580). I don't really have a choice for using it, aside from moving the whole system back to arch, or buying a new GPU. The latter might be a better plan, long-term.

Cheers,

EE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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