Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] rpi3 broken emerge - libffi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 218

PostPosted: Fri Sep 23, 2022 7:32 pm    Post subject: [SOLVED] rpi3 broken emerge - libffi Reply with quote

Hi, update of world at fairly old gentoo system on my rpi3 got interrupted by power outage (not sure if it is the cause) and now emerge complains about missing /usr/lib/libffi.so.7. There is already installed /usr/lib/libffi.so.8 on that system. I was looking at current stage3, but it also contains libffi.so.8. What will be the easiest way to fix this? Is it likely that I will be able to build libffi.so.7 on that system? Which libffi version installed so.7? Or is there a way to use stage3 to somehow fix portage on that system? Thanks.

Last edited by krotuss on Sat Sep 24, 2022 9:05 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Fri Sep 23, 2022 7:50 pm    Post subject: Reply with quote

krotuss,

dev-libs/libffi is not slotteh so you may not have several versions installed at the same time.
Does your Pi3 have a 32 bit or 64 bit install?

Please post the full command and output including the error message.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Fri Sep 23, 2022 7:52 pm    Post subject: Reply with quote

Moved from Portage & Programming to Gentoo on ARM.

The Pi3 is arm or arm64
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 218

PostPosted: Fri Sep 23, 2022 7:59 pm    Post subject: Reply with quote

NeddySeagoon wrote:
krotuss,
Please post the full command and output including the error message.


Which command do you mean specifically? I currently don't have access to that system, but every emerge command that I have tried fails with python backtrace with complain about missing "/usr/lib/libffi.so.7" at the bottom. It looks like that libffi was updated, but emerge/python/dependencies was not rebuild against newer "/usr/lib/libffi.so.8"

System is 32 bit.

Looks like 811462
Back to top
View user's profile Send private message
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 218

PostPosted: Sat Sep 24, 2022 9:03 am    Post subject: Reply with quote

Posting output of emerge command:
Code:
emerge --info
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.9/emerge", line 55, in <module>
    from _emerge.main import emerge_main
  File "/usr/lib/python3.9/site-packages/_emerge/main.py", line 22, in <module>
    from portage.sync import _SUBMODULE_PATH_MAP
  File "/usr/lib/python3.9/site-packages/portage/sync/__init__.py", line 9, in <module>
    from portage.sync.controller import SyncManager
  File "/usr/lib/python3.9/site-packages/portage/sync/controller.py", line 21, in <module>
    from portage.package.ebuild.doebuild import _check_temp_dir
  File "/usr/lib/python3.9/site-packages/portage/package/ebuild/doebuild.py", line 116, in <module>
    from portage.util.compression_probe import _compressors
  File "/usr/lib/python3.9/site-packages/portage/util/compression_probe.py", line 4, in <module>
    import ctypes
  File "/usr/lib/python3.9/ctypes/__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ImportError: libffi.so.7: cannot open shared object file: No such file or directory


I was able to build libffi-3.3-r2 outside of portage on my affected system and manually placed .so.7 files into /usr/lib. That fixed emerge.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum