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

scons compiledb exits with a stack trace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1, 4.2.14
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      Dev Tools 2019-08-26

      Description

      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):
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: