Libffi.so.7: cannot open shared object file: No such file or directory

And it’s been a long time since anything broke :slight_smile: The last problem was a year ago :slight_smile:

These days I was trying to install RocM to experiment ollama with my AMD XT6700XT GPU about which I also wrote a long post in this forum some time ago to enable OpenCL.

Unfortunately something went wrong and here I am asking for help.

I also tried to rollback to a working snapshot, however as soon as I try to update with sudo zypper ref && sudo zipper dup the update runs smoothly without errors but on the next reboot I get a black screen with a mouse pointer typical of when something breaks with the graphics card drivers.

If I try to update with flatpak update- y I get the error:

flatpak: error while loading shared: libraries: libffi.so.7: cannot open sahred object file: No such file or directory

During my attempts to install RocM I marked these steps:

History

export LD_LIBRARY_PATH=/opt/rocm-6.3.1/lib
echo $LD_LIBRARY_PATH
sudo zypper in rocm-libs rocm-utils
export OLLAMA_LLM_LIBRARY=/opt/rocm/lib
export HSA_OVERRIDE_GFX_VERSION=10.3.0

export OLLAMA_LLM_LIBRARY=/opt/rocm/lib
export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH
export HSA_PATH=/opt/rocm/hsa
export PATH=/opt/rocm/bin:$PATH

And these are the References

Where I can start investigating the problem? Any suggestion on how to proceed?

There are some threads in the forum (where you were also involved) which says that, if you want to use Rocm, you need to use Leap as they are not compiled for Tumbleweed. For use on Tumbleweed you need to compile the drivers yourself.

Tumbleweed is way ahead of developement and uses actual libffi. The Rocm drivers are compiled for old libraries which are only available in Leap/SLES.

thanks, for the prompt reply.
However what is not clear is why after doing a rollback it keeps looking for this library. I always thought that the rollback restores the previous state, instead it seems to hold something.
Anyway I am planning a disk upgrade in the next few days, and I will take the opportunity to reinstall everything from scratch.

I would like to experiment with ollama et al. I wonder if it makes sense to upgrade my video card to newer Nvidia or insist on my RX6700XT which is not fully supported but I’ve seen some hack. Or another supported AMD?

One thing I like about tumbleweed is being able to have the latest KDE example available. Currently on Leap what version of KDE is available? I’m looking for it but I cannot find an official statement.

Leap uses LTS KDE. Now it is 5.x. It is possible to install newer KDE on Leap.

For GPGPU Leap is preferable for ROCm and CUDA.
For TW you can use GPGPU via Vulkan or OpenCL with Rusticl.

Ok, thanks for confirming.

Thanks for bringing this to my attention, I’ll read it again (SDB:AMD GPGPU - openSUSE Wiki); it’s been a long time since I’ve fiddled with GPU drivers :slight_smile:

it’s official :slight_smile: I messed my system :slight_smile:

I was trying to delete the amdgpu repos to reboot without the amd and use the default provided by tumbleweed, but I cannot login anymore on KDE Wayland. I can boot under X11 but the WM doesn’t work but luckily IceWM works.

A part the darktable repo, are these valid or am I missing something?

➜  ~ sudo zypper lr -u
Repository priorities in effect:                                                                                                                          (See 'zypper lr -P' for details)
      90 (raised priority)  :  1 repository
      99 (default priority) :  3 repositories

# | Alias                            | Name                  | Enabled | GPG Check | Refresh | URI
--+----------------------------------+-----------------------+---------+-----------+---------+--------------------------------------------------------------------------------------------
1 | download.opensuse.org-non-oss    | Main Repository (NO-> | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss/
2 | download.opensuse.org-tumbleweed | Main Update Reposit-> | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/tumbleweed/
3 | graphics_darktable_master        | Darktable-Org Maste-> | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/graphics:/darktable:/master/openSUSE_Tumbleweed/
4 | openh264                         | openh264              | Yes     | (r ) Yes  | Yes     | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/
5 | repo-openh264                    | Open H.264 Codec (o-> | No      | ----      | ----    | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed
6 | repo-source                      | openSUSE-Tumbleweed-> | No      | ----      | ----    | http://download.opensuse.org/source/tumbleweed/repo/oss/

This repo list is incomplete. You are missing the absolutely necessary OSS repo.

ich@laptopneu:~> zypper lr -d
# | Alias                  | Name                          | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                           | Service
--+------------------------+-------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------+--------
1 | NON-OSS                | NON-OSS                       | Ja      | (r ) Ja   | Ja      |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/non-oss/                         | 
2 | NVIDIA                 | NVIDIA                        | Ja      | (r ) Ja   | Ja      |   99     | rpm-md | https://download.nvidia.com/opensuse/tumbleweed                               | 
3 | OSS                    | OSS                           | Ja      | (r ) Ja   | Ja      |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/oss/                             | 
4 | UPDATE                 | UPDATE                        | Ja      | (r ) Ja   | Ja      |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/                               | 
5 | ftp.gwdg.de-Essentials | Packman Essentials Repository | Ja      | (r ) Ja   | Ja      |   90     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials | 
6 | google-chrome          | google-chrome                 | Ja      | (r ) Ja   | Ja      |   99     | rpm-md | https://dl.google.com/linux/chrome/rpm/stable/x86_64                          | 
ich@laptopneu:~> 

Additionally your repo 5 is a duplicate of repo 4. Repo 5 should be removed.

ok thanks for the help! is there an easy way to remove all the packages the are non referenced from these repos? for example, I removed the amdgpu repo and packman, and I wondering if there is an easy way to remove all the packages not referenced and installing / forcing the install of kde, wayland.

zypper dup --remove-orphaned

thanks, it removed some packages but there are stills some packages that are giving error.

Sorry if I cannot paste the exact error but I’m using another computer to write in the forum.

After amending the repos list, then zypper ref and then zypper dup --remove-orphaned it is trying to remove some packages like libefa1 libhns1 libibvers libibvers1 libmana1 libmlx5-1 librmacm1 rdam-core rdma-ndd saying the rpm failed:

Error: Subprocess failed. Error RPM failed: Command exited with status 1

After googling, I’ve found sudo rpm --rebuild and now I’m able to login in KDE again :slight_smile:

I’m trying to reinstall the amdgpu drivers following the steps in the doc shared above.

For what?
Amdgpu is a part of linux kernel.

Sorry I was inaccurate. I meant to say that after restoring the situation everything works with the included kernel drivers (amdgpu) but that to enable openCL and ROCm I will follow this information.