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

libdeps dependency order unstable without --implicit-cache

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.7
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Hide

      Build any target without -implicitcache, then rebuild with -debug=explain.

      Show
      Build any target without - implicit cache , then rebuild with -debug=explain .
    • Platforms 2017-05-08

      In SERVER-27505, we added support for topsorting our libraries. As part of that change, we stopped sorting the results reported by the scanner:

      https://github.com/mongodb/mongo/commit/190dcaab71bcca027954e227ac73a36958aab762#diff-d90fa2623f9db54079c913e56e6183e0R188

      That caused the dependency orders to change run-to-run, unless you were building with --implicit-cache. Since most users do build that way, we didn't notice.

      The solution is to simply append the results in the stable order returned by __get_libdeps.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: