This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: MIPS64 needs ffi's n32.S
Type: compile error Stage: resolved
Components: ctypes Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Simon Hoinkis, amaury.forgeotdarc, belopolsky, doko, iritkatriel, kelledin, meador.inge
Priority: normal Keywords: patch

Created on 2015-03-03 16:27 by Simon Hoinkis, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mips64.patch Simon Hoinkis, 2015-03-03 16:27 Proposed patch to solve the issue review
Messages (4)
msg237150 - (view) Author: Simon Hoinkis (Simon Hoinkis) * Date: 2015-03-03 16:27
MIPS64 needs ffi's n32.S linking in for _ctypes to work otherwise build errors will occur (e.g. python-setuptools).
msg240330 - (view) Author: Simon Hoinkis (Simon Hoinkis) * Date: 2015-04-09 14:32
Could someone review this issue?
msg244145 - (view) Author: Frank Schaefer (kelledin) * Date: 2015-05-27 06:43
This patch alone is apparently not enough.  When this is enabled, and python 2.7.10 is built with -mabi=n32, make test segfaults on test_ctypes.  Using --with(out)-system-ffi does not make a difference.

When I run the test by itself, it specifically fails at:

test_pyobject (ctypes.test.test_callbacks.Callbacks) ... Segmentation fault (core dumped)

I'm guessing Python is doing something bogus with libffi that kills it specifically on mips n32.
msg401578 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-09-10 13:45
The code has changed since this issue was created - I can't find the file that the patch modifies nor the code it contains (I searched for ffi_platforms and MIPS_LINUX). 

Please create a new issue if you are seeing issues like this on a current python version (>= 3.9).
History
Date User Action Args
2022-04-11 14:58:13adminsetgithub: 67763
2021-09-10 13:45:35iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg401578

resolution: out of date
stage: patch review -> resolved
2015-05-27 06:43:37kelledinsetnosy: + kelledin
messages: + msg244145
2015-04-09 14:32:31Simon Hoinkissetmessages: + msg240330
2015-03-03 21:03:18pitrousetnosy: + doko, amaury.forgeotdarc, belopolsky, meador.inge
stage: patch review

versions: + Python 3.4, Python 3.5
2015-03-03 16:27:17Simon Hoinkiscreate