Problem compiling Python 3.2 in 32bit on Snow Leopard

Discussion in 'Python' started by Gregory Ewing, Mar 2, 2011.

  1. 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?

    --
    Greg
    Gregory Ewing, Mar 2, 2011
    #1
    1. Advertising

  2. Gregory Ewing

    Ned Deily Guest

    In article <>,
    Gregory Ewing <> 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

    --
    Ned Deily,
    Ned Deily, Mar 2, 2011
    #2
    1. Advertising

  3. Gregory Ewing

    Ned Deily Guest

    In article <>,
    Ned Deily <> wrote:
    > In article <>,
    > Gregory Ewing <> 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,
    Ned Deily, Jul 11, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alia Khouri

    python version in snow leopard?

    Alia Khouri, Jun 9, 2009, in forum: Python
    Replies:
    2
    Views:
    266
    Alia K
    Jun 9, 2009
  2. Roedy Green

    Java hom foer the Mac Snow Leopard?

    Roedy Green, Sep 2, 2009, in forum: Java
    Replies:
    7
    Views:
    382
    Kevin McMurtrie
    Sep 7, 2009
  3. dk
    Replies:
    2
    Views:
    436
    Ned Deily
    Jul 14, 2010
  4. Greg Ewing
    Replies:
    0
    Views:
    240
    Greg Ewing
    Apr 23, 2011
  5. theLemcke
    Replies:
    6
    Views:
    217
    Michael Granger
    Mar 3, 2011
Loading...

Share This Page