Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distutils fails to build C extensions with XCode 5.1 and OS X 10.9 (Mavericks) #65443

Closed
kfrazier mannequin opened this issue Apr 15, 2014 · 2 comments
Closed

distutils fails to build C extensions with XCode 5.1 and OS X 10.9 (Mavericks) #65443

kfrazier mannequin opened this issue Apr 15, 2014 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@kfrazier
Copy link
Mannequin

kfrazier mannequin commented Apr 15, 2014

BPO 21244
Nosy @jaraco, @ned-deily, @merwok, @dstufft
Files
  • toysetup.py: Simplified setup.py file to demonstrate the issue
  • 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 = None
    closed_at = <Date 2014-04-16.01:37:06.888>
    created_at = <Date 2014-04-15.19:16:26.860>
    labels = ['library']
    title = 'distutils fails to build C extensions with XCode 5.1 and OS X 10.9 (Mavericks)'
    updated_at = <Date 2014-04-16.01:37:06.868>
    user = 'https://bugs.python.org/kfrazier'

    bugs.python.org fields:

    activity = <Date 2014-04-16.01:37:06.868>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-04-16.01:37:06.888>
    closer = 'ned.deily'
    components = ['Distutils']
    creation = <Date 2014-04-15.19:16:26.860>
    creator = 'kfrazier'
    dependencies = []
    files = ['34889']
    hgrepos = []
    issue_num = 21244
    keywords = []
    message_count = 2.0
    messages = ['216363', '216418']
    nosy_count = 5.0
    nosy_names = ['jaraco', 'ned.deily', 'eric.araujo', 'kfrazier', 'dstufft']
    pr_nums = []
    priority = 'normal'
    resolution = 'third party'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue21244'
    versions = ['Python 2.7']

    @kfrazier
    Copy link
    Mannequin Author

    kfrazier mannequin commented Apr 15, 2014

    Using the stock Python shipped by Apple with OS X 10.9 Mavericks and XCode 5.1, Mercurial (and other Python extensions) encounter an error like:

    cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mercurial/base85.c -o /private/var/folders/qv/tv81r5_9119bs3jwj3g2rp540000gn/T/hgtests._a6HZj/build/temp.macosx-10.9-intel-2.7/mercurial/base85.o
    clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
    clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
    error: command 'cc' failed with exit status 1
    make: *** [tests] Error 1

    This can be worked around with:

    export CFLAGS=-Qunused-arguments

    On my machine, Python was build with clang-500.0.68 and the XCode 5.1 updates it to clang-503.0.40. I will include a simple setup.py that can be run against Mercurial's head to demonstrate the issue.

    @kfrazier kfrazier mannequin added build The build process and cross-build stdlib Python modules in the Lib dir labels Apr 15, 2014
    @ned-deily
    Copy link
    Member

    This is a problem specifically with the Apple-supplied system Pythons in OS X 10.9. It's due to the obsolete configuration parameters used in their build of Python and due to changes in Xcode 5.1. Expect Apple to fix it in an upcoming maintenance release of OS X 10.9.x.

    @ned-deily ned-deily removed the build The build process and cross-build label Apr 16, 2014
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant