Any chance of access to OS X which defaults to 32-bit ?

1 view
Skip to first unread message

Dr. David Kirkby

unread,
Jul 30, 2010, 2:55:38 AM7/30/10
to sage-devel
Is there anyone that can provide me access to a OS X machine which defaults to
building 32-bit executable, but can build 64-bit executables? Ideally a machine
that has been used to compile 64-bit executables of Sage.

There's a lot of code in Sage which has something like this in it:

if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then
# OS X 64-bit hacks on OS X
fi

In Numpy, there's a 64-bit hack which looks pretty alful to me.

# numpy's distutils is buggy and runs a conftest without
# taking CFLAGS into account. With 64 bit OSX this results
# in *boom*
if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then
echo "64 bit MacIntel: copying fake gcc"
rm $SAGE_LOCAL/bin/gcc
cp gcc_fake $SAGE_LOCAL/bin/gcc
chmod 755 $SAGE_LOCAL/bin/gcc
fi

then later this fake gcc gets deleted.

if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then
echo "64 bit MacIntel: deleting fake gcc"
rm $SAGE_LOCAL/bin/gcc
fi


I think a much simpler solution is just to set

CC="gcc -m64"
export CC

and that's it.

No messing around with fake gccs. But I'd like access to an OS X machine which
defaults to 32-bit, but can build 64-bit, in order that I can test this.

Dave

William Stein

unread,
Jul 30, 2010, 12:16:21 PM7/30/10
to sage-...@googlegroups.com
On Thursday, July 29, 2010, Dr. David Kirkby <david....@onetel.net> wrote:
> Is there anyone that can provide me access to a OS X machine which defaults to building 32-bit executable, but can build 64-bit executables? Ideally a machine that has been used to compile 64-bit executables of Sage.
>

I have an Osx 10.5 intel Mac that I can get you remote access to,
which I think has the above property. This won't happen until I go
to CPUs though (Monday). Remind me!

> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Reply all
Reply to author
Forward
0 new messages