Boost logo

Boost :

Subject: [boost] Compilation error's while building boost 1_44_0 on Solaris (Sun Studio 10)
From: Nakul Virmani (nakulvirmani_at_[hidden])
Date: 2010-08-25 02:21:16


Hi All, I am trying to build boost version 1_44_0 on Solaris.The Solaris box
has Sun Studio 10 installed.

The compiler details are

bash-2.05$ CC -V
CC: Sun C++ 5.7 2005/01/07

I am using the following command to build boost libraries

*bash-2.05$ bjam
--build-dir=/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost
toolset=sun stage*

But i get the below compilation errors, not even one of the projects build

sun.compile.c++
/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boo
st/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/fi
le_descriptor.o
Notice: The Early Access serial number will expire in -7 days.
In order to purchase the product, visit http://www.sun.com/forte/buy.html
or contact your Forte Tools reseller.
"libs/iostreams/src/file_descriptor.cpp", line 352: Error: Could not find
boost:
:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 355: Error: Could not find
boost:
:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 360: Error: Could not find
boost:
:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i

ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 380: Error: Could not find
boost:

:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i

ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 385: Error: Could not find
boost:

:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i

ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 393: Error: Using static_cast
to

convert from boost::iostreams::file_descriptor_flags to
boost::iostreams::detail

::file_descriptor_impl::flags not allowed.
6 Error(s) detected.

"CC" -library=stlport4 -xO4 -mt -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DB

OOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." -c
-o

"/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boost/bin.v2/libs/

iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/file_descriptor.o

" "libs/iostreams/src/file_descriptor.cpp"

...failed sun.compile.c++
/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build

-boost/boost/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threadin

g-multi/file_descriptor.o...
sun.compile.c++
/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boo

st/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/ma

pped_file.o
Notice: The Early Access serial number will expire in -7 days.
In order to purchase the product, visit http://www.sun.com/forte/buy.html
or contact your Forte Tools reseller.
"./boost/type_traits/is_array.hpp", line 41: Error: Multiple declaration for
boo

st::is_array.
"./boost/type_traits/is_array.hpp", line 42: Error: Multiple declaration for
boo

st::is_array.
"./boost/type_traits/is_array.hpp", line 43: Error: Multiple declaration for
boo

st::is_array.
"./boost/type_traits/is_array.hpp", line 44: Error: Multiple declaration for
boo

st::is_array.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 95: Error: The
type

of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1> is dependent
on

another argument.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 95: Error:
Partial s

pecialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 112: Error:
Partial

specialization parameter F is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 172: Error: The
type

of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1,
boost::mpl::aux

::P2> is dependent on another argument.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 172: Error:
Partial

specialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 189: Error:
Partial

specialization parameter F is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 254: Error: The
type

of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1,
boost::mpl::aux

::P2, boost::mpl::aux::P3> is dependent on another argument.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 254: Error:
Partial

specialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 271: Error:
Partial

specialization parameter F is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 339: Error: The
type

of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1,
boost::mpl::aux

::P2, boost::mpl::aux::P3, boost::mpl::aux::P4> is dependent on another
argument

.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 339: Error:
Partial

specialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 357: Error:
Partial

specialization parameter F is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 427: Error: The
type

of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1,
boost::mpl::aux

::P2, boost::mpl::aux::P3, boost::mpl::aux::P4, boost::mpl::aux::P5> is
dependen

t on another argument.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 427: Error:
Partial

specialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 445: Error:
Partial

specialization parameter F is not used in the arguments.
"libs/iostreams/src/mapped_file.cpp", line 441: Error: Could not find
boost::sha

red_ptr<boost::iostreams::detail::mapped_file_impl>::shared_ptr(boost::iostreams

::detail::mapped_file_impl*) to initialize pimpl_.
20 Error(s) detected.

Am i missing something? Do i need to do any configuration changes? I will
appreciate your input's.

Regards,
Nakul


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk