Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 268705

Summary: dev-lang/python-2.6 / MIPS build failure + patch
Product: Gentoo Linux Reporter: Manuel Lauss <manuel.lauss>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: normal CC: axiator
Priority: High    
Version: unspecified   
Hardware: MIPS   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix Python-2.6 build on MIPS

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 ***