This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python 3.70b1 specifies non-existent compiler gcc++
Type: Stage: resolved
Components: macOS Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: culler, ned.deily, ronaldoussoren
Priority: normal Keywords: patch

Created on 2018-02-24 04:03 by culler, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5855 merged ned.deily, 2018-02-24 19:16
PR 5856 merged miss-islington, 2018-02-24 19:30
Messages (4)
msg312697 - (view) Author: Marc Culler (culler) * Date: 2018-02-24 04:03
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',
msg312746 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2018-02-24 19:30
New changeset acd7163c0a0674b2fb6cc0178d52cf90c953fbae by Ned Deily in branch 'master':
bpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855)
https://github.com/python/cpython/commit/acd7163c0a0674b2fb6cc0178d52cf90c953fbae
msg312749 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2018-02-24 19:59
New changeset d24c5a068c1831a8579a5915f44ae3b4344aba43 by Ned Deily (Miss Islington (bot)) in branch '3.7':
[3.7] bpo-32931: fix macOS 10.9+ installer c++ compiler name (GH-5856)
https://github.com/python/cpython/commit/d24c5a068c1831a8579a5915f44ae3b4344aba43
msg312750 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2018-02-24 20:02
Thanks for noticing!  Fixed for 3.7.0b2.
History
Date User Action Args
2022-04-11 14:58:58adminsetgithub: 77112
2018-02-24 20:02:00ned.deilysetstatus: open -> closed
versions: + Python 3.8
messages: + msg312750

resolution: fixed
stage: patch review -> resolved
2018-02-24 19:59:27ned.deilysetmessages: + msg312749
2018-02-24 19:30:55miss-islingtonsetpull_requests: + pull_request5631
2018-02-24 19:30:46ned.deilysetmessages: + msg312746
2018-02-24 19:16:46ned.deilysetkeywords: + patch
stage: patch review
pull_requests: + pull_request5630
2018-02-24 04:03:24cullercreate