-
Notifications
You must be signed in to change notification settings - Fork 380
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
relocation R_X86_64_PC32 against absolute symbol _binary_python_extension_py_size' in section
.text' is disallowed
#250
Comments
This comment has been minimized.
This comment has been minimized.
Merged
This might be specific to Alpine due to musl libc. I was able to build without any issues on Debian 10. |
I've hit this on Gentoo with glibc. Perhaps it's GCC 11.2. |
Ah... That's interesting. Let me see if I can reproduce on an older version. |
|
yuyichao
added a commit
to yuyichao/proot
that referenced
this issue
Oct 1, 2021
It's difficult to use a *ABS* symbol from C code. Specifying `-fPIC` could work around it but I'd like to not force it. Instead, simply use the symbol pointing to the end of the file and compute the size from the difference. Fix proot-me#250
oxr463
pushed a commit
that referenced
this issue
Oct 1, 2021
* Fix python option handler... ... was this option ever used? * Use the end symbol instead of the size symbol It's difficult to use a *ABS* symbol from C code. Specifying `-fPIC` could work around it but I'd like to not force it. Instead, simply use the symbol pointing to the end of the file and compute the size from the difference. * Fix python3.8 linking Starting python 3.8, the --ldflags by default omits the python library. A new --embed option was added to restore the previous behavior. Bug: #250
This has been fixed.
|
dna2github
pushed a commit
to dna2fork/proot
that referenced
this issue
May 1, 2023
* Fix python option handler... ... was this option ever used? * Use the end symbol instead of the size symbol It's difficult to use a *ABS* symbol from C code. Specifying `-fPIC` could work around it but I'd like to not force it. Instead, simply use the symbol pointing to the end of the file and compute the size from the difference. * Fix python3.8 linking Starting python 3.8, the --ldflags by default omits the python library. A new --embed option was added to restore the previous behavior. Bug: proot-me#250
The cause appears to have been https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94391 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Building a PRoot binary.
Actual Behavior
Python extension error when building.
Steps to Reproduce the Problem
Specifications
Linux 49c896f37a82 5.11.0-7612-generic #13~1617215757~20.10~97a8d1a-Ubuntu SMP Thu Apr 1 21:09:17 UTC 2 x86_64 GNU/Linux
Command Output
The text was updated successfully, but these errors were encountered: