You are not logged in.

#1 2020-11-29 17:51:30

Potomac
Member
Registered: 2011-12-25
Posts: 526

[solved] Yosys : error while loading shared libraries: libffi.so.6

Hello,

I use yosys 0.9-6 package :
https://www.archlinux.org/packages/comm … _64/yosys/

I get this error when I start yosys :

yosys: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
$ ldd /usr/bin/yosys
        linux-vdso.so.1 (0x00007ffd04f4e000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f8502166000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f8502020000)
        libreadline.so.8 => /usr/lib/libreadline.so.8 (0x00007f8501fce000)
        libffi.so.6 => not found
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f8501fc8000)
        libtcl8.6.so => /usr/lib/libtcl8.6.so (0x00007f8501e0a000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f8501dee000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f8501c25000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f85029b3000)
        libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007f8501bb4000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f8501b9a000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f8501b78000)

libffi has been upgraded (15 october 2020) and yosys 0.9-6 was built on 14 september 2020 , and I see a file /usr/lib/libffi.so.7, there is no libffi.so.6 file,
a recompilation of yosys package may solve this problem.

I opened a bugreport on archlinux but it was closed, I don't understand the reasons given by Doug Newgard (Scimmia) :
https://bugs.archlinux.org/task/68793

The package is correctly linked to libffi.so.7. Use the forums, IRC, or mailing lists for support.

Can you confirm that yosys 0.9-6 works without problems with packages from archlinux regular repos (not testing repos) ?

What I see is that yosys binary tries to load libffi.so.6, but only libffi.so.7 is present.

Thanks.

Last edited by Potomac (2020-11-29 19:20:01)

Offline

#2 2020-11-29 18:29:55

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [solved] Yosys : error while loading shared libraries: libffi.so.6

I can confirm that yosys 0.9-6 works without problems with packages from archlinux regular repos (not testing repos). ldd gives

libffi.so.7 => /usr/lib/libffi.so.7 (0x00007f49c5d42000)

here.
So the problem must be on your side. Maybe an outdated mirror or a partial update.

Offline

#3 2020-11-29 19:19:10

Potomac
Member
Registered: 2011-12-25
Posts: 526

Re: [solved] Yosys : error while loading shared libraries: libffi.so.6

Ok I found the cause of the problem, it's my mistake,
I have the git version of yosys from 2019 (a custom package), I thought I had the 0.9-6,

now it's ok, I removed this outdated version.

Offline

Board footer

Powered by FluxBB