Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268705 - dev-lang/python-2.6 / MIPS build failure + patch
Summary: dev-lang/python-2.6 / MIPS build failure + patch
Status: RESOLVED DUPLICATE of bug 266471
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-05 10:24 UTC by Manuel Lauss
Modified: 2009-06-13 20:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix Python-2.6 build on MIPS (python-2.6.2-gentoo-support-mips.patch,2.59 KB, patch)
2009-05-05 10:26 UTC, Manuel Lauss
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Lauss 2009-05-05 10:24:57 UTC
Python-2.6 doesn't build on MIPS (mips32 little-endian) due to KeyError in the libffi arch table:

config.status: linking /var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Modules/_ctypes/libffi/include/ffi_common.h to include/ffi_common.h
config.status: executing depfiles commands
config.status: executing include commands
config.status: executing src commands
Traceback (most recent call last):
  File "./setup.py", line 1921, in <module>
    main()
  File "./setup.py", line 1916, in main
    'Lib/smtpd.py']
  File "/var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Lib/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Lib/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Lib/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Lib/distutils/command/build.py", line 134, in run
    self.run_command(cmd_name)
  File "/var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Lib/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Lib/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Lib/distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
  File "./setup.py", line 214, in build_extensions
    build_ext.build_extensions(self)
  File "/var/tmp/portage/dev-lang/python-2.6.2/work/Python-2.6.2/Lib/distutils/command/build_ext.py", line 471, in build_extensions
    self.build_extension(ext)
  File "./setup.py", line 248, in build_extension
    if not self.configure_ctypes(ext):
  File "./setup.py", line 1725, in configure_ctypes
    execfile(ffi_configfile, globals(), fficonfig)
  File "build/temp.linux-mips-2.6/libffi/fficonfig.py", line 32, in <module>
    ffi_sources += ffi_platforms['MIPS']
KeyError: 'MIPS'
make: *** [sharedmods] Error 1

Fixed it by copying the "MIPS_LINUX" key for plain "MIPS".

Reproducible: Always
Comment 1 Manuel Lauss 2009-05-05 10:26:03 UTC
Created attachment 190395 [details, diff]
Fix Python-2.6 build on MIPS

Proposed patch to fix Python-2.6 build on Gentoo/MIPS.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-06-13 20:20:14 UTC
This bug seems to be a duplicate of bug #266471.

*** This bug has been marked as a duplicate of bug 266471 ***