I encountered a symbol checker failure on evergreen with the following error message:
[2026/01/16 19:42:56.070] Symbol check failed for: //src/mongo/db/query/compiler/optimizer/join:join_estimates [2026/01/16 19:42:56.070] Missing symbols: [2026/01/16 19:42:56.070] mongo::join_ordering::GraphCycleBreaker::GraphCycleBreaker(mongo::join_ordering::JoinGraph const&, std::vector<mongo::cost_based_ranker::SelectivityEstimate, std::allocator<mongo::cost_based_ranker::SelectivityEstimate> > const&, unsigned long) [2026/01/16 19:42:56.070] - mongo::join_ordering::GraphCycleBreaker::breakCycles(std::vector<unsigned short, std::allocator<unsigned short> >) [2026/01/16 19:42:56.070] - mongo::join_ordering::JoinGraph::getEdgesForSubgraph(std::bitset<64ul>) const [2026/01/16 19:42:56.070] - mongo::join_ordering::nodeSetToString[abi:cxx11](std::bitset<64ul> const&, unsigned long) [2026/01/16 19:42:56.070] Please check to see if //src/mongo/db/query/compiler/optimizer/join:join_estimates is missing any deps that would include the symbols above [2026/01/16 19:42:56.070] To reproduce: [2026/01/16 19:42:56.070] bazel build --config=symbol-checker //src/mongo/db/query/compiler/optimizer/join:join_estimates
The suggestion to run
bazel build --config=symbol-checker //src/mongo/db/query/compiler/optimizer/join:join_estimates
did not reproduce the error locally. In order to reproduce the error I needed to
bazel build --verbose_failures --config=evg --config=symbol-checker --define=MONGO_DISTMOD=amazon2023 --linkstatic=False --remote_execution_priority=2 --build_atlas=True --dtlto=False --pgo_profile_use=False //src/mongo/db/query/compiler/optimizer/join:join_estimates_with_debug
Note the manual addition of the "_with_debug" suffix.
This ticket is an ask to improve the output of the command so that the symbol_checker can be run/reproduce errors locally.