[issue7184] build failures on Snow Leopard

Ned Deily report at bugs.python.org
Thu Oct 22 08:18:54 CEST 2009


Ned Deily <nad at acm.org> added the comment:

Building a batteries-included framework on OS X is not a simple task, 
especially on 10.6 Snow Leopard where the system default is to build 64-
bit archs.  There are several known build issues with building a 
complete framework on 10.6.  It's not clear what your intentions are. If 
you want a 64-bit build with everything included, you'll need to supply 
a 64-bit version of readline (which is not included in OS X) and, prior 
to building, you may need to delete any already installed python.org (or 
other 3rd-party) version of python2.6 in 
/Library/Frameworks/Python.framework/Version/2.6: you may end up with 
dynamic linking to a 32-bit version of the ncurses libraries from there.  
And Tkinter and Tk are problematic: there are some unresolved problems 
using the 64-bit Apple-supplied Tk in 10.6.  If you don't need ncurses 
et al, just ignore the build errors.  If you do need them, your best bet 
is to use or adapt the OS X installer build script, 
Mac/BuildScript/build-installer.py, and/or to stick with a 32-bit 
universal build.  There are still a number of rough edges with 64-bit 
builds.

There is perhaps one new wrinkle here: since you didn't specify --with-
universal-archs to configure, configure *thinks* it is building for 32-
bit and defaults to not supplying -arch to the gcc commands it 
generates; on 10.6, though, it looks like the absence of -arch causes a 
64-bit build to take place.  To get around that, configure may need to 
always supply -arch.  Also, I'm guessing that you didn't supply a 
deployment target which results in the somewhat confusing macosx-10.4-
i386 directory names and might have other implications.  (These 
observations are just from a quick look at your build output. This 
should be looked at more thoroughly when time is available.)

----------
assignee:  -> ronaldoussoren
components: +Macintosh
nosy: +ned.deily, ronaldoussoren

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7184>
_______________________________________


More information about the Python-bugs-list mailing list