compilation note for OS X 10.6

Hello,

I am new to mac computers, and just started getting set up on a system
running Snow Leopard. I installed hdf5-1.8.3 and then tried to install
h5py, and got an error message about the dylib not being appropriate
to the platform. I thought the issue might be that hdf5 compiled as 32
bit, and python wanted 64 bits, so I added the following to my
~/.profile and recompiled hdf5:

export CFLAGS="-arch x86_64 "
LDFLAGS="-arch x86_64 "
FFLAGS="-arch x86_64 "

That seemed to work, h5py's unit tests now pass.

Would the HDF5 group consider testing future versions on OS X 10.6?
Snow Leopard is a significant step to an all 64-bit mac platform,
perhaps the hdf5 config scripts could be improved to include "-arch
x86_64".

Regards,
Darren

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

Elena

···

On Oct 19, 2009, at 11:18 AM, Darren Dale wrote:

Hello,

I am new to mac computers, and just started getting set up on a system
running Snow Leopard. I installed hdf5-1.8.3 and then tried to install
h5py, and got an error message about the dylib not being appropriate
to the platform. I thought the issue might be that hdf5 compiled as 32
bit, and python wanted 64 bits, so I added the following to my
~/.profile and recompiled hdf5:

export CFLAGS="-arch x86_64 "
LDFLAGS="-arch x86_64 "
FFLAGS="-arch x86_64 "

That seemed to work, h5py's unit tests now pass.

Would the HDF5 group consider testing future versions on OS X 10.6?
Snow Leopard is a significant step to an all 64-bit mac platform,
perhaps the hdf5 config scripts could be improved to include "-arch
x86_64".

Regards,
Darren

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

FYI, normally, you can combine multiple arch flags (e.g., “-arch x86_64 -arch i386”) to build universal binaries, but this doesn’t seem to work for HDF5 (I forget the exact error). The workaround is to compile each file separately for each architecture and use “lipo” to combine the .o files. This is how the MacPorts version of HDF5 is compiled. To see the exact commands that MacPorts executes, type:

  sudo port -dv install hdf5-18 +universal

(I am the maintainer of this port, so let me know if something looks off. See also https://svn.macosforge.org/repository/macports/trunk/dports/science/hdf5-18/Portfile)

···

On Oct 19, 2009, at 2:02 PM, Elena Pourmal wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

Elena
On Oct 19, 2009, at 11:18 AM, Darren Dale wrote:

Hello,

I am new to mac computers, and just started getting set up on a system
running Snow Leopard. I installed hdf5-1.8.3 and then tried to install
h5py, and got an error message about the dylib not being appropriate
to the platform. I thought the issue might be that hdf5 compiled as 32
bit, and python wanted 64 bits, so I added the following to my
~/.profile and recompiled hdf5:

export CFLAGS="-arch x86_64 "
LDFLAGS="-arch x86_64 "
FFLAGS="-arch x86_64 "

That seemed to work, h5py's unit tests now pass.

Would the HDF5 group consider testing future versions on OS X 10.6?
Snow Leopard is a significant step to an all 64-bit mac platform,
perhaps the hdf5 config scripts could be improved to include "-arch
x86_64".

Regards,
Darren

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
Mark

Hi Elena,

···

On Mon, Oct 19, 2009 at 3:02 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

That's great news, thanks!

Darren

In fact better still would be to build it '4 way universal'. That is,
use -arch i386 -arch x86_64 -arch ppc -arch ppc64.

···

On 10/19/09 2:02 PM, Elena Pourmal said:

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully
use compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I
also use Intel 10.0 compiler to build 32 and 64-bit versions of the
libraries. Our pre-built binaries for 1.8.3 are 32-bit (I learned
about the flag after the HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid
November).

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

I just installed hdf5-1.8.4 on snow leopard. The default configuration
is still for 32 bit, was it not possible to add support for 64 bit it
the apple configuration files? Maybe it is a minor issue, but the
system python on snow leopard is 64 bit, so python packages like h5py
and pytables need 64-bit hdf5.

Darren

···

On Mon, Oct 19, 2009 at 2:02 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

It does not Work because the H5Detect program that is compiled and run at the beginning has to be adjusted for each arch being used: 32 and 64 bit, PPC and intel. I actually have a version of H5Detect.c that _will_ work for universal binaries thus avoiding all the lipo stuff.

  Just FYI. I had to create this in the course of creating the CMake based build system for HDF5 Version 1.6.x

Mike Jackson

···

On Oct 19, 2009, at 3:13 PM, Mark Moll wrote:

FYI, normally, you can combine multiple arch flags (e.g., “-arch x86_64 -arch i386”) to build universal binaries, but this doesn’t seem to work for HDF5 (I forget the exact error). The workaround is to compile each file separately for each architecture and use “lipo” to combine the .o files. This is how the MacPorts version of HDF5 is compiled. To see the exact commands that MacPorts executes, type:

  sudo port -dv install hdf5-18 +universal

(I am the maintainer of this port, so let me know if something looks off. See also https://svn.macosforge.org/repository/macports/trunk/dports/science/hdf5-18/Portfile)

On Oct 19, 2009, at 2:02 PM, Elena Pourmal wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

Elena
On Oct 19, 2009, at 11:18 AM, Darren Dale wrote:

Hello,

I am new to mac computers, and just started getting set up on a system
running Snow Leopard. I installed hdf5-1.8.3 and then tried to install
h5py, and got an error message about the dylib not being appropriate
to the platform. I thought the issue might be that hdf5 compiled as 32
bit, and python wanted 64 bits, so I added the following to my
~/.profile and recompiled hdf5:

export CFLAGS="-arch x86_64 "
LDFLAGS="-arch x86_64 "
FFLAGS="-arch x86_64 "

That seemed to work, h5py's unit tests now pass.

Would the HDF5 group consider testing future versions on OS X 10.6?
Snow Leopard is a significant step to an all 64-bit mac platform,
perhaps the hdf5 config scripts could be improved to include "-arch
x86_64".

Regards,
Darren

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
Mark

BTW, I've got 10.6.1 on my laptop and I routinely build & test the 32-bit version of the HDF5 distribution.

  Quincey

···

On Oct 19, 2009, at 2:17 PM, Darren Dale wrote:

Hi Elena,

On Mon, Oct 19, 2009 at 3:02 PM, Elena Pourmal > <epourmal@hdfgroup.org> wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

That's great news, thanks!

Sean and All,

Thank you for your responses. It looks like there is quite a demand for universal binaries.
I will try to build them and will probably return to the forum with the questions :slight_smile:

Thanks!

Elena

···

On Oct 19, 2009, at 8:56 PM, Sean McBride wrote:

On 10/19/09 2:02 PM, Elena Pourmal said:

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully
use compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I
also use Intel 10.0 compiler to build 32 and 64-bit versions of the
libraries. Our pre-built binaries for 1.8.3 are 32-bit (I learned
about the flag after the HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid
November).

In fact better still would be to build it '4 way universal'. That is,
use -arch i386 -arch x86_64 -arch ppc -arch ppc64.

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

You will probably have to build HDF5 1.8.4 yourself on Snow Leopard. My guess is that since 10.6 defaults to a 64 bit build you should get a 64 bit HDF5 library. I would NOT try to use multiple archs in the same build with HDF5 as the code is not setup correctly for that type of install using the autoconf system. You would have to build in separate directories then use "lipo" to glue everything together into a Universal Binary.

If you _really_ want to live on the edge there is a CMake based version of HDF5 1.8.4 that is being worked on by a few of us. I'll warn you now that as of this morning (Nov 24. 2009) a few of the tests were NOT passing on OS X (vfd and SZip). The Szip can be explained because I was not building with SZip support. Not sure why the vfd is failing.

http://gitorious.org/hdf5/hdf5-v18

http://my.cdash.org/index.php?project=hdf5-v18

···

_________________________________________________________
Mike Jackson mike.jackson@bluequartz.net

On Nov 24, 2009, at 9:48 AM, Darren Dale wrote:

On Mon, Oct 19, 2009 at 2:02 PM, Elena Pourmal > <epourmal@hdfgroup.org> wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

I just installed hdf5-1.8.4 on snow leopard. The default configuration
is still for 32 bit, was it not possible to add support for 64 bit it
the apple configuration files? Maybe it is a minor issue, but the
system python on snow leopard is 64 bit, so python packages like h5py
and pytables need 64-bit hdf5.

Darren

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi Darren,

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

I just installed hdf5-1.8.4 on snow leopard. The default configuration
is still for 32 bit, was it not possible to add support for 64 bit it
the apple configuration files?

Hmmm.. Which binary did you install? We provided 64-bit built with Intel compiler (static libraries only).See http://www.hdfgroup.org/HDF5/release/obtain5.html

My machine was just upgraded and I didn't have a chance to build universal binaries yet for the official distribution (and it will not be a pure 1.8.4 since one of the files needs modifications in order to do so).

But I built 64-bit HDF5 shared and static libraries without any problems on my machine:

uname -ar
Darwin pahra-2.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

And to my knowledge we do not set any flags to default the build to 32-bit.

Could you please send me output of the configure command? I would also suggest to check with the simple "Hello, World" program that your compiler you used to build HDF5 does indeed create 64-bit executables.

Thank you!

Elena

···

On Nov 24, 2009, at 8:48 AM, Darren Dale wrote:

On Mon, Oct 19, 2009 at 2:02 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:
Maybe it is a minor issue, but the
system python on snow leopard is 64 bit, so python packages like h5py
and pytables need 64-bit hdf5.

Darren

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

As Mike said, it would be best if you don't rely on runtime tests for
things like pointer size and endianness. Then you can just pass all the
-arch flags and you have a Universal Binary. Many cross-platform unix-
based automake projects do make these assumptions, but they can be avoided.

···

On 10/20/09 7:30 AM, Elena Pourmal said:

Thank you for your responses. It looks like there is quite a demand
for universal binaries.
I will try to build them and will probably return to the forum with
the questions :slight_smile:

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

Sorry, I must not have been clear. I installed from source, and hdf5
yielded a 32-bit library by default, which doesn't seem appropriate
for snow leopard. That was the point of my message.

Darren

···

On Tue, Nov 24, 2009 at 9:58 AM, Michael Jackson <mike.jackson@bluequartz.net> wrote:

You will probably have to build HDF5 1.8.4 yourself on Snow Leopard. My
guess is that since 10.6 defaults to a 64 bit build you should get a 64 bit
HDF5 library.

I installed from source.

···

On Tue, Dec 1, 2009 at 12:15 AM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Hi Darren,

On Nov 24, 2009, at 8:48 AM, Darren Dale wrote:

On Mon, Oct 19, 2009 at 2:02 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

I just installed hdf5-1.8.4 on snow leopard. The default configuration
is still for 32 bit, was it not possible to add support for 64 bit it
the apple configuration files?

Hmmm.. Which binary did you install?

Yep. Completely missed that. Hmm. I would say somewhere in the autoconf tools there is an explicit setting for 32 bit builds. You may want to grep though the autoconf files and see if "-arch i386" is explicitly set somewhere.

···

_________________________________________________________
Mike Jackson mike.jackson@bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio

On Nov 24, 2009, at 10:06 AM, Darren Dale wrote:

On Tue, Nov 24, 2009 at 9:58 AM, Michael Jackson > <mike.jackson@bluequartz.net> wrote:

You will probably have to build HDF5 1.8.4 yourself on Snow Leopard. My
guess is that since 10.6 defaults to a 64 bit build you should get a 64 bit
HDF5 library.

Sorry, I must not have been clear. I installed from source, and hdf5
yielded a 32-bit library by default, which doesn't seem appropriate
for snow leopard. That was the point of my message.

Darren

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

I installed from source and was only able to yield a 64-bit binary
after setting environment variables. Like I said earlier in this
thread, I think the configuration tools look at the output of uname,
which is i386 (probably because the kernel is 32 bit, the rest of the
environment is 64 bit), and conclude that snow leopard is 32 bit.

···

On Tue, Dec 1, 2009 at 7:44 AM, Darren Dale <dsdale24@gmail.com> wrote:

On Tue, Dec 1, 2009 at 12:15 AM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Hi Darren,

On Nov 24, 2009, at 8:48 AM, Darren Dale wrote:

On Mon, Oct 19, 2009 at 2:02 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

I just installed hdf5-1.8.4 on snow leopard. The default configuration
is still for 32 bit, was it not possible to add support for 64 bit it
the apple configuration files?

Hmmm.. Which binary did you install?

I installed from source.

I think it is because "uname -m" returns i386. Snow Leopard's kernel
is still 32 bit, but the libraries are 64 bit.

···

On Tue, Nov 24, 2009 at 10:13 AM, Michael Jackson <mike.jackson@bluequartz.net> wrote:

Yep. Completely missed that. Hmm. I would say somewhere in the autoconf
tools there is an explicit setting for 32 bit builds. You may want to grep
though the autoconf files and see if "-arch i386" is explicitly set
somewhere.

did you try setting the proper flags for the ./configure to pass -arch x86_64 to the compiler?

mike jackson.

···

On Dec 1, 2009, at 7:50 AM, Darren Dale wrote:

On Tue, Dec 1, 2009 at 7:44 AM, Darren Dale <dsdale24@gmail.com> > wrote:

On Tue, Dec 1, 2009 at 12:15 AM, Elena Pourmal >> <epourmal@hdfgroup.org> wrote:

Hi Darren,

On Nov 24, 2009, at 8:48 AM, Darren Dale wrote:

On Mon, Oct 19, 2009 at 2:02 PM, Elena Pourmal <epourmal@hdfgroup.org >>>> > wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries. Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid November).

I just installed hdf5-1.8.4 on snow leopard. The default configuration
is still for 32 bit, was it not possible to add support for 64 bit it
the apple configuration files?

Hmmm.. Which binary did you install?

I installed from source.

I installed from source and was only able to yield a 64-bit binary
after setting environment variables. Like I said earlier in this
thread, I think the configuration tools look at the output of uname,
which is i386 (probably because the kernel is 32 bit, the rest of the
environment is 64 bit), and conclude that snow leopard is 32 bit.

Snow Leopard's kernel is also both 32 and 64 bit, though you have to
choose at boot time which you want. On most machines the default is
32. But I believe in either case uname returns i386. Perhaps the
autoconf files are looking at uname's output?

···

On 11/24/09 10:22 AM, Darren Dale said:

Yep. Completely missed that. Hmm. I would say somewhere in the autoconf
tools there is an explicit setting for 32 bit builds. You may want to grep
though the autoconf files and see if "-arch i386" is explicitly set
somewhere.

I think it is because "uname -m" returns i386. Snow Leopard's kernel
is still 32 bit, but the libraries are 64 bit.

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

Please strike "only" from my first sentence, it was misleading. No, I
didn't try what you suggest, as I was able to build after setting
environment variables.

···

On Tue, Dec 1, 2009 at 8:22 AM, Michael Jackson <mike.jackson@bluequartz.net> wrote:

On Dec 1, 2009, at 7:50 AM, Darren Dale wrote:

On Tue, Dec 1, 2009 at 7:44 AM, Darren Dale <dsdale24@gmail.com> wrote:

On Tue, Dec 1, 2009 at 12:15 AM, Elena Pourmal <epourmal@hdfgroup.org> >>> wrote:

Hi Darren,

On Nov 24, 2009, at 8:48 AM, Darren Dale wrote:

On Mon, Oct 19, 2009 at 2:02 PM, Elena Pourmal <epourmal@hdfgroup.org> >>>>> wrote:

Hi Darren,

My machine is OS X 10.5.8 (will be upgraded soon), but I successfully
use
compiler -arch x86_64 to build HDF5 libraries (1.8 and trunk). I also
use
Intel 10.0 compiler to build 32 and 64-bit versions of the libraries.
Our
pre-built binaries for 1.8.3 are 32-bit (I learned about the flag
after the
HDF5 1.8.3 release ;-).

I will build both 32 and 64-bit binaries for 1.8.4 (coming in mid
November).

I just installed hdf5-1.8.4 on snow leopard. The default configuration
is still for 32 bit, was it not possible to add support for 64 bit it
the apple configuration files?

Hmmm.. Which binary did you install?

I installed from source.

I installed from source and was only able to yield a 64-bit binary
after setting environment variables. Like I said earlier in this
thread, I think the configuration tools look at the output of uname,
which is i386 (probably because the kernel is 32 bit, the rest of the
environment is 64 bit), and conclude that snow leopard is 32 bit.

did you try setting the proper flags for the ./configure to pass -arch
x86_64 to the compiler?