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

scons compiledb exits with a stack trace

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1, 4.2.14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Dev Tools 2019-08-26

      The compiledb target fails in scons.

      $ python3 buildscripts/scons.py compiledb
      ...
      scons: done reading SConscript files.
      scons: Building targets ...
      Building compilation database compile_commands.json
      scons: done building targets.
      TypeError: changed_since_last_build_node() takes 3 positional arguments but 4 were given:
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Script/Main.py", line 1374:
          _exec_main(parser, values)
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Script/Main.py", line 1337:
          _main(parser)
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Script/Main.py", line 1112:
          nodes = _build_targets(fs, options, targets, target_top)
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Script/Main.py", line 1311:
          jobs.run(postfunc = jobs_postfunc)
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Job.py", line 111:
          self.job.start()
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Job.py", line 410:
          task.executed()
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Script/Main.py", line 252:
          SCons.Taskmaster.OutOfDateTask.executed(self)
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Taskmaster.py", line 317:
          t.release_target_info()
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Node/FS.py", line 3046:
          self.changed(allowcache=True)
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Node/FS.py", line 3289:
          has_changed = SCons.Node.Node.changed(self, node)
        File "/home/mark/src/mongo/src/third_party/scons-3.1.1/scons-local-3.1.1/SCons/Node/__init__.py", line 1493:
          if _decider_map[child.changed_since_last_build](child, self, prev_ni, node):
      

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: