Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Binutils >= 2.40 #8

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jimbob88
Copy link

Currently pybfd3 fails to build on Python >= 3.10 and binutils >= 2.39. This brings pybfd3 up to date with binutils 2.40 and python 3.10

@user202729
Copy link

user202729 commented Nov 2, 2024

@jimbob88 This branch also errors out for me:

  [-] Error : Unable to determine libopcodes' supported platforms from '/usr/lib/libopcodes.so'

Because:

[pybfd3]$ ls /usr/lib/libopcodes.so
/usr/lib/libopcodes.so
[pybfd3]$ file /lib/libopcodes.so
/lib/libopcodes.so: ASCII text
[pybfd3]$ file /usr/lib/libopcodes.so
/usr/lib/libopcodes.so: ASCII text
[pybfd3]$ cat /lib/libopcodes.so
/* GNU ld script */

INPUT( /usr/lib/libopcodes.a -lbfd )
[pybfd3]$ cat /usr/lib/libopcodes.so
/* GNU ld script */

INPUT( /usr/lib/libopcodes.a -lbfd )
[pybfd3]$ file /usr/lib/libopcodes.a
/usr/lib/libopcodes.a: current ar archive

To get across the step:

python setup.py install --user --with-static-binutils=/usr/

Then I encounter another error:

[-] Error : missing expected library (libdl) in /usr/lib.

To workaround that I change libdl.so to libdl.so.2.

But the actual cause is for sufficiently new glibc version, libdl is included in the standard library.

Still, imp module is removed in python3.12.

https://stackoverflow.com/a/77411659/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants