Boost logo

Boost Users :

Subject: [Boost-users] Building Boost on Snow Leopard (with Xcode 3.2 installed)
From: Manfred Schwind (lists_at_[hidden])
Date: 2009-09-02 13:11:14


Hi,

I'm trying to build boost 1.40 on Mac OS X 10.6 Snow Leopard (with
Xcode 3.2 is installed).
This is the command I used to use on Mac OS X 10.5 Leopard and Xcode
3.1.x:

bjam --prefix=/somepath --layout=versioned toolset=darwin
architecture=combined address-model=32_64 link=static install

This used to give me great universal binaries (ppc/intel, 32-/64-bit).
But since installing Snow Leopard and Xcode 3.2 it does not build
anymore. No binaries are created and I get strange compiler errors
like this:

/usr/include/time.h:77: error: expected constructor, destructor, or
type conversion before ‘typedef’
/usr/include/time.h:124: error: ‘clock_t’ does not name a type
In file included from /usr/include/c++/4.2.1/cwchar:52,
                  from /usr/include/c++/4.2.1/bits/postypes.h:46,
                  from /usr/include/c++/4.2.1/iosfwd:49,
                  from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,
                  from /usr/include/c++/4.2.1/bits/char_traits.h:46,
                  from /usr/include/c++/4.2.1/string:47,
                  from ./boost/program_options/errors.hpp:12,
                  from ./boost/program_options/options_description.hpp:
12,
                  from libs/program_options/src/
options_description.cpp:10:

I _assume_ the problem is gcc 4.2 that was probably installed by Xcode
3.2. I am also not sure if gcc 4.2 even supports PCC code generation.
So is there a way to switch to gcc 4.0? Or any other solution for the
problem?
I tried toolset=gcc-4.0 instead of darwin. This resulted in some
binaries, but they are not universal anymore, as far as I can see.

Any ideas/hints how to successfully build boost on Snow Leopard?

Thank you very much,
Mani

--
http://mani.de - friendly software
iVolume - listen to music freehand
LittleSecrets - the encrypted notepad
Sahara - sand in your pocket
Watchdog - baffle the curious

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net