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

dependency order of libraries is causing unnecessary relinking

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

      If you look at "scons --debug=explain", it shows the ordering of the libraries is not consistent across invocations:

      old: ['build/linux2/normal/mongo/db/db.o', 'build/linux2/normal/mongo/db/compact.o', '/usr/bin/g++', '/usr/lib64/libm.so', '/usr/lib64/libpthread.so', 'build/linux2/normal/third_party/murmurhash3/libmurmurhash3.a', 'build/linux2/normal/mongo/libmongocommon.a', 'build/linux2/normal/third_party/libpcrecpp.a', 'build/linux2/normal/third_party/libmongo_boost.a', 'build/linux2/normal/mongo/libcoredb.a', 'build/linux2/normal/mongo/libdbcmdline.a', 'build/linux2/normal/mongo/libcoreshard.a', 'build/linux2/normal/mongo/libdefaultversion.a', 'build/linux2/normal/mongo/libserveronly.a', 'build/linux2/normal/mongo/libcoreserver.a', 'build/linux2/normal/third_party/pcre-8.30/libpcrecpp.a', 'build/linux2/normal/third_party/boost/libboost_system.a', 'build/linux2/normal/third_party/boost/libboost_thread.a', 'build/linux2/normal/third_party/boost/libboost_filesystem.a', 'build/linux2/normal/third_party/boost/libboost_program_options.a']
      new: ['build/linux2/normal/mongo/db/db.o', 'build/linux2/normal/mongo/db/compact.o', '/usr/bin/g++', '/usr/lib64/libm.so', '/usr/lib64/libpthread.so', 'build/linux2/normal/mongo/libmongocommon.a', 'build/linux2/normal/third_party/libpcrecpp.a', 'build/linux2/normal/third_party/murmurhash3/libmurmurhash3.a', 'build/linux2/normal/mongo/libcoredb.a', 'build/linux2/normal/third_party/libmongo_boost.a', 'build/linux2/normal/mongo/libdbcmdline.a', 'build/linux2/normal/mongo/libcoreshard.a', 'build/linux2/normal/mongo/libdefaultversion.a', 'build/linux2/normal/mongo/libserveronly.a', 'build/linux2/normal/mongo/libcoreserver.a', 'build/linux2/normal/third_party/pcre-8.30/libpcrecpp.a', 'build/linux2/normal/third_party/boost/libboost_system.a', 'build/linux2/normal/third_party/boost/libboost_thread.a', 'build/linux2/normal/third_party/boost/libboost_filesystem.a', 'build/linux2/normal/third_party/boost/libboost_program_options.a']
      

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: