[SERVER-46165] Cannot build unittests with --opt=off after structured logging update Created: 14/Feb/20  Updated: 29/Oct/23  Resolved: 18/Feb/20

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Bug Priority: Major - P3
Reporter: Bernard Gorman Assignee: Gabriel Russell (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2020-02-24
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 14/Feb/20 ]

Author:

{'username': 'gabrielrussell', 'name': 'Gabriel Russell', 'email': 'gabriel.russell@mongodb.com'}

Message: SERVER-46165 fix building unittests with --opt=off
Branch: master
https://github.com/mongodb/mongo/commit/92fc1f94138f750968a39419c97a3c7d6f1ae090

Generated at Thu Feb 08 05:10:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.