|
Boost Users : |
From: Sebastian Hauer (sebastian.hauer_at_[hidden])
Date: 2007-10-03 10:34:59
Hello Boris,
On 10/3/07, Boris <boriss_at_[hidden]> wrote:
> According to http://blogs.sun.com/sga/entry/boost_mini_howto "upcoming
> Boost 1.34 works with Sun C++ well out of the box" - can anyone confirm
> this? I'm trying to upgrade from Boost 1.33.1 to Boost 1.34.1 on Solaris
> 10/SPARC but ran into problems with both CC (Sun C++ 5.9 SunOS_sparc Patch
> 124863-01 2007/07/25) and g++ 3.4.6.
>
> With "./bjam --toolset=sun stage" I see this error (among others):
I think you need to compile with STLPort instead of Sun's default STL
implementation for boost. Check out Simon's newer postings regarding
boost on Solaris http://blogs.sun.com/sga/category/Boost .
I was able to compile boost 1.34.1 on Solaris 10 (sparc) using Sun C++
5.9 as well as gcc 3.4.6.
1. For Sun C++ 5.9: I can't remember if I had to change any jam
configs but here are the bjam command-line options I've used:
/path/to/boost-build/bin/bjam --build-dir=/path/to/build.suncc12 \
--stagedir=/path/to/stage.suncc12 \
toolset=sun
stdlib=sun-stlport -j2 -d2 stage
2. For gcc 3.4.6: You need to create a user-config.jam file with the
following settings (adjust the compiler flags to your arch,
$BOOST_SRC_ROOT is the directory were the extracted boost source
resides):
cat > $BOOST_SRC_ROOT/user-config.jam <<EOF
using gcc
: 3.4.6
: /usr/local/bin/g++
: <cflags>"-mcpu=v9 -m64"
<cxxflags>"-mcpu=v9 -m64"
<linkflags>"-mcpu=v9 -m64"
<linker-type>sun
;
EOF
And then build with:
/path/to/boost-build/bin/bjam --build-dir=/path/to/build.gcc \
--stagedir=/path/to/stage.gcc \
--user-config=$BOOST_SRC_ROOT/user-config.jam \
toolset=gcc -d2 -j2 stage
Good luck.
Regards,
Sebastian
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