Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

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

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


keflavich at gmail

Jul 3, 2009, 9:30 AM

Post #1 of 3 (141 views)
Permalink
Compiling 64 bit python on a mac - cannot compute sizeof (int)

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
--
http://mail.python.org/mailman/listinfo/python-list


dickinsm at gmail

Jul 3, 2009, 1:18 PM

Post #2 of 3 (128 views)
Permalink
Re: Compiling 64 bit python on a mac - cannot compute sizeof (int) [In reply to]

On Jul 3, 5:30 pm, Keflavich <keflav...@gmail.com> wrote:
> 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
--
http://mail.python.org/mailman/listinfo/python-list


keflavich at gmail

Jul 3, 2009, 4:01 PM

Post #3 of 3 (126 views)
Permalink
Re: Compiling 64 bit python on a mac - cannot compute sizeof (int) [In reply to]

On Jul 3, 2:18 pm, Mark Dickinson <dicki...@gmail.com> wrote:
> On Jul 3, 5:30 pm, Keflavich <keflav...@gmail.com> wrote:
>
> > 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

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
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.