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

Created on 2015-03-03 16:27 by Simon Hoinkis, last changed 2015-05-27 06:43 by kelledin.

Files
File name Uploaded Description Edit
mips64.patch Simon Hoinkis, 2015-03-03 16:27 Proposed patch to solve the issue review
Messages (3)
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.
History
Date User Action Args
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