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

Touching tcmalloc source files doesn't relink mongod in incremental compiles

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Build
    • Fully Compatible
    • ALL

      If I touch size_classes.cc, an incremental compile of Bazel compiles the new object, but doesn't re-link it into mongod. I can force a link to happen if I touch a header file like cpu_cache.h.

      I'm building with this SCons invocation options:

      python3 buildscripts/scons.py --opt=on --dbg=off CCFLAGS='-fdiagnostics-color=always'     --use-diagnostic-latches=off  --variables-files=etc/scons/developer_versions.vars --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars ICECC=icecc CCACHE=ccache     VARIANT_DIR=opt --modules= NINJA_PREFIX=opt --link-model=static --ninja opt.ninja
      

      And this ninja command:

      ninja -f opt.ninja -j100 install-mongod
      

      Please pass this to Service Arch if this is a configuration issue. But naively, it seems like a Bazel problem.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: