Trying to install 1.47 on Snow Leopard using clang toolset gives error "missing argument parent-requirements"

Hi -- I'm trying to install boost 1.47.0 on my Snow Leopard machine, using clang, but I can't seem even to build the b2 tool. The error I get is "missing argument parent-requirements". The full output is here: https://gist.github.com/1081527 If anyone could offer me any advice, I'd be very grateful -- I'm dying to play with Phoenix! :) Cheers, Doug.

On Jul 13, 2011, at 4:00 PM, doug livesey wrote:
Hi -- I'm trying to install boost 1.47.0 on my Snow Leopard machine, using clang, but I can't seem even to build the b2 tool. The error I get is "missing argument parent-requirements". The full output is here: https://gist.github.com/1081527 If anyone could offer me any advice, I'd be very grateful -- I'm dying to play with Phoenix! :)
That's odd - I didn't have any problems with it on my Mac (MacBookPro, 10.6.8, gcc and llvm). On the other hand, I didn't use --prefix -- Marshall Marshall Clow Idio Software mailto:mclow.lists@gmail.com A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki

On Thu, Jul 14, 2011 at 1:00 AM, doug livesey
Hi -- I'm trying to install boost 1.47.0 on my Snow Leopard machine, using clang, but I can't seem even to build the b2 tool. The error I get is "missing argument parent-requirements". The full output is here: https://gist.github.com/1081527
You should run the bootstrap script and b2 executable from the boost root directory (not tools/build/v2).
If anyone could offer me any advice, I'd be very grateful -- I'm dying to play with Phoenix! :)
You don't need to install anything if you want to play with phoenix. It is header only. Point your compiler to the proper include directory, read the docs, and off you go ;)
Cheers, Doug.

You should run the bootstrap script and b2 executable from the boost root directory (not tools/build/v2). Ah, yes, but I want to install b2 so that I can build boost myself (I'm using clang, not GCC), and the docs say to do that in tools/build/v2 first.
You don't need to install anything if you want to play with phoenix. It is header only. Unfortunately my project (and pretty much any others) also needs built boost libs, such as serializable.
As I say, I'm not even getting to the boost build, as it's the build tools
install that's failing. I have bjam, but it generates a warning about being
an incompatible version when I run it.
Incidentally, the bootstrap.sh in tools/build/v2 is slightly incorrect -- it
offers a --with-bjam option in the usage instructions, but there's no such
option in the script.
Thanks very much for the replies so far,
Doug.
On 14 July 2011 06:48, Thomas Heller
On Thu, Jul 14, 2011 at 1:00 AM, doug livesey
wrote: Hi -- I'm trying to install boost 1.47.0 on my Snow Leopard machine, using clang, but I can't seem even to build the b2 tool. The error I get is "missing argument parent-requirements". The full output is here: https://gist.github.com/1081527
You should run the bootstrap script and b2 executable from the boost root directory (not tools/build/v2).
If anyone could offer me any advice, I'd be very grateful -- I'm dying to play with Phoenix! :)
You don't need to install anything if you want to play with phoenix. It is header only. Point your compiler to the proper include directory, read the docs, and off you go ;)
Cheers, Doug.
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Thu, Jul 14, 2011 at 8:25 AM, doug livesey
You should run the bootstrap script and b2 executable from the boost root directory (not tools/build/v2). Ah, yes, but I want to install b2 so that I can build boost myself (I'm using clang, not GCC), and the docs say to do that in tools/build/v2 first.
Which docs? Did you try the Getting Started Guide? http://www.boost.org/doc/libs/1_47_0/more/getting_started/unix-variants.html... I may miss something ... but this procedure is working for me since quite a while now ... As for installing b2, it is enough to put it into $PATH

Which docs? Did you try the Getting Started Guide? Yes -- on the page you link to, it says "If you're using a compiler other than your system's default, you'll need to use Boost.Buildhttp://www.boost.org/doc/libs/1_47_0/tools/build/index.html to create binaries." I'm using clang (because that's the most up-to-date C++ compiler I've been able to install on my machine), so I need to build the binaries, I guess?
On 14 July 2011 08:20, Thomas Heller
On Thu, Jul 14, 2011 at 8:25 AM, doug livesey
wrote: You should run the bootstrap script and b2 executable from the boost root directory (not tools/build/v2). Ah, yes, but I want to install b2 so that I can build boost myself (I'm using clang, not GCC), and the docs say to do that in tools/build/v2 first.
Which docs? Did you try the Getting Started Guide?
http://www.boost.org/doc/libs/1_47_0/more/getting_started/unix-variants.html...
I may miss something ... but this procedure is working for me since quite a while now ... As for installing b2, it is enough to put it into $PATH _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Thu, Jul 14, 2011 at 9:32 AM, doug livesey
Which docs? Did you try the Getting Started Guide? Yes -- on the page you link to, it says "If you're using a compiler other than your system's default, you'll need to use Boost.Build to create binaries." I'm using clang (because that's the most up-to-date C++ compiler I've been able to install on my machine), so I need to build the binaries, I guess?
Building the Boost.Build binaries with the default system compiler should be fine. What you want to do is to invoke the actual building with a different toolset. This is what you want to do: $ cd boost_1_47_0 $ ./bootstrap.sh --prefix=/path/to/your/boost/installation $ ./b2 toolset=clang install these set of commands will build the b2 with gcc, but the libraries itself with clang. HTH, Thomas

That seems to have done the trick, thanks!
The install has worked, anyway -- I'll get around to testing it this
weekend.
Thanks very, very much!
Doug.
On 14 July 2011 08:42, Thomas Heller
On Thu, Jul 14, 2011 at 9:32 AM, doug livesey
wrote: Which docs? Did you try the Getting Started Guide? Yes -- on the page you link to, it says "If you're using a compiler other than your system's default, you'll need to use Boost.Build to create binaries." I'm using clang (because that's the most up-to-date C++ compiler I've been able to install on my machine), so I need to build the binaries, I guess?
Building the Boost.Build binaries with the default system compiler should be fine. What you want to do is to invoke the actual building with a different toolset. This is what you want to do: $ cd boost_1_47_0 $ ./bootstrap.sh --prefix=/path/to/your/boost/installation $ ./b2 toolset=clang install
these set of commands will build the b2 with gcc, but the libraries itself with clang.
HTH, Thomas _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

It works, and Phoenix rocks! Thanks again!
On 14 July 2011 19:05, doug livesey
That seems to have done the trick, thanks! The install has worked, anyway -- I'll get around to testing it this weekend. Thanks very, very much! Doug.
On 14 July 2011 08:42, Thomas Heller
wrote: On Thu, Jul 14, 2011 at 9:32 AM, doug livesey
wrote: Which docs? Did you try the Getting Started Guide? Yes -- on the page you link to, it says "If you're using a compiler other than your system's default, you'll need to use Boost.Build to create binaries." I'm using clang (because that's the most up-to-date C++ compiler I've been able to install on my machine), so I need to build the binaries, I guess?
Building the Boost.Build binaries with the default system compiler should be fine. What you want to do is to invoke the actual building with a different toolset. This is what you want to do: $ cd boost_1_47_0 $ ./bootstrap.sh --prefix=/path/to/your/boost/installation $ ./b2 toolset=clang install
these set of commands will build the b2 with gcc, but the libraries itself with clang.
HTH, Thomas _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
doug livesey
-
Marshall Clow
-
Thomas Heller