|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
How can I build boost(1.35).regex on solaris 10?Hi,all
I build bjam successfully.when I tried to build regex with CC and gcc, problems occur. $ bjam -sBOOST_ROOT=. -sTOOLS=gcc --with-regex -sBUILD='release <runtime-link>dynamic speed' /usr/ccs/bin/as: "/var/tmp//ccu3pC8M.s", line 13745: error: cannot use v8plus instructions in a non-v8plus target binary /usr/ccs/bin/as: "/var/tmp//ccu3pC8M.s", line 13758: error: cannot use v8plus instructions in a non-v8plus target binary /usr/ccs/bin/as: "/var/tmp//ccu3pC8M.s", line 13774: error: cannot use v8plus instructions in a non-v8plus target binary /usr/ccs/bin/as: "/var/tmp//ccu3pC8M.s", line 430: error: cannot use v8plus instructions in a non-v8plus target binary /usr/ccs/bin/as: "/var/tmp//ccu3pC8M.s", line 444: error: cannot use v8plus instructions in a non-v8plus target binary I changedir to libs/regex/build/ and run: $ dmake CXXFLAGS="-xarchv9" LDFLAGS="-xarchv9" LIBSUFFIX="_v9" -f sunpro.mak It still didn't work: "../../../boost/regex/v4/basic_regex_creator.hpp", line 358: Error: Could not find a match for boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::append_set(const boost::re_detail::basic_char_set<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>, mpl_::bool_<1>*). "../../../boost/regex/v4/basic_regex_parser.hpp", line 600: Where: While instantiating "boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::append_set(const boost::re_detail::basic_char_set<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>&)". "../../../boost/regex/v4/basic_regex_parser.hpp", line 600: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended_escape(). "../../../boost/regex/v4/basic_regex_parser.hpp", line 254: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended(). "../../../boost/regex/v4/basic_regex_parser.hpp", line 121: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse(const char*, const char*, unsigned). "../../../boost/regex/v4/basic_regex.hpp", line 103: Where: Instantiated from boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::do_assign(const char*, const char*, unsigned). "../../../boost/regex/v4/basic_regex.hpp", line 262: Where: Instantiated from non-template code. 1 Error(s) and 4 Warning(s) detected. Then I tried: $ dmake CXXFLAGS="-library=stlport4" -f sunpro.mak CC: Warning: illegal option stlport4 ignored "../../../boost/regex/v4/basic_regex_creator.hpp", line 358: Error: Could not find a match for boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::append_set(const boost::re_detail::basic_char_set<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>, mpl_::bool_<1>*). "../../../boost/regex/v4/basic_regex_parser.hpp", line 600: Where: While instantiating "boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::append_set(const boost::re_detail::basic_char_set<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>&)". "../../../boost/regex/v4/basic_regex_parser.hpp", line 600: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended_escape(). "../../../boost/regex/v4/basic_regex_parser.hpp", line 254: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended(). "../../../boost/regex/v4/basic_regex_parser.hpp", line 121: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse(const char*, const char*, unsigned). "../../../boost/regex/v4/basic_regex.hpp", line 103: Where: Instantiated from boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::do_assign(const char*, const char*, unsigned). "../../../boost/regex/v4/basic_regex.hpp", line 262: Where: Instantiated from non-template code. 1 Error(s) and 4 Warning(s) detected. It seens there 's none stlport in my computer, is it needed? Here 's my env: SunOS T2000 5.10 Generic_118822-30 sun4v sparc SUNW,Sun-Fire-T200 Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 I am a fisher, and i tried to google it, i still can't find the right way : ( Thank you in advance, best regards Daobing Zou _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build |
|
|
Re: How can I build boost(1.35).regex on solaris 10?On Thursday 10 July 2008 13:06:07 邹道兵 wrote:
> Hi,all > > I build bjam successfully.when I tried to build regex with CC and gcc, > problems occur. > $ bjam -sBOOST_ROOT=. -sTOOLS=gcc --with-regex -sBUILD='release > <runtime-link>dynamic speed' This is Boost.Build V1 syntax, and 1.35 comes with Boost.Build V2. Can you try following the instructions at: http://blogs.sun.com/sga/entry/boost_and_sun_studio_12 (I don't know what version of Sun Studio you have) - Volodya _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build |
|
|
Re: How can I build boost(1.35).regex on solaris 10?CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15
I followed the instructions you mentioned, here is the output: Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (don't panic: this is a strictly optional feature). ...patience... ...found 493 targets... ...updating 6 targets... sun.compile.c++ bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/cregex.o CC: Warning: illegal option stlport4 ignored "./boost/type_traits/is_convertible.hpp", line 349: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 349: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 412: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 412: Warning (Anachronism): Type names qualified by template parameters require "typename". 4 Warning(s) detected. sun.compile.c++ bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/wide_posix_api.o CC: Warning: illegal option stlport4 ignored "./boost/type_traits/is_convertible.hpp", line 349: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 349: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 412: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 412: Warning (Anachronism): Type names qualified by template parameters require "typename". 4 Warning(s) detected. sun.link.dll bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/libboost_regex-sw-mt-1_35.so.1.35.0 CC: Warning: illegal option stlport4 ignored CC: Warning: illegal option stlport4 ignored "./boost/type_traits/is_convertible.hpp", line 349: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 349: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 412: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/type_traits/is_convertible.hpp", line 412: Warning (Anachronism): Type names qualified by template parameters require "typename". "./boost/regex/v4/basic_regex_creator.hpp", line 358: Error: Could not find a match for boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::append_set(const boost::re_detail::basic_char_set<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>, mpl_::bool_<1>*). "./boost/regex/v4/basic_regex_parser.hpp", line 600: Where: While instantiating "boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::append_set(const boost::re_detail::basic_char_set<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>&)". "./boost/regex/v4/basic_regex_parser.hpp", line 600: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended_escape(). "./boost/regex/v4/basic_regex_parser.hpp", line 254: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended(). "./boost/regex/v4/basic_regex_parser.hpp", line 121: Where: Instantiated from boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse(const char*, const char*, unsigned). "./boost/regex/v4/basic_regex.hpp", line 103: Where: Instantiated from boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char>>>::do_assign(const char*, const char*, unsigned). "./boost/regex/v4/basic_regex.hpp", line 262: Where: Instantiated from non-template code. 1 Error(s) and 4 Warning(s) detected. SunWS_cache: Error: Error occurred in invoked compiler, exit status = 1(2). Aborting.... __1cFboostJre_detailSbasic_regex_parser4Ccn0AMregex_traits4Ccn0AQcpp_regex_traits4Cc_____Vparse_extended_escape6M_b_ is out-of-date and will be regenerated __1cFboostJre_detailSbasic_regex_parser4Cwn0AMregex_traits4Cwn0AQcpp_regex_traits4Cw_____Oadd_emacs_code6Mb_b_ is out-of-date and will be regenerated "CC" -s -mt -library=stlport4 -KPIC -o "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/libboost_regex-sw-mt-1_35.so.1.35.0" -hlibboost_regex-sw-mt-1_35.so.1.35.0 -G "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/c_regex_traits.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/cpp_regex_traits.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/cregex.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/fileiter.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/icu.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/instances.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/posix_api.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/regex.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/regex_debug.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/regex_raw_buffer.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/regex_traits_defaults.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/static_mutex.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/w32_regex_traits.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/wc_regex_traits.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/wide_posix_api.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/winstances.o" "bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/usinstances.o" -Bdynamic -lrt -Bstatic -Bdynamic ...failed sun.link.dll bin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi/libboost_regex-sw-mt-1_35.so.1.35.0... ...skipped <pstage/lib>libboost_regex-sw-mt-1_35.so.1.35.0 for lack of <pbin.v2/libs/regex/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_regex-sw-mt-1_35.so.1.35.0... ...skipped <pstage/lib>libboost_regex-sw-mt-1_35.so for lack of <pstage/lib>libboost_regex-sw-mt-1_35.so.1.35.0... ...skipped <pstage/lib>libboost_regex-sw-mt.so for lack of <pstage/lib>libboost_regex-sw-mt-1_35.so.1.35.0... ...failed updating 1 target... ...skipped 3 targets... ...updated 2 targets...
|
|
|
Re: How can I build boost(1.35).regex on solaris 10?On Friday 11 July 2008 08:14:28 Daobing Zou wrote:
> > CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15 It seems to me that this is very old compiler. It's very unlikely it will be able to work with C++ Boost. Sorry, Volodya _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build |
|
|
Re: How can I build boost(1.35).regex on solaris 10?It 's very unlikely for us to update the complier, so I tried to build it with gcc 3.4.6 and it was done, thank u all the same!
Daobing Zou
|
| Free embeddable forum powered by Nabble | Forum Help |