Problem compiling Python 3.2 in 32bit on Snow Leopard

Ned Deily nad at acm.org
Tue Jul 12 00:33:27 CEST 2011


In article <nad-6ECA50.22055001032011 at dough.gmane.org>,
 Ned Deily <nad at acm.org> wrote:
> In article <8t5vunFcasU1 at mid.individual.net>,
>  Gregory Ewing <greg.ewing at canterbury.ac.nz> wrote:
> > Attempting to compile Python 3.2 in 32-bit mode
> > on MacOSX 10.6.4 I get:
> > 
> > Undefined symbols:
> >    "___moddi3", referenced from:
> >        _PyThread_acquire_lock_timed in libpython3.2m.a(thread.o)
> >        _acquire_timed in libpython3.2m.a(_threadmodule.o)
> >    "___divdi3", referenced from:
> >        _PyThread_acquire_lock_timed in libpython3.2m.a(thread.o)
> >        _acquire_timed in libpython3.2m.a(_threadmodule.o)
> > ld: symbol(s) not found
> > /usr/bin/libtool: internal link edit command failed
> > 
> > Any suggestions?
> 
> http://article.gmane.org/gmane.comp.python.general/685151

UPDATE:  this problem has been fixed in the newly-released Python 3.2.1.   
On OX X 10.6, you should be able to build a 10.6 32-bit-only framework 
with:

./configure --enable-framework CFLAGS="-arch i386"  \
    LDFLAGS="-arch i386" MACOSX_DEPLOYMENT_TARGET=10.6

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list