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

The --separate-debug flag doesn't work with Ninja

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc4, 4.7.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • v4.4
    • Dev Platform 2020-04-20, Dev Platform 2020-05-04

      Looks like Hygienic builds do not work with Ninja on Windows:

      D:\workspace\mongodb-master>buildscripts\scons.py --jlink=4 --install-mode=hygienic --ssl --win-version-min=win10 --detect-odr-violations --dbg=on --opt=off CPPPATH="D:/workspace/libs/snmp/include D:/workspace/libs/sasl/include" LIBPATH="D:/workspace/libs/snmp/lib D:/workspace/libs/sasl/lib" MONGO_GIT_HASH="unknown" MONGO_VERSION="0.0.0" VARIANT_DIR=ninja --ninja build.ninja
      ...
      D:\workspace\mongodb-master>ninja install-core
      ninja: error: build.ninja:11328: multiple rules generate build/ninja/mongo/mongotrafficreader.pdb [-w dupbuild=err]
      

      Hygienic builds without Ninja seem to work though:

      D:\workspace\mongodb-master>buildscripts\scons.py --jlink=4 --install-mode=hygienic --ssl --win-version-min=win10 --detect-odr-violations --dbg=on --opt=off CPPPATH="D:/workspace/libs/snmp/include D:/workspace/libs/sasl/include" LIBPATH="D:/workspace/libs/snmp/lib D:/workspace/libs/sasl/lib" install-core
      

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: