Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 817824

Summary: unable to compile modules for old NVIDIA with kernel 5.14+
Product: Gentoo Linux Reporter: Oleksa <leo>
Component: Current packagesAssignee: Ionen Wolkens <ionen>
Status: RESOLVED INVALID    
Severity: normal CC: gentoo, leo, soap
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build.log
Emerge_Info

Description Oleksa 2021-10-12 06:52:31 UTC
Hello there!

It is unable to compile modules for old NVIDIA card like my:
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [NVS 5400M] (rev ff)

Issue started with kernel 5.14+


/var/tmp/portage/x11-drivers/nvidia-drivers-390.144/work/kernel/nvidia/os-interface.c: In function ‘os_delay’:
/var/tmp/portage/x11-drivers/nvidia-drivers-390.144/work/kernel/nvidia/os-interface.c:583:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
  583 |         current->state = TASK_INTERRUPTIBLE;
      |                  ^~~~~
      |                  __state
make[2]: *** [scripts/Makefile.build:271: /var/tmp/portage/x11-drivers/nvidia-drivers-390.144/work/kernel/nvidia/os-interface.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Please, release patch for old drives line as nvidia-drivers-390.144

Thanks!
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-12 06:54:19 UTC
Can you please attach the full build.log and emerge --info?
Comment 2 Oleksa 2021-10-12 07:12:12 UTC
Created attachment 744537 [details]
Build.log
Comment 3 Oleksa 2021-10-12 07:12:32 UTC
Created attachment 744540 [details]
Emerge_Info
Comment 4 Oleksa 2021-10-12 07:12:46 UTC
Sure please see attached
Comment 5 Emily Rowlands 2021-10-12 09:03:23 UTC
At the start of your log file the message states:

 * Kernel 5.14 is either known to break this version of nvidia-drivers
 * or was not tested with it. It is recommended to use one of:
 *   <=sys-kernel/gentoo-kernel-5.13
 *   <=sys-kernel/gentoo-sources-5.13
 * You are free to try or use /etc/portage/patches, but support will
 * not be given and issues wait until NVIDIA releases a fixed version.
 *
 * Do _not_ file a bug report if run into issues.
Comment 6 Andreas Sturmlechner gentoo-dev 2021-10-12 09:40:58 UTC
^