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

doesn't build with boost 1.57.0

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.5
    • Component/s: Build
    • Labels:
      None
    • ALL

      I am getting the following errors when building mongodb 2.6.5 with boost 1.57.0:

      clang++ -o build/linux2/cc_clang/cxx_clang++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/mongo/shell/linenoise.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -O3 -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -fno-builtin-memcmp -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD -DBOOST_THREAD_VERSION=2 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -Ibuild/linux2/cc_clang/cxx_clang++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/linux2/cc_clang/cxx_clang++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/cc_clang/cxx_clang++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc -Isrc -Ibuild/linux2/cc_clang/cxx_clang++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/mongo -Isrc/mongo -Ibuild/linux2/cc_clang/cxx_clang++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/cc_clang/cxx_clang++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/third_party/v8/include -Isrc/third_party/v8/include -Ibuild/linux2/cc_clang/cxx_clang++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/third_party/yaml-cpp-0.5.1/include -Isrc/third_party/yaml-cpp-0.5.1/include src/mongo/shell/linenoise.cpp
      In file included from src/mongo/shell/linenoise.cpp:116:
      src/mongo/shell/linenoise_utf8.h:145:9: error: no member named 'swap' in namespace 'std'; did you mean simply 'swap'?
              std::swap( _len, other._len );
              ^~~~~~~~~
              swap
      src/mongo/shell/linenoise_utf8.h:144:10: note: 'swap' declared here
          void swap( UtfStringMixin& other ) {
               ^
      src/mongo/shell/linenoise_utf8.h:146:9: error: no member named 'swap' in namespace 'std'; did you mean simply 'swap'?
              std::swap( _cap, other._cap );
              ^~~~~~~~~
              swap
      src/mongo/shell/linenoise_utf8.h:144:10: note: 'swap' declared here
          void swap( UtfStringMixin& other ) {
               ^
      src/mongo/shell/linenoise_utf8.h:147:9: error: no member named 'swap' in namespace 'std'; did you mean simply 'swap'?
              std::swap( _chars, other._chars );
              ^~~~~~~~~
              swap
      src/mongo/shell/linenoise_utf8.h:144:10: note: 'swap' declared here
          void swap( UtfStringMixin& other ) {
               ^
      src/mongo/shell/linenoise_utf8.h:145:26: error: too many arguments to function call, expected single argument 'other', have 2 arguments
              std::swap( _len, other._len );
              ~~~~~~~~~        ^~~~~~~~~~
      src/mongo/shell/linenoise_utf8.h:226:15: note: in instantiation of member function 'linenoise_utf8::UtfStringMixin<unsigned int>::swap' requested here
              this->swap( temp );
                    ^
      src/mongo/shell/linenoise_utf8.h:144:5: note: 'swap' declared here
          void swap( UtfStringMixin& other ) {
          ^
      src/mongo/shell/linenoise_utf8.h:146:26: error: too many arguments to function call, expected single argument 'other', have 2 arguments
              std::swap( _cap, other._cap );
              ~~~~~~~~~        ^~~~~~~~~~
      src/mongo/shell/linenoise_utf8.h:144:5: note: 'swap' declared here
          void swap( UtfStringMixin& other ) {
          ^
      src/mongo/shell/linenoise_utf8.h:147:28: error: too many arguments to function call, expected single argument 'other', have 2 arguments
              std::swap( _chars, other._chars );
              ~~~~~~~~~          ^~~~~~~~~~~~
      src/mongo/shell/linenoise_utf8.h:144:5: note: 'swap' declared here
          void swap( UtfStringMixin& other ) {
          ^
      6 errors generated.
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            felixonmars Felix Yan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: