Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516436 - [MacOS] bootstrap fails due to python-2.7.3-patched
Summary: [MacOS] bootstrap fails due to python-2.7.3-patched
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-05 12:21 UTC by iloveosxzfs
Modified: 2020-12-08 20:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
python-2.7.3-patched build log (python273patched-osx-bootstrap-failure.txt,44.58 KB, text/plain)
2014-07-05 12:22 UTC, iloveosxzfs
Details
have bootstrap use the non-patched version of 2.7.3 (bootstrap-fix-python-2.7.3.patch,318 bytes, patch)
2014-07-05 12:33 UTC, iloveosxzfs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description iloveosxzfs 2014-07-05 12:21:11 UTC
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.
Comment 1 iloveosxzfs 2014-07-05 12:22:04 UTC
Created attachment 380230 [details]
python-2.7.3-patched build log
Comment 2 iloveosxzfs 2014-07-05 12:33:43 UTC
Created attachment 380232 [details, diff]
have bootstrap use the non-patched version of 2.7.3
Comment 3 iloveosxzfs 2014-07-18 06:16:24 UTC
This is still happening as of today.
Comment 4 Fabian Groffen gentoo-dev 2014-08-13 17:39:41 UTC
Weird, what OSX is this?
Comment 5 Fabian Groffen gentoo-dev 2015-05-31 10:19:03 UTC
I could not reproduce this problem today.
Comment 6 iloveosxzfs 2015-06-01 22:34:15 UTC
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
Comment 7 iloveosxzfs 2015-06-01 22:44:39 UTC
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.
Comment 8 Fabian Groffen gentoo-dev 2017-09-12 11:14:59 UTC
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).
Comment 9 iloveosxzfs 2020-12-08 20:26:07 UTC
I am on Big Sur now.