Skip to content

ctypes compilation error on SnowLeopard #51167

Closed

Description

@ronaldoussoren
BPO 6918
Nosy @warsaw, @theller, @ronaldoussoren, @naro

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ronaldoussoren'
closed_at = <Date 2009-09-20.18:59:31.303>
created_at = <Date 2009-09-15.21:21:18.376>
labels = ['OS-mac', 'ctypes', 'build', 'release-blocker']
title = 'ctypes compilation error on SnowLeopard'
updated_at = <Date 2009-09-20.18:59:31.302>
user = 'https://github.com/ronaldoussoren'

bugs.python.org fields:

activity = <Date 2009-09-20.18:59:31.302>
actor = 'ronaldoussoren'
assignee = 'ronaldoussoren'
closed = True
closed_date = <Date 2009-09-20.18:59:31.303>
closer = 'ronaldoussoren'
components = ['macOS', 'ctypes']
creation = <Date 2009-09-15.21:21:18.376>
creator = 'ronaldoussoren'
dependencies = []
files = []
hgrepos = []
issue_num = 6918
keywords = []
message_count = 6.0
messages = ['92656', '92681', '92717', '92875', '92886', '92909']
nosy_count = 4.0
nosy_names = ['barry', 'theller', 'ronaldoussoren', 'naro']
pr_nums = []
priority = 'release blocker'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue6918'
versions = ['Python 2.6', 'Python 2.7']

Activity

  1. ronaldoussoren commented on Sep 15, 2009

    @ronaldoussoren
    ContributorAuthor

    When I compile the trunk on MacOS X 10.6 I get a compile (or rather
    link) error in ctypes:

    ld: in build/temp.macosx-10.5-fat3-
    2.7/Users/ronald/Projects/python/python-trunk-
    clean/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin.o, unsupported
    encoding in FDE for architecture ppc

    This makes it impossible to build a univeral binary Python framework on
    OSX 10.6.

    I don't think I'm running into the same issue with PyObjC, it that works
    I'll port PyObjC's version of ppc-darwin to the version of libffi that's
    used by ctypes.

  2. added
    build
    on Sep 15, 2009
  3. warsaw commented on Sep 16, 2009

    @warsaw
    Member

    Agreed this should be a release blocker for 2.6.3

  4. ronaldoussoren commented on Sep 16, 2009

    @ronaldoussoren
    ContributorAuthor

    Annoyingly PyObjC suffers from the same issue. I hadn't noticed this yet
    because I've been linked to the system copy of libffi the last couple of
    months.

    Luckily Apple has already released the source code for libffi in 10.6
    (see http://www.opensource.apple.com/source/libffi/libffi-15/, or
    http://www.opensource.apple.com/tarballs/libffi/libffi-15.tar.gz).

    Next steps:

    • Check diffs between this release and the one in ctypes
    • Update ctypes libffi_osx based on those differences
    • Test the result on 10.5 and 10.6
  5. theller commented on Sep 19, 2009

    @theller

    This one is fixed, isn't it?

    See for example the buildbot output at

    http://www.python.org/dev/buildbot/2.6/builders/x86%20osx.5%202.6/builds/566/steps/compile/logs/stdio

    (Search for "building '_ctypes' extension" on the page)

  6. ronaldoussoren commented on Sep 20, 2009

    @ronaldoussoren
    ContributorAuthor

    Thomas: I haven't fixed anything yet.

    The error only happens when building a PPC binary (either a single-
    architecture build on a PPC machine or a fat binary).

    The error occurs in assembly files that contain manually constructed C++
    exception stack unwind helper segments, I guess those are not entirely
    valid and the linker got more strict.

  7. ronaldoussoren commented on Sep 20, 2009

    @ronaldoussoren
    ContributorAuthor

    I've merged the latest copy of Apple's version of libffi into libffi_osx,
    that ensures that libffi compiles again on OSX 10.6.

    Checked in in r74972 (trunk), r74973 (2.6), r74974 (3.x), r74975 (3.1).

  8. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

OS-macbuildrelease-blockertopic-ctypes

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions