New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension modules fail to build on OS X 10.6 using python.org 2.x/3.x #51206
Comments
Potential 2.6.3 release blocker On OS X 10.6 (Snow Leopard), if you attempt to install a package with a
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: This can be especially baffling to those unfamiliar with nested include The root cause here is that Snow Leopard now uses gcc-4.2 by default but $ export CC=/usr/bin/gcc-4.0 Even for experienced developers, these can be non-trivial problems to There are two separate issues here I think:
Documenting and publicizing the problems somehow may be the only viable |
It should be possible to tweak distutils to do the right thing for Implementation sketch:
This bit would only be active on OSX. |
Tweaking distutils as you propose sounds like a good idea to help with |
There is a much easier solution for the 2.6.3 release: ensure that CC=gcc- That requires minimal changes to the build machinery and should be safe The only change to distutils I do want to make for 2.6.3 is to detect |
r75022 (trunk) and r75023 (2.6) add the other half of my proposal: That combined with explicit compilation using gcc-4.0 should solve these |
Explicitly defining CC during the installer build does seem to fix the I've attached a patch to build-installer.py to support setting CC to The patch also includes changes to the build process itself to use the It also includes fixes for two unrelated build problems noted during There are some open issues with the patch:
|
No regressions noted:
|
Please apply this for 2.6.3rc1 |
Committed in r75147 (trunk) and r75148 (2.6) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: