Compiling 64 bit python on a mac - cannot compute sizeof (int)

K

Keflavich

I'm trying to compile a 64 bit version of python 2.6.2 on my mac (OS X
10.5.7), and am running into a problem during the configure stage.

I configure with:
../configure --enable-framework=/Library/Frameworks --enable-
universalsdk MACOSX_DEPLOYMENT_TARGET=10.5 --with-universal-archs=all -
with-readline-dir=/usr/local

because I want 64 and 32 bit, and I needed to install a 64 bit
readline as a prerequisite.

configure fails at:
checking size of int... configure: error: cannot compute sizeof (int)

I'm not reporting this as a bug because I know it's a problem with my
path somewhere (a friend with an identical computer but slightly
different setup was able to compile without a problem), but I don't
know what paths to change. Any tips?

Thanks,
Adam
 
M

Mark Dickinson

I'm trying to compile a 64 bit version of python 2.6.2 on my mac (OS X
10.5.7), and am running into a problem during the configure stage.

I configure with:
./configure --enable-framework=/Library/Frameworks --enable-
universalsdk MACOSX_DEPLOYMENT_TARGET=10.5 --with-universal-archs=all -
with-readline-dir=/usr/local

because I want 64 and 32 bit, and I needed to install a 64 bit
readline as a prerequisite.

configure fails at:
checking size of int... configure: error: cannot compute sizeof (int)

I confess that I don't fully understand the intricacies of the various
OS X autoconf options, but I think the problem is that the --enable-
universalsdk option takes a directory. If that directory isn't
given, it appears to default to /Developer/SDKs/MacOSX10.4u.sdk (at
least on my OS X 10.5.7 machine), which would likely conflict with
your MACOSX_DEPLOYMENT_TARGET=10.5 setting.

Try either changing MACOSX_DEPLOYMENT_TARGET to 10.4, or using --
enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk (or whatever the
appropriate directory is on your system). For some reason, I think
using --enable-universalsdk=/ also works on my system. If none of
that helps, you might try asking this question over on the pythonmac-
sig mailing list. (http://mail.python.org/mailman/listinfo/pythonmac-
sig)

Mark
 
A

Adam

I confess that I don't fully understand the intricacies of the various
OS X autoconf options, but I think the problem is that the --enable-
universalsdk option takes a directory.  If that directory isn't
given, it appears to default to /Developer/SDKs/MacOSX10.4u.sdk (at
least on my OS X 10.5.7 machine), which would likely conflict with
your MACOSX_DEPLOYMENT_TARGET=10.5 setting.

Try either changing MACOSX_DEPLOYMENT_TARGET to 10.4, or using --
enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk  (or whatever the
appropriate directory is on your system).  For some reason, I think
using --enable-universalsdk=/ also works on my system.  If none of
that helps, you might try asking this question over on the pythonmac-
sig mailing list. (http://mail.python.org/mailman/listinfo/pythonmac-
sig)

Mark

Thanks. I also determined after the fact that universalsdk was the
problem, but I didn't know how to fix it. Unfortunately, it turns out
what you identified was a transcription error on my part - I had been
using --enable-universalsdk instead of --enable-universalsdk=/.
Thanks for the help, I appreciate it!

Adam
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top