Issue 14932: Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2 (original) (raw)

Issue14932

Created on 2012-05-28 10:57 by Thomas.Robitaille, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python3.3_log Thomas.Robitaille,2012-05-28 10:57
Messages (4)
msg161765 - (view) Author: Thomas Robitaille (Thomas.Robitaille) Date: 2012-05-28 10:57
I can build Python 2.6 to 3.2 on MacOS 10.7 with XCode 4.3.2 using solely: ./configure make But if I do this with Python 3.3 alpha 3 I get the following error: gcc -framework CoreFoundation -o python.exe Modules/python.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 [:<exec_prefix>] python.exe(92825) 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 The full log is attached.
msg161769 - (view) Author: Hynek Schlawack (hynek) * (Python committer) Date: 2012-05-28 11:39
Hello Thomas, I presume your gcc is Apple's llvm-gcc (gcc --version output starts with "i686-apple-darwin11-llvm-gcc-4.2"), which is unfortunately a known to miscompile Python 3.3. If you want to compile the latest Python 3.3 on OS X, use clang ("CC=clang ./configure" or "./configure CC=clang") which is also part of Apple's dev tools and works fine.
msg161771 - (view) Author: Thomas Robitaille (Thomas.Robitaille) Date: 2012-05-28 11:56
Thanks for the quick reply - wouldn't it make sense to add a directive to the configure script so that if the compiler matches 'i686-apple-darwin11-llvm-gcc-4.2', clang is used instead?
msg161777 - (view) Author: Hynek Schlawack (hynek) * (Python committer) Date: 2012-05-28 12:56
Have a look at which is dedicated to this problem, especially at .
History
Date User Action Args
2022-04-11 14:57:30 admin set github: 59137
2012-05-28 12:56:31 hynek set messages: +
2012-05-28 11:56:02 Thomas.Robitaille set messages: +
2012-05-28 11:39:52 hynek set status: open -> closedsuperseder: llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)nosy: + hynekmessages: + resolution: duplicatestage: resolved
2012-05-28 10:58:09 Thomas.Robitaille set type: compile error
2012-05-28 10:57:52 Thomas.Robitaille create