Building with Sun Workshop 6

I've searched the archives, and haven't found a report of successfully building Boost using the Sun Workshop compiler, though some messages imply that people are using at least some of the libraries with Workshop. Although I realize we could build the libraries with gcc, we have quite a few projects set up in the workshop environment, and I'd like to have the option to use Boost libraries with them. Obviously nobody has built an appropriate toolset. In my naive attempts to create a toolset definiton, and in trying to create a static library from components like Date-Time library, I get error messages like: add_const.hpp, line 34: Warning: Too few arguments in macro BOOST_PP_CHECK_2. There are also errors involving BOOST_PP_LIST_FOR_EACH_I_M (among others). Can anyone offer me hints on how to get started in resolving these? Ultimately I'd like to have the whole suite compiled, but for the time being I'd be happy just using Date-Time. I'm willing to build a toolset file for this compiler, but I don't seem to have the expertise. If there's anyone that is able to provide guidance, I can put some time into this, and submit a toolset definition file so others can use Boost with this compiler.

markrday@yahoo.com wrote:
I've searched the archives, and haven't found a report of successfully building Boost using the Sun Workshop compiler, though some messages imply that people are using at least some of the libraries with Workshop.
Although I realize we could build the libraries with gcc, we have quite a few projects set up in the workshop environment, and I'd like to have the option to use Boost libraries with them. Obviously nobody has built an appropriate toolset. In my naive attempts to create a toolset definiton, and in trying to create a static library from components like Date-Time library, I get error messages like:
add_const.hpp, line 34: Warning: Too few arguments in macro BOOST_PP_CHECK_2.
There are also errors involving BOOST_PP_LIST_FOR_EACH_I_M (among others).
Can anyone offer me hints on how to get started in resolving these? Ultimately I'd like to have the whole suite compiled, but for the time being I'd be happy just using Date-Time.
I'm willing to build a toolset file for this compiler, but I don't seem to have the expertise. If there's anyone that is able to provide guidance, I can put some time into this, and submit a toolset definition file so others can use Boost with this compiler.
Try using the following pp-lib configuration: #define BOOST_PP_CONFIG_FLAGS() BOOST_PP_CONFIG_BCC() Paul Mensonides

Can anyone offer me hints on how to get started in resolving these?
Use latest cvs. It should be fixed already by Dave.
I'm willing to build a toolset file for this compiler, but I don't
There is one in tools section. I was using it to compile a lot of libraries with Sunpro 6 Gennadiy.

Can anyone offer me hints on how to get started in resolving
--- In Boost-Users@yahoogroups.com, "Gennadiy E. Rozental <rogeeff@m...>" <rogeeff@m...> wrote: these?
Use latest cvs. It should be fixed already by Dave.
I'm willing to build a toolset file for this compiler, but I don't
There is one in tools section. I was using it to compile a lot of libraries with Sunpro 6
Assertion: (../lnk/tmplmatchargs.cc, line 153) while processing /opt/src/freeware/boost/boost/type_traits/is_base_and_derived.hpp at
Thanks, I'm just returning from a week away, so I apologize for not maintaining the continuity of the thread. I was able to use cvs to grab the latest version and (semi)successfully used bjam to build the libraries. Initially, I'm most interested in the date_time functions, but eventually I'm sure we'll want to use additional modules. Building with both Workshop 6 update 2, and Workshop 7 give some errors in the global bjam build (I'll included these later). The date_time library appears to compile, but when I then try to compile one of the example programs I get the following errors: nautilus.35> CC -c -DBOOST_REGEX_NO_LIB=1 -DBOOST_REGEX_STATIC_LINK=1 -g -xtarget=generic +d -features=rtti -features=except -I"/opt/src/freeware/boost" days_alive.cpp "/opt/src/freeware/boost/boost/type_traits/is_convertible.hpp", line 191: Warning (Anachronism): Type names qualified by template parameters require "typename". "/opt/src/freeware/boost/boost/type_traits/is_convertible.hpp", line 191: Warning (Anachronism): Type names qualified by template parameters require "typename". "/opt/src/freeware/boost/boost/type_traits/is_convertible.hpp", line 191: Warning (Anachronism): Type names qualified by template parameters require "typename". "/opt/src/freeware/boost/boost/type_traits/is_convertible.hpp", line 191: Warning (Anachronism): Type names qualified by template parameters require "typename". line 87 I've tried the -features= flag with the normal and no% forms of anachronisms, extensions, and transitions, and none of these make a difference in getting this sample program to compile. The global build produces a lot of output; I've recognized two distinct error patterns. One is very similar to the above (Anachronism) warning, but for other source code files, and the other pattern includes messages like: CC -c -DBOOST_REGEX_NO_LIB=1 -DBOOST_REGEX_STATIC_LINK=1 -g -xtarget=generic +d -features=rtti -features=except -I"libs/regex/build" -I"/opt/src/freeware/boost" -o "libs/regex/build/bin/libboost_regex.a/sunpro/debu g/runtime-link-dynamic/winstances.o" "libs/regex/build/../src/winstances.cpp" ...failed sunpro-C++-action libs/regex/build/bin/libboost_regex.a/sunpro/debug /runtime-link-dynamic/winstances.o... ...skipped <libs!regex!build/libboost_regex.a/sunpro/debug/ru ntime-link-dynamic>libboost_regex_debug.a for lack of <libs!regex!build/libboost_regex.a/sunpro/debug/ru ntime-link-dynamic>libboost_regex_debug.a(winstances.o)... ...skipped <!libs!regex!build!bin-stage>libboost_regex_debug.a for lack of <libs!regex!build/libboost_regex.a/sunpro/debug/ru ntime-link-dynamic>libboost_regex_debug.a... FileClone libs/regex/build/bin-stage/libboost_regex.a sunpro-C++-action libs/regex/build/bin/libboost_regex.so/sunpro/debu g/runtime-link-dynamic/winstances.o "/opt/src/freeware/boost/boost/detail/allocator.hpp", line 107: Error: boost::detail::allocator<char>::allocator<wchar_t>(const boost::detail::allocator<wchar_t>&) and boost::detail::allocator<char>::allocator<wchar_t>(const boost::detail::allocator<wchar_t>&) have same extern name "__1cFboostGdetailJallocator4Cc_2t4Cw_6Mrkn0BJallocator4CTB___v_". "/opt/src/freeware/boost/boost/regex/v3/instances.hpp", line 143: Where: While instantiating "boost::re_detail::match_results_base<const wchar_t*, boost::detail::allocator<wchar_t>>::match_results_base(const boost::detail::allocator<wchar_t>&)". "/opt/src/freeware/boost/boost/regex/v3/instances.hpp", line 143: Where: Instantiated from non-template code. So... If anyone has any suggestions on what I need to tell the Workshop compiler to accept this code, or how I should modify the code to get at least the date_time package to compile, please let me know. Thank you
participants (3)
-
Gennadiy E. Rozental <rogeeff@mail.com>
-
markrday <markrday@yahoo.com>
-
Paul Mensonides