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: 3.3.0a4 compilation fails von MacOS Lion /10.7.4
Type: compile error Stage: resolved
Components: Build, macOS Versions: Python 3.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder: llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)
View: 13241
Assigned To: nobody Nosy List: ajung, hynek, ned.deily, nobody, ronaldoussoren
Priority: normal Keywords:

Created on 2012-06-01 17:27 by ajung, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg162082 - (view) Author: Andreas Jung (ajung) Date: 2012-06-01 17:27
ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols
ranlib: file: libpython3.3m.a(pymath.o) has no symbols
gcc   -framework CoreFoundation -o python.exe Modules/python.o libpython3.3m.a -ldl  -framework CoreFoundation     
gcc   -framework CoreFoundation -o Modules/_testembed Modules/_testembed.o libpython3.3m.a -ldl  -framework CoreFoundation     
./python.exe -SE -m sysconfig --generate-posix-vars
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
python.exe(41191) 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
msg162084 - (view) Author: Hynek Schlawack (hynek) * (Python committer) Date: 2012-06-01 17:54
Dupe of #13241. Apple's llvm-gcc is broken, please use clang instead (CC=clang ./configure).
msg162087 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2012-06-01 18:01
This is a known issue with using Apple's llvm-gcc compiler.  Make sure you've installed either the latest version of Xcode for OS X 10.7 (currently Xcode 4.3.x) and install the optional Command Line Tools component (Xcode -> Preferences -> Downloads -> Components) or download and install the latest version of the new standalone Command Line Tools package (late March) for 10.7 and then configure the build to use clang as compiler.  

    ./configure CC=clang

The defaults ./configure uses will be updated prior to beta releases of 3.3.
History
Date User Action Args
2022-04-11 14:57:31adminsetgithub: 59186
2012-06-01 18:01:26ned.deilysetmessages: + msg162087
2012-06-01 17:54:27hyneksetstatus: open -> closed

superseder: llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

nosy: + hynek
messages: + msg162084
resolution: duplicate
stage: resolved
2012-06-01 17:30:40r.david.murraysetassignee: ronaldoussoren -> nobody

nosy: + nobody, ned.deily
2012-06-01 17:29:50r.david.murraysetassignee: ronaldoussoren

nosy: + ronaldoussoren
components: + macOS
versions: + Python 3.3, - Python 3.4
2012-06-01 17:27:37ajungsettype: compile error
2012-06-01 17:27:30ajungcreate