Boost logo

Boost-Build :

From: ×ÞµÀ±ø (daobing.zou_at_[hidden])
Date: 2008-07-10 05:06:07


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


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk