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

akmods fails on Fedora with Nvidia drivers (Package has no %description) #375

Closed
Puncia opened this issue Dec 1, 2021 · 6 comments
Closed

Comments

@Puncia
Copy link

Puncia commented Dec 1, 2021

Hi, I've been trying to install 5.15.5 but akmods is unable to build the rpms for my Nvidia drivers.

> cat /var/cache/akmods/nvidia-470xx/470.86-1-for-5.15.5_tkg_mara_venier.failed.log
2021/12/01 21:50:23 akmods: Building RPM using the command '/sbin/akmodsbuild --kernels 5.15.5_tkg_mara_venier /usr/src/akmods/nvidia-470xx-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-470xx-5.15.5_tkg_mara_venier
Installing /usr/src/akmods/nvidia-470xx-kmod.latest
Building target platforms: x86_64
Building for target x86_64
2021/12/01 21:50:23 akmodsbuild: * Rebuilding /usr/src/akmods/nvidia-470xx-kmod.latest for kernel(s) 5.15.5_tkg_mara_venier: warning: user mockbuild does not exist - using root
2021/12/01 21:50:23 akmodsbuild: warning: user mockbuild does not exist - using root
2021/12/01 21:50:23 akmodsbuild: error: Package has no %description: kmod-nvidia-470xx-5.15.5_tkg_mara_venier
2021/12/01 21:50:23 akmodsbuild: Installing /usr/src/akmods/nvidia-470xx-kmod.latest
2021/12/01 21:50:23 akmodsbuild: Building target platforms: x86_64
2021/12/01 21:50:23 akmodsbuild: Building for target x86_64
2021/12/01 21:50:23 akmodsbuild:
2021/12/01 21:50:23 akmods: Building rpms failed; see /var/cache/akmods/nvidia-470xx/470.86-1-for-5.15.5_tkg_mara_venier.failed.log for details

Looking around previous issues here I found this problem mentioned a bunch of times alongside others, but no real solution has been provided as far as I am aware.
I used linux-tkg in the past on the same system/installation without any issue and akmods run flawlessly.

customization.cfg.zip

(I also tried to install using the Generic option but run into other issues, like having to use grub2-mkconfig manually instead of grub-mkconfig like the script does, but that's beyond the scope of this issue - also I know Generic is not meant to be used with Fedora because of that)

I am using Fedora 35

@Puncia
Copy link
Author

Puncia commented Dec 2, 2021

https://discussion.fedoraproject.org/t/rmnscnce-kernel-xanmod/27945/22
https://pagure.io/kernel-xanmod/issue/2#comment-737270

Apparently the issue is related to the CacULE scheduler, which is what I've been trying to use

@ptr1337
Copy link
Contributor

ptr1337 commented Dec 2, 2021

Probally not a issue related to the scheduler, more to fedoras way to use dkms. Or its a issue at the script missing a "description" for it.

Build it manually and watch if it still happens when using the cacule scheduler.

@AdelKS
Copy link
Collaborator

AdelKS commented Mar 15, 2022

Given #69 the solution found was to install the official Nvidia driver that uses DKMS instead.

@Sid127
Copy link

Sid127 commented May 10, 2022

This happens on PDS scheduler using kernel 5.17.5 and nvidia driver version 510.62.02 as well

AdelKS added a commit to AdelKS/linux-tkg that referenced this issue Oct 1, 2022
AdelKS added a commit to AdelKS/linux-tkg that referenced this issue Oct 1, 2022
AdelKS added a commit to AdelKS/linux-tkg that referenced this issue Oct 1, 2022
AdelKS added a commit to AdelKS/linux-tkg that referenced this issue Oct 1, 2022
This should avoid conflicts with distro kernels
Remove the "obsoletes" line in the spec file

Fixes: Frogging-Family#339 Frogging-Family#609 Frogging-Family#375 Frogging-Family#173 Frogging-Family#271

Signed-off-by: Adel KARA SLIMANE <[email protected]>
AdelKS added a commit to AdelKS/linux-tkg that referenced this issue Oct 1, 2022
This should avoid conflicts with distro kernels
Remove the "obsoletes" line in the spec file

Fixes: Frogging-Family#339 Frogging-Family#609 Frogging-Family#375 Frogging-Family#173 Frogging-Family#271

Signed-off-by: Adel KARA SLIMANE <[email protected]>
AdelKS added a commit to AdelKS/linux-tkg that referenced this issue Oct 1, 2022
This should avoid conflicts with distro kernels
Remove the "obsoletes" line in the spec file

Fixes: Frogging-Family#339 Frogging-Family#609 Frogging-Family#375 Frogging-Family#173 Frogging-Family#271

Signed-off-by: Adel KARA SLIMANE <[email protected]>
AdelKS added a commit to AdelKS/linux-tkg that referenced this issue Oct 2, 2022
- Avoids conflicts with official kernels
- Fixes the reported issues with "unversionned obsoletes"
- Works now with akmod-nvidia

Fixes: Frogging-Family#609 Frogging-Family#513 Frogging-Family#375 Frogging-Family#339 Frogging-Family#375 Frogging-Family#173 Frogging-Family#271

Signed-off-by: Adel KARA SLIMANE <[email protected]>
AdelKS added a commit to AdelKS/linux-tkg that referenced this issue Oct 2, 2022
- Avoids conflicts with official kernels
- Fixes the reported issues with "unversionned obsoletes"
- Works now with akmod-nvidia

Fixes: Frogging-Family#609 Frogging-Family#513 Frogging-Family#375 Frogging-Family#339 Frogging-Family#375 Frogging-Family#173 Frogging-Family#271

Signed-off-by: Adel KARA SLIMANE <[email protected]>
@AdelKS
Copy link
Collaborator

AdelKS commented Oct 2, 2022

Hello! Please try PR #610 to confirm that it fixes this issue. It worked like a charm in my VM.

Adel

Tk-Glitch pushed a commit that referenced this issue Oct 2, 2022
* RPM: fix the script that generates kernel.spec

- Avoids conflicts with official kernels
- Fixes the reported issues with "unversionned obsoletes"
- Works now with akmod-nvidia

Fixes: #609 #513 #375 #339 #375 #173 #271

Signed-off-by: Adel KARA SLIMANE <[email protected]>

* install.sh: RPM: do not install kernel-headers package

We do not need it to build out-of-tree kernel modules. And that's
all we want actually.

Signed-off-by: Adel KARA SLIMANE <[email protected]>

Signed-off-by: Adel KARA SLIMANE <[email protected]>
@Tk-Glitch
Copy link
Member

Should be fixed with 1d063ca

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

5 participants