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

Python 3.70b1 specifies non-existent compiler gcc++ #77112

Closed
culler mannequin opened this issue Feb 24, 2018 · 4 comments
Closed

Python 3.70b1 specifies non-existent compiler gcc++ #77112

culler mannequin opened this issue Feb 24, 2018 · 4 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes OS-mac

Comments

@culler
Copy link
Mannequin

culler mannequin commented Feb 24, 2018

BPO 32931
Nosy @ronaldoussoren, @ned-deily
PRs
  • bpo-32931: fix macOS 10.9+ installer c++ compiler name #5855
  • [3.7] bpo-32931: fix macOS 10.9+ installer c++ compiler name (GH-5855) #5856
  • 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 2018-02-24.20:02:00.566>
    created_at = <Date 2018-02-24.04:03:24.438>
    labels = ['OS-mac', '3.7', '3.8']
    title = 'Python 3.70b1 specifies non-existent compiler gcc++'
    updated_at = <Date 2018-02-24.20:02:00.564>
    user = 'https://bugs.python.org/culler'

    bugs.python.org fields:

    activity = <Date 2018-02-24.20:02:00.564>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-02-24.20:02:00.566>
    closer = 'ned.deily'
    components = ['macOS']
    creation = <Date 2018-02-24.04:03:24.438>
    creator = 'culler'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32931
    keywords = ['patch']
    message_count = 4.0
    messages = ['312697', '312746', '312749', '312750']
    nosy_count = 3.0
    nosy_names = ['ronaldoussoren', 'ned.deily', 'culler']
    pr_nums = ['5855', '5856']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue32931'
    versions = ['Python 3.7', 'Python 3.8']

    @culler
    Copy link
    Mannequin Author

    culler mannequin commented Feb 24, 2018

    Compiling an external module in the 3.7.0b1 prerelease on macOS High Sierra failed for me because a compiler named "gcc++" was not found. As far as I can tell there is no such compiler in the current XCode release. I don't know if there ever was one. The culprit file is:

    /Library/Frameworks/Python.framework//Versions/3.7/lib/python3.7/_sysconfigdata_m_darwin_darwin.py

    The following patch fixed the problem for me:

    38c38
    < 'CXX': 'gcc++',
    ---

    'CXX': 'g++',
    484c484
    < 'LDCXXSHARED': 'gcc++ -bundle -undefined dynamic_lookup',
    ---
    'LDCXXSHARED': 'g++ -bundle -undefined dynamic_lookup',

    @culler culler mannequin added 3.7 (EOL) end of life OS-mac labels Feb 24, 2018
    @ned-deily
    Copy link
    Member

    New changeset acd7163 by Ned Deily in branch 'master':
    bpo-32931: fix macOS 10.9+ installer c++ compiler name (bpo-5855)
    acd7163

    @ned-deily
    Copy link
    Member

    New changeset d24c5a0 by Ned Deily (Miss Islington (bot)) in branch '3.7':
    [3.7] bpo-32931: fix macOS 10.9+ installer c++ compiler name (GH-5856)
    d24c5a0

    @ned-deily
    Copy link
    Member

    Thanks for noticing! Fixed for 3.7.0b2.

    @ned-deily ned-deily added the 3.8 only security fixes label Feb 24, 2018
    @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
    3.7 (EOL) end of life 3.8 only security fixes OS-mac
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant