Issue 15051: Can't compile Python 3.3a4 on OS X (original) (raw)

Issue15051

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.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/59256

classification

Title: Can't compile Python 3.3a4 on OS X
Type: compile error Stage:
Components: Build Versions: Python 3.3

process

Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: ronaldoussoren, vdupras
Priority: normal Keywords:

Created on 2012-06-12 15:40 by vdupras, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg162683 - (view) Author: Virgil Dupras (vdupras) (Python triager) Date: 2012-06-12 15:40
I try to compile Pyhton 3.3a4 on a OS X 10.7 with XCode 4.3.3 and it fails. I tried a few configuration options, but even with a basic "./configure && make", I get this: ./python.exe -SE -m sysconfig --generate-posix-vars Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to [:<exec_prefix>] python.exe(11771) malloc: *** mmap(size=7310873954244194304) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug Could not import runpy module make: *** [Lib/_sysconfigdata.py] Segmentation fault: 11 I tried setting PYTHONHOME to `pwd`, to no avail. Am I doing something wrong? The same thing happens with v3.3a3. If I go back to v3.2.3, it compiles fine on the same system. I also tried on the repo's tip, same error.
msg162684 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2012-06-12 15:45
There is a bug in the version of GCC that's shipped with Xcode. Try building using clang: configure ... CC=clang CXX=clang++
msg162685 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2012-06-12 15:48
This is a duplicate of #13241 We (and in particular Ned Deily are working on a change to the build process that would fix this, and will make it possible to build extensions on OSX regardless of which Xcode variant you use and which variant was used to build the python binaries.
History
Date User Action Args
2022-04-11 14:57:31 admin set github: 59256
2012-06-12 15:48:15 ronaldoussoren set status: open -> closedresolution: duplicatemessages: +
2012-06-12 15:45:29 ronaldoussoren set nosy: + ronaldoussorenmessages: +
2012-06-12 15:40:08 vdupras create