Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

[SOLVED] rpi3 broken emerge - libffi

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Author
Message
krotuss
Apprentice
Apprentice
Posts: 253
Joined: Fri Aug 01, 2008 6:11 pm

[SOLVED] rpi3 broken emerge - libffi

  • Quote

Post by krotuss » Fri Sep 23, 2022 7:32 pm

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.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Sep 23, 2022 7:50 pm

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.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Sep 23, 2022 7:52 pm

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.
Top
krotuss
Apprentice
Apprentice
Posts: 253
Joined: Fri Aug 01, 2008 6:11 pm

  • Quote

Post by krotuss » Fri Sep 23, 2022 7:59 pm

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
Top
krotuss
Apprentice
Apprentice
Posts: 253
Joined: Fri Aug 01, 2008 6:11 pm

  • Quote

Post by krotuss » Sat Sep 24, 2022 9:03 am

Posting output of emerge command:

Code: Select all

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.
Top
Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic