You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nixos-rebuild fails, when xserver.videoDrivers is set to [ "amdgpu-pro" ] #78031
0.kind: bugSomething is broken6.topic: hardwareDrivers, Firmware and Kernels6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Describe the bug
When I switch my video drivers to "amdgpu-pro", my rebuild fails with the error message:
error: unsupported xorg abiCompat 1.19 for xorg-server-1.20.5
(use '--show-trace' to show detailed location information)
Additionally, when I use boot.kernelPackages = pkgs.linuxPackages_latest;, it has a conflict with a boot.kernelPackages in the amdgpu_pro module.
The option `boot.kernelPackages' has conflicting definitions, in `/path/to/my/config/hardware.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/hardware/video/amdgpu-pro.nix'.
To Reproduce
Steps to reproduce the behavior:
set services.xserver.videoDrivers to [ "amdgpu-pro" ];
nixos-rebuild switch
To reproduce the secound error: set boot.kernelPackages to pkgs.linuxPackages_latest;
Expected behavior
The rebuild should run without errors, and X should use the amdgpu-pro drivers after a reboot.
I have the same problem.
I suspect the abiCompat problem is the result of nixos-19.09 using xorg-server 1.20.* instead of 1.19.* .
Regarding the second (kernelPackages) problem: I don't think this is a bug, but the result of amdgpu-pro containing closed-source components, which requires a specific kernel.
I don't have time at the moment, but will try to have a look in a week or so.
I can't debug this, because I need a newer kernel than amdgpu-pro supports :/ (I will look into that, but that is not a high priority for me at the moment)
At the moment the newest release of amdgpu-pro seems to require something around kernel 4.16 (I could only find the supported Distributions), the build using 5.4 failed for me, but I can't say I fully understand the video-driver setup.
Maybe @corngood could take a look at it? The main problem in this issue is the xorg-version expected by amdgpu-pro (as set in the package) and the xorg version in nixpkgs.
I didn't look up the versions at that point, since I find it is quite cumbersome to find the kernel being used in the distribution (maybe I just look in the wrong places?).
There is also #79562 (and #46765 with 18.03), with version 20.10, (Used in Ubuntu 18.04.4). I had a short look, but didn't get to much done yet. In that issue @killercup also started on updating it.
I use rocm, which I use for at the moment to get OpenCL.
I didn't look up the versions at that point, since I find it is quite cumbersome to find the kernel being used in the distribution (maybe I just look in the wrong places?).
# nixos-rebuild switch --flake /etc/nixos#nixosbuilding the system configuration...error: attribute 'name' missing at /nix/store/nbp8axqsz7zbkd03zia0v60jhi382ly9-source/pkgs/servers/x11/xorg/overrides.nix:653:67: 652| } 653| else throw "unsupported xorg abiCompat ${abiCompat} for ${attrs_passed.name}"; | ^ 654| Did you mean pname?(use '--show-trace' to show detailed location information)
The error message seems to be due to #167893, but looks like it's trying to throw this error.
amdgpu-pro has version 21.30 (note, there is actually a new version 22.40 out)
0.kind: bugSomething is broken6.topic: hardwareDrivers, Firmware and Kernels6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Activity
DieGoldeneEnte commentedon Feb 1, 2020
I have the same problem.
I suspect the abiCompat problem is the result of nixos-19.09 using xorg-server 1.20.* instead of 1.19.* .
Regarding the second (kernelPackages) problem: I don't think this is a bug, but the result of amdgpu-pro containing closed-source components, which requires a specific kernel.
I don't have time at the moment, but will try to have a look in a week or so.
DieGoldeneEnte commentedon Feb 8, 2020
I can't debug this, because I need a newer kernel than amdgpu-pro supports :/ (I will look into that, but that is not a high priority for me at the moment)
At the moment the newest release of amdgpu-pro seems to require something around kernel 4.16 (I could only find the supported Distributions), the build using 5.4 failed for me, but I can't say I fully understand the video-driver setup.
Maybe @corngood could take a look at it? The main problem in this issue is the xorg-version expected by amdgpu-pro (as set in the package) and the xorg version in nixpkgs.
There also is a new version 19.50.
If someone gets it working on a newer kernel I would gladly help testing.
scalavision commentedon May 11, 2020
The new version you point to seems to support kernel v 5, since it supports ubuntu 18.03 which has kernel v 5 ..
DieGoldeneEnte commentedon May 11, 2020
I didn't look up the versions at that point, since I find it is quite cumbersome to find the kernel being used in the distribution (maybe I just look in the wrong places?).
There is also #79562 (and #46765 with 18.03), with version 20.10, (Used in Ubuntu 18.04.4). I had a short look, but didn't get to much done yet. In that issue @killercup also started on updating it.
I use rocm, which I use for at the moment to get OpenCL.
davidak commentedon May 17, 2020
You can find versions of ubuntu packages here: https://packages.ubuntu.com/bionic/kernel-image
I also found this page: https://ubuntu.com/kernel/lifecycle
Here are also information: https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_18.04_LTS_(Bionic_Beaver)
So the initial release of Ubuntu 18.04 seem to has kernel 4.15 and later had 5.3.
OpenCL works with amdgpu in this PR: #87990
killercup commentedon Jun 13, 2020
Version 20.20 is out now: https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-20
It officially supports Ubuntu 20.04, which uses kernel 5.4 AFAIK.
6AA4FD commentedon Jul 3, 2020
@corngood do you have any plans to work on this?
corngood commentedon Jul 3, 2020
I haven't had a use for it in a while, so probably not any time soon.
stale commentedon Dec 31, 2020
I marked this as stale due to inactivity. → More info
Jiehong commentedon Feb 20, 2021
I confirm this issue is still unresolved.
Jiehong commentedon Feb 22, 2021
Version 4.0.1 is out, but supported kernels are 5.4 and 5.6: https://raw.githubusercontent.com/RadeonOpenCompute/ROCm/master/AMD_ROCm_Release_Notes_v4.0.pdf
Releases can now be seen in https://github.com/RadeonOpenCompute/ROCm/releases.
tobkratz commentedon Feb 25, 2021
can also replicate this issue on 20.09
TheOddler commentedon Aug 14, 2021
I now have the same issue on 21.05.
davidak commentedon Apr 9, 2022
This is fixed on unstable. The pinned kernel version has a dedicated issue.
ezracelli commentedon Mar 15, 2023
Looks like this may have cropped up again? I'm on unstable (5a1dc8a), and getting the following:
The error message seems to be due to #167893, but looks like it's trying to throw this error.
amdgpu-prohas version21.30(note, there is actually a new version22.40out)"amdgpu-pro"driver setsabiCompat = "1.20"xorg-serverhas version21.1.7Metadata