Opened 13 years ago

Closed 13 years ago

#3379 closed Bugs (duplicate)

Problem building Boost 1.40 for Mac OS 10.3.9

Reported by: anonymous Owned by: John Maddock
Milestone: Boost 1.41.0 Component: regex
Version: Boost 1.40.0 Severity: Showstopper
Keywords: § Cc:

Description

When trying to build Boost (regex) using:

./bootstrap.sh -with-libraries=regex ./bjam

I get the following (first of many) error:

cc1plus: warning: `dwarf-2': unknown or unsupported -g option boost/regex/v4/cpp_regex_traits.hpp: In member function `bool

boost::re_detail::cpp_regex_traits_implementation<charT>::isctype(charT, typename boost::cpp_regex_traits<charT>::char_class_type) const [with charT

char]':

boost/regex/v4/cpp_regex_traits.hpp:959: instantiated from `bool boost::cpp_regex_traits<charT>::isctype(charT, unsigned int) const [with charT = char]' boost/regex/v4/perl_matcher_common.hpp:802: instantiated from `bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::find_restart_word() [with BidiIterator = const char*, Allocator = std::allocator<boost::sub_match<const char*> >, traits = boost::regex_traits<char, boost::cpp_regex_traits<char> >]' boost/regex/v4/perl_matcher_common.hpp:246: instantiated from `bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::find_imp() [with BidiIterator = const char*, Allocator = std::allocator<boost::sub_match<const char*> >, traits = boost::regex_traits<char, boost::cpp_regex_traits<char> >]' boost/regex/v4/perl_matcher_common.hpp:230: instantiated from `bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::find() [with BidiIterator = const char*, Allocator = std::allocator<boost::sub_match<const char*> >, traits = boost::regex_traits<char, boost::cpp_regex_traits<char> >]' boost/regex/v4/regex_grep.hpp:55: instantiated from `unsigned int boost::regex_grep(Predicate, BidiIterator, BidiIterator, const boost::basic_regex<charT, traits>&, boost::regex_constants::_match_flags) [with Predicate = boost::re_detail::pred1, BidiIterator = const char*, charT = char, traits = boost::regex_traits<char, boost::cpp_regex_traits<char> >]' libs/regex/src/cregex.cpp:247: instantiated from here boost/regex/v4/cpp_regex_traits.hpp:827: error: `char_class_vertical'

undeclared in namespace `boost::re_detail'

boost/regex/v4/cpp_regex_traits.hpp:827: error: `char_class_horizontal'

undeclared in namespace `boost::re_detail'

Any ideas?

Thanks,

Jakob

Change History (1)

comment:1 by John Maddock, 13 years ago

Resolution: duplicate
Status: newclosed

This is a known issue with older gcc versions, it's fixed by this patch: https://svn.boost.org/trac/boost/changeset/55837/trunk/boost/regex/v4

HTH, John.

Note: See TracTickets for help on using tickets.