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

Ubuntu 16.4 ppc64le builder is linking with ld.gold

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Build
    • None
    • Fully Compatible
    • ALL
    • Platforms 2016-10-10, Platforms 2017-01-23

    Description

      We don't build ld.gold as part of our toolchain build on non-x86 platforms (though, perhaps we should, but that is a separate issue). When we use our toolchain on RHEL, we do not use ld.gold, as expected:

      https://evergreen.mongodb.com/task_log_raw/mongodb_mongo_master_enterprise_rhel_71_ppc64le_compile_f128617d2447f137e89e17f596acebf5c1bc744b_16_09_23_21_39_45/0?type=T#L773

      However, on Ubuntu 16.04, even though our toolchain doesn't contain ld.gold, the system does have /usr/bin/ld.gold. Since our toolchain can find an ld.gold by the default search path, our probe for support for -fuse-ld=gold succeeds, and we end up using it.

      We should either start building gold in our toolchain on all platforms so that we interpose on any available system ld.gold, or we should figure out how to suppress having our toolchain search the default search path for ld.gold, or we should suppress checking for -fuse-ld=gold support on platforms where we don't currently build gold in our toolchain.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: