On OS X 10.9.3, the initial prefix bootstrap fails while building python-2.7.3-patched because _config_vars['CXXFLAGS'] is undefined. There are a few ways that worked to fix this: 1. Use the un-pre-patched python 2.7.3 2. Use the un-pre-patched python 2.7.5 (but this requires unxz, which I happen to have from Homebrew) 3. Manually patch python-2.7.3-patched to correct the problem by setting _config_vars['CXXFLAGS'] equal to _config_vars['CFLAGS'] before it is accessed. Full build log attached.
Created attachment 380230 [details] python-2.7.3-patched build log
Created attachment 380232 [details, diff] have bootstrap use the non-patched version of 2.7.3
This is still happening as of today.
Weird, what OSX is this?
I could not reproduce this problem today.
This still fails on OS X 10.8.5 with the latest snapshot bump (PV="20150531"). The bootstrap did finish successfully on OS X 10.9.3. clang -m64 -L/Users/joe/gentoo/tmp/usr/lib -o python.exe \ Modules/python.o \ libpython2.7.a -ldl -framework CoreFoundation Traceback (most recent call last): File "./setup.py", line 15, in <module> from distutils.command.build_ext import build_ext File "/Users/joe/gentoo/tmp/var/tmp/python-2.7.3/Python-2.7.3/Lib/distutils/command/build_ext.py", line 37, in <module> class build_ext (Command): File "/Users/joe/gentoo/tmp/var/tmp/python-2.7.3/Python-2.7.3/Lib/distutils/command/build_ext.py", line 67, in build_ext "(default: %s)" % get_platform()), File "/Users/joe/gentoo/tmp/var/tmp/python-2.7.3/Python-2.7.3/Lib/distutils/util.py", line 103, in get_platform cfgvars = get_config_vars() File "/Users/joe/gentoo/tmp/var/tmp/python-2.7.3/Python-2.7.3/Lib/distutils/sysconfig.py", line 568, in get_config_vars flags = _config_vars[key] KeyError: 'CXXFLAGS' make: *** [sharedmods] Error 1
s/10.9.3/10.10.3/ (The successful prefix bootstrap today was on Yosemite OS X 10.10.3 (14D136)) OS X 10.8.5 (12F2518) fails as described above.
Do you still have a need to bootstrap that 10.8.5? If not I'd rather ignore the issue and focus our resources on the latest version(s).
I am on Big Sur now.