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

Scons failing with --config=force

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Dev Tools 2019-09-09, Dev Tools 2019-09-23

      it looks like my compile stopped working recently with the following error:

      ./buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars \                                                                                                                                                                 (master|✚3…)
          CCFLAGS='-gsplit-dwarf' --link-model=dynamic --config=force \
          MONGO_VERSION='0.0.0' MONGO_GIT_HASH='unknown' \
          VARIANT_DIR=ninja --icecream \
          mongod
      ...
      KeyError: 'MONGO_MODULES':
        File "/home/charlie/github/new-mongo/SConstruct", line 3686:
          env = doConfigure( env )
        File "/home/charlie/github/new-mongo/SConstruct", line 3587:
          if 'enterprise' not in env['MONGO_MODULES']:
        File "/home/charlie/github/new-mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Environment.py", line 410:
          return self._dict[key]
      

      Removing the --config=force fixed the issue.

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: