There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Error when installing AMDGPU drivers on Fedora

A website with the make log is linked. I’m having a problem with installing drivers on my Fedora install. I have an RX6600 and would like to install the amdgpu drivers. I’ve tried trough dnf and the official amdgpu-install script. Any ideas why this compile error is happening? Actually considering going to Arch or Ubuntu because of this. I’ve had a lot of problems with AMD drivers on Fedora. I would like to also use Blender GPU Rendering. This is what their page says about it. The drivers I had previously were the normal ones. Now I’m having problems installing any drivers.

HIP – AMD

HIP is supported on Windows and Linux and requires a AMD graphics card with the Vega architecture or newer. Both discrete GPUs and APUs are supported.

Supported GPUs include:


<span style="color:#323232;">    Radeon VII
</span><span style="color:#323232;">
</span><span style="color:#323232;">    Radeon RX Vega Series
</span><span style="color:#323232;">
</span><span style="color:#323232;">    Radeon RX 5000 Series
</span><span style="color:#323232;">
</span><span style="color:#323232;">    Radeon RX 6000 Series
</span><span style="color:#323232;">
</span><span style="color:#323232;">    Radeon RX 7000 Series
</span><span style="color:#323232;">
</span><span style="color:#323232;">    Radeon Pro WX 9100
</span><span style="color:#323232;">
</span><span style="color:#323232;">    Radeon Pro W6000 Series
</span>

Minimum driver versions:


<span style="color:#323232;">    Windows: Radeon Software 21.12.1 or Radeon PRO Software 21.Q4
</span><span style="color:#323232;">
</span><span style="color:#323232;">    Linux: Radeon Software 22.10 or ROCm 5.3
</span>

Please refer to AMD’s website for more information about AMD graphics cards and their architectures.

Would I need to install ROCm? Trough their AMD’s install script it was represented as an option, but I ran into the same problem here.

AapoL OP ,

Ok, update. I removed some improper repos that the amdgpu-install had installed and I got things mostly working. Only problem is that rendering in Blender on GPU crashes it and I can’t seem to get good logs for the problem. I will try to get some logs and post them here.

S410 ,
@S410@lemmy.ml avatar

AMDGPU drivers are a part of Linux itself, so you shouldn’t need to install them manually. They’re already there.
What Blender seems to want is ROCm HIP. The rocm-hip package might be what it wants? Try to install it and see if that works.

AapoL OP ,

Well, I figured that out. But the problem is now my drivers are kind of broken. The error you are seeing in the log is what is not letting me download the drivers.

AapoL OP ,

So, see the other comment for the dnf message when installing amdgpu-core. Everything else except amdgpu-core gets installed properly. The error says ERROR: This package can only be installed on EL8. Which makes no sense.

S410 ,
@S410@lemmy.ml avatar

Did you add a repo for RHEL8 to your Fedora install? Please, undo that.
Please, don’t blindly follow instructions you find online, particularly when it comes down to installing something as important as drivers.
Installing drivers from third party sources should be done only as the last resort and only if you know exactly what you’re doing.

AapoL OP ,

Ok, update. I removed some improper repos that the amdgpu-install had installed and I got things mostly working. Only problem is that rendering in Blender on GPU crashes it and I can’t seem to get good logs for the problem. I will try to get some logs and post them here.

I just realized this myself as well and posted it into an another comment. Should have replied here instead. But now the only problem is Blender crashing.


<span style="color:#323232;">ghost_event_proc: ghost redraw decor 1
</span><span style="color:#323232;">
</span><span style="color:#323232;">wm_event_do_handlers: Handling event
</span><span style="color:#323232;">wmEvent type:1/LEFTMOUSE, val:1/PRESS, prev_type:1/LEFTMOUSE, prev_val:2/RELEASE, modifier={}, keymodifier:0, flag:{}, mouse:(1550,1038), utf8:'', pointer:0x7f696c2e7a80
</span><span style="color:#323232;">UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
</span><span style="color:#323232;">UI_menutype_draw: opening menu "NODE_MT_editor_menus"
</span><span style="color:#323232;">UI_menutype_draw: opening menu "FILEBROWSER_MT_editor_menus"
</span><span style="color:#323232;">UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
</span><span style="color:#323232;">I0123 17:01:56.235076  4894 device.cpp:390] CPU render threads disabled for interactive render.
</span><span style="color:#323232;">I0123 17:01:56.235121  4894 device.cpp:511] Mapped host memory limit set to 12,362,813,440 bytes. (11.51G)
</span><span style="color:#323232;">I0123 17:01:56.235285  4894 device_impl.cpp:62] Using AVX2 CPU kernels.
</span><span style="color:#323232;">Writing: /tmp/sky.crash.txt
</span><span style="color:#323232;">Segmentation fault (core dumped)
</span><span style="color:#323232;">[aapo@aapo-fedora ~]$ cat /tmp/sky.crash.txt
</span><span style="color:#323232;"># Blender 3.6.7, Commit date: 1970-01-01 00:00, Hash unknown
</span><span style="color:#323232;">bpy.ops.wm.open_mainfile(filepath="/home/aapo/Desktop/koodi/Blender/sky.blend", load_ui=True, use_scripts=False, display_file_selector=False, state=2)  # Operator
</span><span style="color:#323232;">bpy.ops.wm.tool_set_by_id(name="builtin.select_box", cycle=False, space_type='NODE_EDITOR')  # Operator
</span><span style="color:#323232;">bpy.ops.wm.tool_set_by_id(name="builtin.select_box", cycle=False, space_type='VIEW_3D')  # Operator
</span><span style="color:#323232;">bpy.ops.screen.userpref_show()  # Operator
</span><span style="color:#323232;">bpy.ops.wm.tool_set_by_id(name="builtin.select_box", cycle=False, space_type='NODE_EDITOR')  # Operator
</span><span style="color:#323232;">bpy.ops.wm.tool_set_by_id(name="builtin.select_box", cycle=False, space_type='VIEW_3D')  # Operator
</span><span style="color:#323232;">
</span><span style="color:#323232;"># backtrace
</span><span style="color:#323232;">blender(+0x2dbff8c) [0x55b438d67f8c]
</span><span style="color:#323232;">blender(+0x937963) [0x55b4368df963]
</span><span style="color:#323232;">/usr/lib64/libc.so.6(+0x3dbb0) [0x7f699ea5fbb0]
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Python backtrace
</span><span style="color:#323232;">[aapo@aapo-fedora ~]$ 
</span>

This is all the logs I seem to get. The logs before the cat command are from running Blender.

S410 ,
@S410@lemmy.ml avatar

bugzilla.redhat.com/show_bug.cgi?id=2216594
gitlab.freedesktop.org/drm/amd/-/issues/2145
Looks like you’re hitting a known bug that isn’t fixed yet.
Reportedly, ROCm 5.6.1 is the lastest working version, so you could try to downgrade. Something dnf install rocm-*-5.6.1 should do the trick.

AapoL OP ,

Here’s also the dnf log:


<span style="color:#323232;">[aapo@aapo-fedora ~]$ sudo dnf install amdgpu-core
</span><span style="color:#323232;">AMDGPU 5.4 repository                           588  B/s | 548  B     00:00    
</span><span style="color:#323232;">Errors during downloading metadata for repository 'amdgpu':
</span><span style="color:#323232;">  - Status code: 404 for https://repo.radeon.com/amdgpu/5.4/rhel//main/x86_64/repodata/repomd.xml (IP: 13.82.220.49)
</span><span style="color:#323232;">Error: Failed to download metadata for repo 'amdgpu': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
</span><span style="color:#323232;">Ignoring repositories: amdgpu
</span><span style="color:#323232;">Last metadata expiration check: 0:00:43 ago on Tue 23 Jan 2024 04:14:52 PM EET.
</span><span style="color:#323232;">Dependencies resolved.
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;"> Package     Arch   Version
</span><span style="color:#323232;">                         Repository                                        Size
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;">Installing:
</span><span style="color:#323232;"> amdgpu-core noarch 1:5.4.50400-1510348.el8
</span><span style="color:#323232;">                         repo.radeon.com_amdgpu_5.4_rhel_8.7_main_x86_64_ 8.1 k
</span><span style="color:#323232;">
</span><span style="color:#323232;">Transaction Summary
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;">Install  1 Package
</span><span style="color:#323232;">
</span><span style="color:#323232;">Total download size: 8.1 k
</span><span style="color:#323232;">Installed size: 0  
</span><span style="color:#323232;">Is this ok [y/N]: y
</span><span style="color:#323232;">Downloading Packages:
</span><span style="color:#323232;">amdgpu-core-5.4.50400-1510348.el8.noarch.rpm     19 kB/s | 8.1 kB     00:00    
</span><span style="color:#323232;">--------------------------------------------------------------------------------
</span><span style="color:#323232;">Total                                            19 kB/s | 8.1 kB     00:00     
</span><span style="color:#323232;">Running transaction check
</span><span style="color:#323232;">Transaction check succeeded.
</span><span style="color:#323232;">Running transaction test
</span><span style="color:#323232;">Transaction test succeeded.
</span><span style="color:#323232;">Running transaction
</span><span style="color:#323232;">  Preparing        :                                                        1/1 
</span><span style="color:#323232;">  Running scriptlet: amdgpu-core-1:5.4.50400-1510348.el8.noarch             1/1 
</span><span style="color:#323232;">ERROR: This package can only be installed on EL8.
</span><span style="color:#323232;">error: %prein(amdgpu-core-1:5.4.50400-1510348.el8.noarch) scriptlet failed, exit status 1
</span><span style="color:#323232;">
</span><span style="color:#323232;">Error in PREIN scriptlet in rpm package amdgpu-core
</span><span style="color:#323232;">  Verifying        : amdgpu-core-1:5.4.50400-1510348.el8.noarch             1/1 
</span><span style="color:#323232;">
</span><span style="color:#323232;">Failed:
</span><span style="color:#323232;">  amdgpu-core-1:5.4.50400-1510348.el8.noarch                                    
</span><span style="color:#323232;">
</span><span style="color:#323232;">Error: Transaction failed
</span><span style="color:#323232;">[aapo@aapo-fedora ~]$ 
</span>
AapoL OP ,

Also, if I basically remove everything, I will get this error:

`[aapo@aapo-fedora ~]$ amdgpu-install [sudo] password for aapo: ROCm 5.4 repository 154 kB/s | 208 kB 00:01
AMDGPU 5.4 repository 699 B/s | 548 B 00:00
Errors during downloading metadata for repository ‘amdgpu’:

  • Status code: 404 for repo.radeon.com/amdgpu/5.4/rhel//…/repomd.xml (IP: 13.82.220.49) Error: Failed to download metadata for repo ‘amdgpu’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried Ignoring repositories: amdgpu Last metadata expiration check: 0:00:01 ago on Tue 23 Jan 2024 03:47:14 PM EET. Package amdgpu-lib-1:5.4.50400-1510348.el8.x86_64 is already installed. Package amdgpu-dkms-1:5.18.13.50400-1510348.el8.noarch is already installed. Error: Problem: package rocm-hip-runtime-5.4.0.50400-72.el8.x86_64 from rocm requires rocminfo = 1.0.0.50400-72.el8, but none of the providers can be installed
  • conflicting requests
  • nothing provides /usr/libexec/platform-python needed by rocminfo-1.0.0.50400-72.el8.x86_64 from rocm (try to add ‘–skip-broken’ to skip uninstallable packages) [aapo@aapo-fedora ~]$ `
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines