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

error C2248: 'mongo::BSONObjBuilder::BSONObjBuilder': cannot access private member declared in class 'mongo::BSONObjBuilder'

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.5
    • Component/s: Build
    • None
    • Fully Compatible
    • Platforms 14 (05/13/16)

      Windows 10
      Visual Studio 2015 Express
      scons 2.3.6 (required for VS 2015)
      ActiveState ActivePython 2.7.10.12 (64 bit)
      MongoDB source r3.2.5

      Building from scource.

      Built scons via c:\python27\python.exe setup.py install.

      Developer Command Prompt and ran:

      %ProgramFiles(x86)%\Microsoft Visual Studio 12.0\vc\bin\amd64\vcvars64.bat

      scons --64bit gave me this error:

      SCons Error: no such option: --64bit

      So, "scons all" gave me this:

      scons all
      scons: Reading SConscript files ...
      scons version: 2.3.6
      python version: 2 7 10 'final' 0
      Checking whether the C++ compiler works... (cached) yes
      Checking whether the C compiler works... (cached) yes
      Checking if C++ compiler "$CC" is MSVC... (cached) yes
      Checking if C compiler "cl" is MSVC... (cached) yes
      Detected a x86_64 processor
      Checking if target OS windows is supported by the toolchain (cached) yes
      Checking if C compiler is Microsoft Visual Studio 2013 Update 4 or newer...(cached) yes
      Checking if C++ compiler is Microsoft Visual Studio 2013 Update 4 or newer...(cached) yes
      Checking if we are using libstdc++... (cached) no
      Checking for C++11... (cached) yes
      Checking for memset_s... (cached) no
      Checking for C function strnlen()... yes
      Checking Windows SDK is 8.1 or newer... (cached) yes
      Checking if we are on a POSIX system... (cached) no
      Checking for storage class thread_local yes
      Checking for storage class __thread (cached) no
      Checking for storage class __declspec(thread) yes
      Checking for C++11 is_trivially_copyable support... (cached) yes
      Checking for C++14 std::make_unique support... (cached) yes
      Checking for C++ header file execinfo.h... (cached) no
      Checking for C library pcap... no
      Checking for C library wpcap... no
      Checking if std::atomic<int64_t> works... yes
      Checking if std::atomic<uint64_t> works... yes
      Checking if std::atomic<int32_t> works... yes
      Checking if std::atomic<uint32_t> works... yes
      Checking if __malloc_hook is declared volatile... (cached) yes
      Checking for C function fallocate()... no
      Checking for C function sync_file_range()... no
      Checking for C header file x86intrin.h... (cached) no
      scons: done reading SConscript files.
      scons: Building targets ...
      C:\Python27\python.exe src\mongo\base\generate_error_codes.py cpp src\mongo\base\error_codes.err --cpp-header=build\opt\mongo\base\error_codes.h --cpp-source=build\opt\mongo\base\error_codes.cpp
      C:\Python27\python.exe src\mongo\db\auth\generate_action_types.py src\mongo\db\auth\action_types.txt build\opt\mongo\db\auth\action_type.h build\opt\mongo\db\auth\action_type.cpp
      C:\Python27\python.exe src\mongo\db\fts\generate_stop_words.py src\mongo\db\fts\stop_words_danish.txt src\mongo\db\fts\stop_words_dutch.txt src\mongo\db\fts\stop_words_english.txt src\mongo\db\fts\stop_words_finnish.txt src\mongo\db\fts\stop_words_french.txt src\mongo\db\fts\stop_words_german.txt src\mongo\db\fts\stop_words_hungarian.txt src\mongo\db\fts\stop_words_italian.txt src\mongo\db\fts\stop_words_norwegian.txt src\mongo\db\fts\stop_words_portuguese.txt src\mongo\db\fts\stop_words_romanian.txt src\mongo\db\fts\stop_words_russian.txt src\mongo\db\fts\stop_words_spanish.txt src\mongo\db\fts\stop_words_swedish.txt src\mongo\db\fts\stop_words_turkish.txt build\opt\mongo\db\fts\stop_words_list.h build\opt\mongo\db\fts\stop_words_list.cpp
      header: build\opt\mongo\db\fts\stop_words_list.h
      source: build\opt\mongo\db\fts\stop_words_list.cpp
      language_files:
      src\mongo\db\fts\stop_words_danish.txt
      src\mongo\db\fts\stop_words_dutch.txt
      src\mongo\db\fts\stop_words_english.txt
      src\mongo\db\fts\stop_words_finnish.txt
      src\mongo\db\fts\stop_words_french.txt
      src\mongo\db\fts\stop_words_german.txt
      src\mongo\db\fts\stop_words_hungarian.txt
      src\mongo\db\fts\stop_words_italian.txt
      src\mongo\db\fts\stop_words_norwegian.txt
      src\mongo\db\fts\stop_words_portuguese.txt
      src\mongo\db\fts\stop_words_romanian.txt
      src\mongo\db\fts\stop_words_russian.txt
      src\mongo\db\fts\stop_words_spanish.txt
      src\mongo\db\fts\stop_words_swedish.txt
      src\mongo\db\fts\stop_words_turkish.txt
      C:\Python27\python.exe src\mongo\db\fts\unicode\gen_casefold_map.py src\third_party\unicode-8.0.0\CaseFolding.txt build\opt\mongo\db\fts\unicode\codepoints_casefold.cpp
      C:\Python27\python.exe src\mongo\db\fts\unicode\gen_delimiter_list.py src\third_party\unicode-8.0.0\PropList.txt build\opt\mongo\db\fts\unicode\codepoints_delimiter_list.cpp
      C:\Python27\python.exe src\mongo\db\fts\unicode\gen_diacritic_list.py src\third_party\unicode-8.0.0\PropList.txt build\opt\mongo\db\fts\unicode\codepoints_diacritic_list.cpp
      cl /Fobuild\opt\mongo\scripting\mozjs\bindata.obj /c src\mongo\scripting\mozjs\bindata.cpp /TP /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /wd4290 /wd4068 /wd4351 /we4013 /we4099 /we4930 /Z7 /errorReport:none /MT /O2 /Oy- /Gw /Gy /Zc:inline /FI js-config.h /FI js/RequiredDefines.h /DJS_USE_CUSTOM_ALLOCATOR /DSTATIC_JS_API=1 /DPCRE_STATIC /DNDEBUG /DBOOST_ALL_NO_LIB /D_UNICODE /DUNICODE /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0600 /DNTDDI_VERSION=0x06000000 /DBOOST_THREAD_VERSION=4 /DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD /DBOOST_SYSTEM_NO_DEPRECATED /DBOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS /DBOOST_THREAD_HAS_NO_EINTR_BUG /Isrc\third_party\mozjs-38\include /Isrc\third_party\mozjs-38\mongo_sources /Isrc\third_party\mozjs-38\platform\x86_64\windows\include /Isrc\third_party\asio-asio-1-11-0\asio\include /Isrc\third_party\s2 /Isrc\third_party\pcre-8.37 /Isrc\third_party\boost-1.56.0 /Ibuild\opt /Isrc /Z7
      bindata.cpp
      C:\mongoDB\src\third_party\boost-1.56.0\boost/type_traits/is_nothrow_move_constructible.hpp(40): error C2248: 'mongo::BSONObjBuilder::BSONObjBuilder': cannot access private member declared in class 'mongo::BSONObjBuilder'
      C:\mongoDB\src\mongo/bson/bsonobjbuilder.h(61): note: see declaration of 'mongo::BSONObjBuilder::BSONObjBuilder'
      C:\mongoDB\src\mongo/scripting/mozjs/objectwrapper.h(44): note: see declaration of 'mongo::BSONObjBuilder'
      C:\mongoDB\src\third_party\boost-1.56.0\boost/type_traits/is_nothrow_move_constructible.hpp(45): note: see reference to class template instantiation 'boost::detail::false_or_cpp11_noexcept_move_constructible<T,void>' being compiled
      with
      [
      T=mongo::BSONObjBuilder
      ]
      C:\mongoDB\src\third_party\boost-1.56.0\boost/type_traits/is_nothrow_move_constructible.hpp(80): note: see reference to class template instantiation 'boost::detail::is_nothrow_move_constructible_imp<T>' being compiled
      with
      [
      T=mongo::BSONObjBuilder
      ]
      C:\mongoDB\src\third_party\boost-1.56.0\boost/optional/optional.hpp(854): note: see reference to class template instantiation 'boost::is_nothrow_move_constructible<T>' being compiled
      with
      [
      T=mongo::BSONObjBuilder
      ]
      C:\mongoDB\src\mongo/scripting/mozjs/objectwrapper.h(206): note: see reference to class template instantiation 'boost::optional<mongo::BSONObjBuilder>' being compiled
      C:\mongoDB\src\third_party\boost-1.56.0\boost/type_traits/is_nothrow_move_constructible.hpp(40): error C2280: 'mongo::BSONObjBuilder::BSONObjBuilder(const mongo::BSONObjBuilder &)': attempting to reference a deleted function
      C:\mongoDB\src\mongo/bson/bsonobjbuilder.h(61): note: see declaration of 'mongo::BSONObjBuilder::BSONObjBuilder'
      scons: *** [build\opt\mongo\scripting\mozjs\bindata.obj] Error 2
      scons: building terminated because of errors.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            therefore George Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: