Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310581 - python fails to bootstrap on x86_64-apple-darwin10
Summary: python fails to bootstrap on x86_64-apple-darwin10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: IA64 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-21 18:12 UTC by Guilherme Amadio
Modified: 2010-03-25 18:58 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Amadio gentoo-dev 2010-03-21 18:12:17 UTC
Python does not bootstrap and complains about liffi.

Solution: revert patch portage/dev/lang/python/files/python-2.6.2-no-special-darwin-libffi.patch

After that, python bootstrapped normally.

Reproducible: Always
Comment 1 Guilherme Amadio gentoo-dev 2010-03-21 18:14:48 UTC
thanks for heiko_, who knew that this was the patch to revert...
Comment 2 Fabian Groffen gentoo-dev 2010-03-23 07:40:52 UTC
Can I get the error output, please?  I don't know what to revert on that patch.
Comment 3 Guilherme Amadio gentoo-dev 2010-03-23 23:33:56 UTC
This is what I get:

configure: creating ./config.status
config.status: creating include/ffi.h
config.status: creating fficonfig.py
config.status: creating fficonfig.h
config.status: linking /Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Modules/_ctypes/libffi/src/x86/ffitarget.h to include/ffitarget.h
config.status: linking /Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/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 1876, in <module>
    main()
  File "./setup.py", line 1870, in main
    'Lib/smtpd.py']
  File "/Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/distutils/command/build.py", line 134, in run
    self.run_command(cmd_name)
  File "/Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "./setup.py", line 214, in build_extensions
    build_ext.build_extensions(self)
  File "/Users/amadio/Library/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self.build_extension(ext)
  File "./setup.py", line 249, in build_extension
    if not self.configure_ctypes(ext):
  File "./setup.py", line 1682, in configure_ctypes
    execfile(ffi_configfile, globals(), fficonfig)
  File "build/temp.macosx-10.4-i386-2.6/libffi/fficonfig.py", line 32, in <module>
    ffi_sources += ffi_platforms['X86_DARWIN']
KeyError: 'X86_DARWIN'
make: *** [sharedmods] Error 1
Comment 4 Heiko 2010-03-25 10:39:30 UTC
I can confirm that problem on my host. Reverting that patch was the quickest (and maybe dirtiest) i could come up with that day. Maybe that patch needs another patch as dependency that is not applied during bootstrap?
Comment 5 Fabian Groffen gentoo-dev 2010-03-25 11:46:19 UTC
Yesterday I updated a new python patched tarball that doesn't have that patch applied.  Is it still failing now?
Comment 6 Guilherme Amadio gentoo-dev 2010-03-25 18:58:20 UTC
It is fixed, I just tested it and python now bootstraps normally.