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
Python 3.11 beta3 fails to build (_ctypes extension) on N32-abi based MIPS #94656
Comments
See also the original bug report https://bugs.gentoo.org/850151 |
3.11 still uses this weird mix of pkg-config and custom distutils code to detect libffi. Could you please add
|
|
Thanks! Where is |
Basically, libffi is installed for the "main / system" abi which all the system binaries use, but not for any other abi which are only added on request. |
In the mean time would this patch work for you:
|
For Python 3.10, Gentoo applies this patch: We sed in the appropriate value for I think this patch just needs to be adapted for Python 3.11 downstream. |
@floppym I think you're right. Will test. |
My apologies for the noise. @floppym was correct and this was due to the missing patch on the Gentoo side. Fixed now. |
Bug report
Python 3.11 beta3 fails to build (more specifically, its _ctypes extension) on Gentoo in all variants where
the N32 ABI is the main system ABI on MIPS.
3.10 and earlier build fine.
Explanation on MIPS ABI
MIPS has 3 ABI,
Each of these can be used alone, in a single-ABI install; historically there are also multilib installs where n32 provides the main system ABI but n64 is supported for applications).
On Gentoo, the library directory is "lib" for o32, "lib32" for n32, and "lib64" for n64.
Debugging done
I tested on a multilib install, where n32 is the main system ABI and the build fails.
pkgconfig provides useful and correct output:
build.log
config.log
Maybe python is somehow setting a wrong libdir to search, or a wrong configuration directory for pkgconfig?
MIPS installs with o32 or n64 ABI build python-3.11_beta3 fine.
The text was updated successfully, but these errors were encountered: