[Python-Dev] [PATCH] Allow Python to build on MIPS Targets

Mark Miller mark at mirell.org
Tue Jan 6 06:37:02 CET 2009

When the merging of the libffi3 branch took place in March, it broke  
the logic in configure and fficonfig.py.in to deal with MIPS  
architecture, specifically differentiating in which files to include  
for MIPS_IRIX versus MIPS_LINUX. I've re-added that logic based on the  
older code, and adjusted a few things to deal with the new format.

I just tested this on my QEMU instance of a MIPSEL Linux install, and  
works successfully. Before, it died with the error noted here: http://bugs.python.org/issue4305 
, when attempting to reference a non-existent array member in  
fficonfig.py.in, for the MIPS target. (Rather than MIPS_LINUX or  
MIPS_IRIX, like the file wants)

I've attached the patch here and on the following bug. It's based off  
the following svn checkout:
Path: .
URL: http://svn.python.org/projects/python/trunk
Repository Root: http://svn.python.org/projects
Repository UUID: 6015fed2-1504-0410-9fe1-9d1591cc4771
Revision: 68358
Node Kind: directory
Schedule: normal
Last Changed Author: marc-andre.lemburg
Last Changed Rev: 68344
Last Changed Date: 2009-01-05 13:43:35 -0600 (Mon, 05 Jan 2009)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-ffi.patch
Type: application/octet-stream
Size: 3692 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090105/ca7ee650/attachment.obj>
-------------- next part --------------

Mark Miller
mark at mirell.org

More information about the Python-Dev mailing list