LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-09-2024, 04:34 AM   #1
gildbg
Member
 
Registered: Aug 2017
Distribution: Slackware, OpenBSD
Posts: 156

Rep: Reputation: Disabled
LLVM 18.1.0 Failed to load libamdhip64.so


Hello,

it's seems there have a missing library on last LLVM package.
I was trying to start: /usr/bin/amdgpu-arch

and receive the error:

Failed to 'dlopen' libhsa-runtime64.so
Failed to load libamdhip64.so: libamdhip64.so: cannot open shared object file: No such file or directory
 
Old 03-09-2024, 05:04 AM   #2
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
FWIW, No amdgpu on my box; so possibly an imported/3rd party package depending on stock llvm. Try recompiling amdgpu and other packages required for/depending on it.

Last edited by brobr; 03-09-2024 at 05:05 AM.
 
Old 03-09-2024, 05:21 AM   #3
gildbg
Member
 
Registered: Aug 2017
Distribution: Slackware, OpenBSD
Posts: 156

Original Poster
Rep: Reputation: Disabled
Could we also upgrade llvm-toolchain libclc to version 18.1 ? Our currently (on slackware64 current) is 17.0.1 I found the package here: https://openmandriva.pkgs.org/cooker...86_64.rpm.html

and contain some extra .bc specifications for new AMD video cards.

https://github.com/llvm/llvm-project...1.0.src.tar.xz

Last edited by gildbg; 03-09-2024 at 05:28 AM.
 
Old 03-09-2024, 07:06 AM   #4
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,362

Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by brobr View Post
FWIW, No amdgpu on my box; so possibly an imported/3rd party package depending on stock llvm. Try recompiling amdgpu and other packages required for/depending on it.
admgpu-arch is part of llvm

https://packages.slackware.com/?r=sl...x86_64-1.txz&f

The library libamdhip64 si provided by rocM :
https://rocm.docs.amd.com/projects/HIP/en/latest/

Last edited by marav; 03-09-2024 at 07:22 AM.
 
Old 03-09-2024, 07:09 AM   #5
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Quote:
Originally Posted by marav View Post
hmm, possibly didn't search at the right places ;-(; sorry for the noise.
 
Old 03-09-2024, 07:25 AM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,362

Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by brobr View Post
hmm, possibly didn't search at the right places ;-(; sorry for the noise.
Instead of packages.slackware.com, you can try :
Code:
$ slackpkg file-search amdgpu-arch
 
Old 03-10-2024, 03:08 AM   #7
gildbg
Member
 
Registered: Aug 2017
Distribution: Slackware, OpenBSD
Posts: 156

Original Poster
Rep: Reputation: Disabled
Unhappy Still Failed to 'dlopen' libhsa-runtime64.so

Hello,

thanks for the update but unfortunately the update does not resolve the issue with missing library's.

Code:
/usr/bin/amdgpu-arch 
Failed to 'dlopen' libhsa-runtime64.so
Failed to load libamdhip64.so: libamdhip64.so: cannot open shared object file: No such file or directory
It's seems this error coming from here:
Code:
llvm-18.1.0.src/tools/clang/tools/amdgpu-arch/AMDGPUArchByHIP.cpp:38:  constexpr const char *DynamicHIPPath = "libamdhip64.so";
llvm-18.1.0.src/tools/clang/tools/amdgpu-arch/AMDGPUArchByHSA.cpp:49:constexpr const char *DynamicHSAPath = "libhsa-runtime64.so";
but this problem is described here and it's seems extra packages for both AMD or NVIDIA GPU cards:
Code:
/llvm-18.1.0.src/projects/openmp/docs/SupportAndFAQ.rst
 
1 members found this post helpful.
Old 03-12-2024, 08:56 AM   #8
gildbg
Member
 
Registered: Aug 2017
Distribution: Slackware, OpenBSD
Posts: 156

Original Poster
Rep: Reputation: Disabled
Unfortunately, after digging a little bit deeper it's seems to work this functionality require half of ROCm repo to be installed which it's not so easy to be build.

Did some one was able to build latest AMDGPU-PRO driver on Slackware current x64 ?
 
Old 03-26-2024, 02:05 AM   #9
gildbg
Member
 
Registered: Aug 2017
Distribution: Slackware, OpenBSD
Posts: 156

Original Poster
Rep: Reputation: Disabled
Hi all,

I was able to build these library and HIP. If some one want can download the compiled library from here: https://www.ixip.net/slackware/myrep...-x86_64.tar.gz

What I learn when trying to build ROCm version 6.0.3 it's not so hard on Slackware64 (I use current version only) to be build just need time. Because the ROCm have a lot's of packages the documentation some times it's not so clear but I found with trial and errors there have basic rules that must be followed:

First rule: Need to compile and use ONLY ROCm LLVM package for every ROCm module which will be compiled in the future.
Rule number two: Follow rule number one.

If some one have interest I could share the build commands of the packages but it's not something specials.

For success use of ROCm it's will be good system LLVM to be upgraded with ROCm LLVM to be avoid wrong library links which will save you a lot's of time. This is the tricky part. The ROCm LLVM is the same with system LLVM with some patches from ROCm community to support AMD and NVIDIA and what I thinking it's will be good if we have some kind of support on Slackware. Every day new technology's is coming and we must follow them. It's will be good if we have addon section on Slackware tree some packages which will make Slackware more useful and more use case could be solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] FYI: rust-1.46.0 on Slackware 14.2 needs extra/llvm/llvm-8.0.1 zakame Slackware 3 10-30-2020 05:34 AM
[SOLVED] failed to complie LLVM 3.8.1 on LFS 7.10 e666666 Linux From Scratch 2 02-03-2017 09:24 PM
llvm-config problem in slackware64-current LLVM 3.2 package teeemcee Slackware 0 01-24-2013 02:44 PM
Xorg -- (EE) Failed to load module "glx" (loader failed, 7) windowsrefugeeX Linux - Software 10 09-23-2009 05:51 PM
Websites load slow, but once they load, any links inside them load fast smurcoch Mandriva 3 02-06-2006 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration