Boost logo

Boost-Build :

Subject: [Boost-build] Boost on Snow Leopard failing to build 32 bit target
From: Christopher Hunt (huntc_at_[hidden])
Date: 2009-08-30 06:09:57

Hi there,

I'm attempting to build boost on Snow Leopard (Mac OS X 10.6). If I
perform the standard commands i.e something like:

./ --with-libraries=signals,thread
sudo ./bjam install

then all appears well EXCEPT the libraries are built with a 64 bit
architecture. That's understandable
given Snow Leopard but I need backward compatibility and hence 32 bit
libraries. So if I then use:

sudo ./bjam address-model=32_64 install


sudo ./bjam address-model=32 install

I get errors. Specifically:

darwin.compile.c++ bin.v2/libs/signals/build/darwin-4.2.1/release/
In file included from ./boost/config/select_stdlib_config.hpp:17,
                from ./boost/config.hpp:40,
                from ./boost/type_traits/add_const.hpp:13,
                from ./boost/type_traits.hpp:13,
                from ./boost/signals/trackable.hpp:13,
                from libs/signals/src/trackable.cpp:12:
/usr/include/c++/4.2.1/cstddef:50:28: error: bits/c++config.h: No such
file or directory

as the first error. Here's a few more samples:

/usr/include/c++/4.2.1/iosfwd:45:29: error: bits/c++locale.h: No such
file or directory
/usr/include/c++/4.2.1/iosfwd:46:25: error: bits/c++io.h: No such file
or directory
/usr/include/c++/4.2.1/ext/atomicity.h:39:23: error: bits/gthr.h: No
such file or directory
/usr/include/c++/4.2.1/ext/atomicity.h:40:30: error: bits/
atomic_word.h: No such file or directory

I note that gcc has been updated and probably remains untested with
boost. The Snow Leopard version
option yields:

Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-
checking --enable-werror --
prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++
name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-
apple-darwin10 --with-gxx-
include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --
darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)

Any suggestions?

Kind regards,

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at