Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akmod-nvidia fails to build on Fedora with Linux 5.8 #69

Closed
iWeaker opened this issue Sep 14, 2020 · 23 comments
Closed

Akmod-nvidia fails to build on Fedora with Linux 5.8 #69

iWeaker opened this issue Sep 14, 2020 · 23 comments

Comments

@iWeaker
Copy link
Contributor

iWeaker commented Sep 14, 2020

I leave a capture of the error that is appearing to me when I compile with the kernel, something is related to "mockbuild" or that the package does not have "description kmod-nvidia-5.8.9_tkg_pds"

I am not familiar with Fedora regarding how it handles its driver system.

@AdelKS what do you thing about that?

Captura de pantalla de 2020-09-14 12-15-12

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 15, 2020

Hello!

I have no good understanding of how akmod works but I know at least that it needs the kernel headers and devel (not sure about this one).

Have your friend made sure that the three RPM packets got properly installed ? Can you tell him to do ./install.sh uninstall-help and give you what it shows ?

@aukuste
Copy link

aukuste commented Sep 15, 2020

I've got the same issue as your friend. The log file in the screenshot is the exact same, but mine is in english.

Here's the log file in english:

2020/09/15 12:57:10 akmods: Building RPM using the command '/sbin/akmodsbuild --kernels 5.8.9_tkg_upds+ /usr/src/akmods/nvidia-kmod.latest'
warning: user mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
error: Package has no %description: kmod-nvidia-5.8.9_tkg_upds+
Installing /usr/src/akmods/nvidia-kmod.latest
Building target platforms: x86_64
Building for target x86_64
2020/09/15 12:57:11 akmodsbuild: * Rebuilding /usr/src/akmods/nvidia-kmod.latest for kernel(s) 5.8.9_tkg_upds+: warning: user mockbuild does not exist - using root
2020/09/15 12:57:11 akmodsbuild: warning: user mockbuild does not exist - using root
2020/09/15 12:57:11 akmodsbuild: error: Package has no %description: kmod-nvidia-5.8.9_tkg_upds+
2020/09/15 12:57:11 akmodsbuild: Installing /usr/src/akmods/nvidia-kmod.latest
2020/09/15 12:57:11 akmodsbuild: Building target platforms: x86_64
2020/09/15 12:57:11 akmodsbuild: Building for target x86_64
2020/09/15 12:57:11 akmodsbuild:
2020/09/15 12:57:11 akmods: Building rpms failed; see /var/cache/akmods/nvidia/450.66-1-for-5.8.9_tkg_upds+.failed.log for details

And here is the output from ./install.sh uninstall-help:

 -> List of installed custom tkg kernels: 
Installed Packages
kernel.x86_64                                                                    5.8.7-200.fc32                                                         @updates     
kernel.x86_64                                                                    5.8.8-200.fc32                                                         @updates     
kernel.x86_64                                                                    5.8.9_tkg_upds+-1                                                      @@commandline
kernel-core.x86_64                                                               5.8.6-201.fc32                                                         @updates     
kernel-core.x86_64                                                               5.8.7-200.fc32                                                         @updates     
kernel-core.x86_64                                                               5.8.8-200.fc32                                                         @updates     
kernel-debug-devel.x86_64                                                        5.8.8-200.fc32                                                         @updates     
kernel-devel.x86_64                                                              5.8.9_tkg_upds+-1                                                      @@commandline
kernel-headers.x86_64                                                            5.8.9_tkg_upds+-1                                                      @@commandline
kernel-modules.x86_64                                                            5.8.6-201.fc32                                                         @updates     
kernel-modules.x86_64                                                            5.8.7-200.fc32                                                         @updates     
kernel-modules.x86_64                                                            5.8.8-200.fc32                                                         @updates     
kernel-modules-extra.x86_64                                                      5.8.6-201.fc32                                                         @updates     
kernel-modules-extra.x86_64                                                      5.8.7-200.fc32                                                         @updates     
kernel-modules-extra.x86_64                                                      5.8.8-200.fc32                                                         @updates     
kernel-tools.x86_64                                                              5.8.8-200.fc32                                                         @updates     
kernel-tools-libs.x86_64                                                         5.8.8-200.fc32                                                         @updates     
 -> To uninstall a version, you should remove the kernel, kernel-headers and kernel-devel associated to it (if installed), with: 
 ->       sudo dnf remove --noautoremove kernel-VERSION kernel-devel-VERSION kernel-headers-VERSION
 ->        where VERSION is displayed in the second column
 -> exit cleanup done

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 15, 2020

Thanks @aukuste ! Can you join /var/cache/akmods/nvidia/450.66-1-for-5.8.9_tkg_upds+.failed.log too ?

@aukuste
Copy link

aukuste commented Sep 15, 2020

@AdelKS The contents of that file path is what is written in the first code block in my first message, so the last line of the log just references itself.

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 15, 2020

Oh got it! Thanks.

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 20, 2020

Hello @aukuste, can you attach what's in /usr/src/akmods/nvidia-kmod.latest. Maybe it can give some leads and hints. Thanks!

@aukuste
Copy link

aukuste commented Sep 20, 2020

@AdelKS
nvidia-kmod.zip
Had to zip it because of github.

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 20, 2020

Can you run this command manually and see what it gives ? Basically what is done automatically but with the --verbose option

akmodsbuild --kernels 5.8.9_tkg_upds+ --verbose /usr/src/akmods/nvidia-kmod.latest

Use sudo if needed I guess 🤔

EDIT: Oh maybe it's missing the -1 at the end of the kernel name, try again with this, if the previous trial fails:

akmodsbuild --kernels 5.8.9_tkg_upds+-1 --verbose /usr/src/akmods/nvidia-kmod.latest

@aukuste
Copy link

aukuste commented Sep 20, 2020

@AdelKS

* Rebuilding /usr/src/akmods/nvidia-kmod.latest for kernel(s) 5.8.9_tkg_upds+: warning: user mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
error: Package has no %description: kmod-nvidia-5.8.9_tkg_upds+
Installing /usr/src/akmods/nvidia-kmod.latest
Building target platforms: x86_64
Building for target x86_64

rpmbuild failed with errorcode 1; last 35 Lines of log:
--- 
warning: user mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
error: Package has no %description: kmod-nvidia-5.8.9_tkg_upds+
Installing /usr/src/akmods/nvidia-kmod.latest
Building target platforms: x86_64
Building for target x86_64
---

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 20, 2020

Crazy, it doesn't give any useful information, have you tried with the extra -1 that I suggested in my edit ?

@aukuste
Copy link

aukuste commented Sep 20, 2020

$ akmodsbuild --kernels 5.8.9_tkg_upds+-1 --verbose /usr/src/akmods/nvidia-kmod.latest
ERROR: Files needed for building modules against kernel
 5.8.9_tkg_upds+-1 could not be found as the following
 directories are missing:
 /usr/src/kernels/5.8.9_tkg_upds+-1/
 /usr/lib/modules/5.8.9_tkg_upds+-1/build/

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 20, 2020

And what do you have in /usr/src/kernels ?

@aukuste
Copy link

aukuste commented Sep 20, 2020

$ ls /usr/src/kernels
5.8.8-200.fc32.x86_64+debug  5.8.9-200.fc32.x86_64+debug  5.8.9_tkg_upds+

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 20, 2020

Okay, I unfortunately have no idea on what to do for now. Maybe someone else has an idea 🤔

@aukuste
Copy link

aukuste commented Sep 21, 2020

@AdelKS Unsure if it is related, but ever since installing the kernel-devel package for the tkg kernel, kernel-devel packages for the regular kernels (is mainline kernel the correct term?) haven't been able to install because of some sort of conflict with the tkg kernel-devel package apparantly.

Here's a snippet from my daily dnf upgrade (note the error text at the top of the output):

$ sudo dnf upgrade
...
 Problem: cannot install both kernel-devel-5.8.10-200.fc32.x86_64 and kernel-devel-5.8.9_tkg_upds+-1.x86_64
  - cannot install the best update candidate for package kernel-devel-5.8.9_tkg_upds+-1.x86_64
  - problem with installed package kernel-devel-5.8.9_tkg_upds+-1.x86_64
===============================================================================================================================
 Package                                     Architecture     Version                            Repository               Size
===============================================================================================================================
Installing:
 kernel                                      x86_64           5.8.10-200.fc32                    updates                  25 k
 kernel-core                                 x86_64           5.8.10-200.fc32                    updates                  33 M
 kernel-modules                              x86_64           5.8.10-200.fc32                    updates                  30 M
 kernel-modules-extra                        x86_64           5.8.10-200.fc32                    updates                 2.0 M
Upgrading:
 cups-filters                                x86_64           1.28.2-2.fc32                      updates                 839 k
 cups-filters-libs                           x86_64           1.28.2-2.fc32                      updates                 139 k
 iwl100-firmware                             noarch           39.31.5.1-112.fc32                 updates                 138 k
 iwl1000-firmware                            noarch           1:39.31.5.1-112.fc32               updates                 204 k
 iwl105-firmware                             noarch           18.168.6.1-112.fc32                updates                 224 k
 iwl135-firmware                             noarch           18.168.6.1-112.fc32                updates                 233 k
 iwl2000-firmware                            noarch           18.168.6.1-112.fc32                updates                 226 k
 iwl2030-firmware                            noarch           18.168.6.1-112.fc32                updates                 235 k
 iwl3160-firmware                            noarch           1:25.30.13.0-112.fc32              updates                 1.6 M
 iwl3945-firmware                            noarch           15.32.2.9-112.fc32                 updates                  73 k
 iwl4965-firmware                            noarch           228.61.2.24-112.fc32               updates                  87 k
 iwl5000-firmware                            noarch           8.83.5.1_1-112.fc32                updates                 289 k
 iwl5150-firmware                            noarch           8.24.2.2-112.fc32                  updates                 134 k
 iwl6000-firmware                            noarch           9.221.4.1-112.fc32                 updates                 156 k
 iwl6000g2a-firmware                         noarch           18.168.6.1-112.fc32                updates                 301 k
 iwl6000g2b-firmware                         noarch           18.168.6.1-112.fc32                updates                 303 k
 iwl6050-firmware                            noarch           41.28.5.1-112.fc32                 updates                 235 k
 iwl7260-firmware                            noarch           1:25.30.13.0-112.fc32              updates                  11 M
 libertas-usb8388-firmware                   noarch           2:20200918-112.fc32                updates                 100 k
 linux-firmware                              noarch           20200918-112.fc32                  updates                  99 M
 linux-firmware-whence                       noarch           20200918-112.fc32                  updates                  36 k
 mesa-dri-drivers                            i686             20.1.8-1.fc32                      updates                  19 M
 mesa-dri-drivers                            x86_64           20.1.8-1.fc32                      updates                  18 M
 mesa-filesystem                             i686             20.1.8-1.fc32                      updates                  17 k
 mesa-filesystem                             x86_64           20.1.8-1.fc32                      updates                  17 k
 mesa-libEGL                                 i686             20.1.8-1.fc32                      updates                 134 k
 mesa-libEGL                                 x86_64           20.1.8-1.fc32                      updates                 126 k
 mesa-libEGL-devel                           x86_64           20.1.8-1.fc32                      updates                  18 k
 mesa-libGL                                  i686             20.1.8-1.fc32                      updates                 195 k
 mesa-libGL                                  x86_64           20.1.8-1.fc32                      updates                 184 k
 mesa-libGL-devel                            i686             20.1.8-1.fc32                      updates                  34 k
 mesa-libOSMesa                              i686             20.1.8-1.fc32                      updates                 3.1 M
 mesa-libOSMesa                              x86_64           20.1.8-1.fc32                      updates                 2.9 M
 mesa-libOSMesa-devel                        i686             20.1.8-1.fc32                      updates                  19 k
 mesa-libOpenCL                              i686             20.1.8-1.fc32                      updates                 372 k
 mesa-libOpenCL                              x86_64           20.1.8-1.fc32                      updates                 356 k
 mesa-libOpenCL-devel                        i686             20.1.8-1.fc32                      updates                  15 k
 mesa-libgbm                                 i686             20.1.8-1.fc32                      updates                  48 k
 mesa-libgbm                                 x86_64           20.1.8-1.fc32                      updates                  46 k
 mesa-libglapi                               i686             20.1.8-1.fc32                      updates                  55 k
 mesa-libglapi                               x86_64           20.1.8-1.fc32                      updates                  58 k
 mesa-libxatracker                           x86_64           20.1.8-1.fc32                      updates                 1.7 M
 mesa-vulkan-drivers                         i686             20.1.8-1.fc32                      updates                 3.4 M
 mesa-vulkan-drivers                         x86_64           20.1.8-1.fc32                      updates                 3.4 M
 wine                                        x86_64           5.17-1.fc32                        updates                  12 k
 wine-alsa                                   i686             5.17-1.fc32                        updates                  77 k
 wine-alsa                                   x86_64           5.17-1.fc32                        updates                  80 k
 wine-arial-fonts                            noarch           5.17-1.fc32                        updates                 101 k
 wine-capi                                   i686             5.17-1.fc32                        updates                  16 k
 wine-capi                                   x86_64           5.17-1.fc32                        updates                  16 k
 wine-cms                                    i686             5.17-1.fc32                        updates                  44 k
 wine-cms                                    x86_64           5.17-1.fc32                        updates                  46 k
 wine-common                                 noarch           5.17-1.fc32                        updates                  64 k
 wine-core                                   i686             5.17-1.fc32                        updates                  72 M
 wine-core                                   x86_64           5.17-1.fc32                        updates                  74 M
 wine-courier-fonts                          noarch           5.17-1.fc32                        updates                  90 k
 wine-desktop                                noarch           5.17-1.fc32                        updates                 109 k
 wine-filesystem                             noarch           5.17-1.fc32                        updates                 1.5 M
 wine-fixedsys-fonts                         noarch           5.17-1.fc32                        updates                  24 k
 wine-fonts                                  noarch           5.17-1.fc32                        updates                  11 k
 wine-ldap                                   i686             5.17-1.fc32                        updates                  92 k
 wine-ldap                                   x86_64           5.17-1.fc32                        updates                  97 k
 wine-marlett-fonts                          noarch           5.17-1.fc32                        updates                  23 k
 wine-ms-sans-serif-fonts                    noarch           5.17-1.fc32                        updates                 1.6 M
 wine-openal                                 i686             5.17-1.fc32                        updates                  24 k
 wine-openal                                 x86_64           5.17-1.fc32                        updates                  27 k
 wine-opencl                                 i686             5.17-1.fc32                        updates                  30 k
 wine-opencl                                 x86_64           5.17-1.fc32                        updates                  32 k
 wine-pulseaudio                             i686             5.17-1.fc32                        updates                  69 k
 wine-pulseaudio                             x86_64           5.17-1.fc32                        updates                  70 k
 wine-small-fonts                            noarch           5.17-1.fc32                        updates                  26 k
 wine-symbol-fonts                           noarch           5.17-1.fc32                        updates                  37 k
 wine-system-fonts                           noarch           5.17-1.fc32                        updates                  30 k
 wine-systemd                                noarch           5.17-1.fc32                        updates                  12 k
 wine-tahoma-fonts                           noarch           5.17-1.fc32                        updates                 121 k
 wine-times-new-roman-fonts                  noarch           5.17-1.fc32                        updates                 108 k
 wine-twain                                  i686             5.17-1.fc32                        updates                  81 k
 wine-twain                                  x86_64           5.17-1.fc32                        updates                  86 k
 wine-webdings-fonts                         noarch           5.17-1.fc32                        updates                  22 k
 wine-wingdings-fonts                        noarch           5.17-1.fc32                        updates                  24 k
Installing dependencies:
 kernel-debug-devel                          x86_64           5.8.10-200.fc32                    updates                  13 M
Removing:
 kernel                                      x86_64           5.8.7-200.fc32                     @updates                  0  
 kernel-core                                 x86_64           5.8.7-200.fc32                     @updates                 74 M
 kernel-modules                              x86_64           5.8.7-200.fc32                     @updates                 29 M
 kernel-modules-extra                        x86_64           5.8.7-200.fc32                     @updates                1.9 M
Removing dependent packages:
 kmod-nvidia-5.8.7-200.fc32.x86_64           x86_64           3:450.66-1.fc32                    @@commandline            30 M
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 kernel-devel                                x86_64           5.8.10-200.fc32                    updates                  13 M

Transaction Summary
===============================================================================================================================
Install   5 Packages
Upgrade  80 Packages
Remove    5 Packages
Skip      1 Package

Total download size: 398 M
Is this ok [y/N]: n
Operation aborted.

And when adding --best --allowerasing to the dnf upgrade command, I simply get the same error message that was at the top of the previous command:

$ sudo dnf upgrade --best --allowerasing
Last metadata expiration check: 2:52:38 ago on Mon 21 Sep 2020 02:40:28 PM CEST.
Error: 
 Problem: cannot install the best update candidate for package kernel-devel-5.8.9_tkg_upds+-1.x86_64
  - cannot install both kernel-devel-5.8.10-200.fc32.x86_64 and kernel-devel-5.8.9_tkg_upds+-1.x86_64
  - problem with installed package kernel-devel-5.8.9_tkg_upds+-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

I find it very odd that the kernel-devel-5.8.10-200.fc32.x86_64 package is blocked from installing because of kernel-devel-5.8.9_tkg_upds+-1.x86_64. Surely that can't be right? They're different kernel versions.

For now I've removed the kernel-devel package for the tkg kernel since I would like to actually be able to build the nvidia driver for the regular mainline kernels.

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 21, 2020

Yea well apparently we can't keep more than one kernel-devel package, I tried to figure it out but in vain. So yes you will have to uninstall the tkg one to be able to install the original kernel-devel and compile the Nvidia thing for the mainline kernels (I do not know what's the correct naming...).

Also, I forgot how bleeding edge fedora is even though I have used it for years, I ended up thinking they trail behind for the updates just like Ubuntu. But they actually are as up to date as rolling releases, I wonder why they don't move to a rolling release way.

@aukuste
Copy link

aukuste commented Sep 21, 2020

Ah ok, well that's interesting that you can't keep more than one kernel-devel package. I'll see if I can figure out myself why the akmod-nvidia driver won't build using the tkg kernel-devel, though I've got zero experience with any of this.

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 21, 2020

Unfortunately I have zero knowledge about this stuff too. I tried to lookup this problem the interwebs but nothing useful came up, though a more thorough search can be done! My problem is that akmodsbuild isn't giving enough information to know what is wrong... This is off putting.

@aukuste
Copy link

aukuste commented Sep 21, 2020

My problem is that akmodsbuild isn't giving enough information to know what is wrong... This is off putting.

Indeed. The error log sure isn't very useful.

@iWeaker
Copy link
Contributor Author

iWeaker commented Sep 22, 2020

The problem is how AKMOD manages the drivers, they are not the drivers themselves, uninstall AKMOD-NVIDIA and install NVIDIA manually with DKMS and it works very well.

@aukuste
Copy link

aukuste commented Sep 22, 2020

Ah thank you. I'll test that tomorrow and report back with results.

@aukuste
Copy link

aukuste commented Sep 22, 2020

@iWeaker4you

I tried it just now and it worked perfectly. I removed the akmod-nvidia package and installed the nvidia drivers using the official installer and the tkg kernel works perfectly now. This is the guide I followed https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/ for anyone wanting to do the same as I did.

Thank you very much for the suggestion.

@AdelKS
Copy link
Collaborator

AdelKS commented Sep 22, 2020

Glad you could fix it! This issue can be considered solved :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants