Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31119

Compilation fails with boost 1.62

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.4.11, 3.6.0-rc0
    • Affects Version/s: 3.4.9
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • v3.4
    • Hide

      scons mongod --use-system-boost --use-system-pcre --use-system-snappy --use-system-zlib --disable-warnings-as-errors

      Show
      scons mongod --use-system-boost --use-system-pcre --use-system-snappy --use-system-zlib --disable-warnings-as-errors
    • Platforms 2017-10-02

      Compilation with Boost 1.62 fails due to this compile error:

      src/mongo/db/fts/unicode/string.cpp: In static member function 'static bool mongo::unicode::String::substrMatch(const string&, const string&, mongo::unicode::String::SubstrMatchOptions, mongo::unicode::CaseFoldMode)':
      src/mongo/db/fts/unicode/string.cpp:277:80: error: no match for 'operator!=' (operand types are 'std::pair<const char*, const char*>' and 'mongo::StringData::const_iterator {aka const char*}')
           return boost::algorithm::boyer_moore_search(
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                
                      haystack.begin(), haystack.end(), needle.begin(), needle.end()) != haystack.
      

      See attachment for the full backtrace

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            jelly1 Jelle van der Waa
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: