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

v5 toolchain compile error in absl::inlined_vector

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • ALL
    • Hide

      bazel build --config=dbg --compiler_type=gcc --opt=auto --dbg=False --//bazel/config:mongo_toolchain_version=v5 :+sbe_scan_test

      Show
      bazel build --config=dbg --compiler_type=gcc --opt=auto --dbg=False --//bazel/config:mongo_toolchain_version=v5 :+sbe_scan_test

      The v5 toolchain is hitting a compile error related to -Wuninitialized in sbe_scan_test.cpp:

      external/com_google_absl/absl/container/internal/inlined_vector.h:521:5: error: '<unnamed>.absl::lts_20230802::InlinedVector<long int, 2, std::allocator<long int> >::storage_.absl::lts_20230802::inlined_vector_internal::Storage<long int, 2, std::allocator<long int> >::data_' is used uninitialized [-Werror=uninitialized]
        521 |     data_ = other_storage.data_;
            |     ^~~~~
      src/mongo/db/exec/sbe/sbe_scan_test.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::pair<long int, std::unique_ptr<mongo::sbe::PlanStage> >; _Functor = mongo::sbe::UnitTest_SuiteNameScanStageTestTestNamescanStage::_doTest()::<lambda(mongo::sbe::value::SlotId, std::unique_ptr<mongo::sbe::PlanStage>)>; _ArgTypes = {long int, std::unique_ptr<mongo::sbe::PlanStage, std::default_delete<mongo::sbe::PlanStage> >}]':
      src/mongo/db/exec/sbe/sbe_scan_test.cpp:119:71: note: '<anonymous>' declared here
        119 |                                                     value::SlotVector{} /* scanFieldSlots */,
            |                                                                       ^ 

            Assignee:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Reporter:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: