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

Cannot build unittests with --opt=off after structured logging update

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Fully Compatible
    • Dev Tools 2020-02-24

      SERVER-45869 appears to have broken unittest building with --opt=off, specifically the changes to src/mongo/unittest/benchmark_main.cpp:

      214/714 ( 29%) 3.655s] SHCXX build/ninja/mongo/unittest/benchmark_main.dyn.o
      FAILED: build/ninja/mongo/unittest/benchmark_main.dyn.o 
      ...
      src/mongo/unittest/benchmark_main.cpp:57:5: error: use of undeclared identifier 'logv2'; did you mean 'mongo::logv2'?
          LOGV2(23049,
          ^
      src/mongo/logv2/log.h:86:5: note: expanded from macro 'LOGV2'
          LOGV2_IMPL(ID,                                                               \
          ^
      src/mongo/logv2/log.h:83:5: note: expanded from macro 'LOGV2_IMPL'
          logv2::detail::doLog(ID, SEVERITY, OPTIONS, FMT_STRING(MESSAGE), ##__VA_ARGS__)
          ^
      src/mongo/logv2/log_detail.h:42:11: note: 'mongo::logv2' declared here
      namespace logv2 {
                ^
      1 error generated.
      

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: