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

libunwind fails to build with GCC >=10.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0, 4.4.2
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Steps To Reproduce:
      Hide

      get ubuntu 20.04

      install gcc/++ 10.2

      build install mongo with gcc/++ 10.2

      Show
      get ubuntu 20.04 install gcc/++ 10.2 build install mongo with gcc/++ 10.2
    • Sprint:
      Dev Platform 2020-11-02

      Description

      In the newer GCC version, C globals are now not defined in the "common" bss section by default. linunwind will fail to build because of multiple definitions of _U_dyn_info_list symbol. This can be fixed by either putting an extern in front of the extra defs, save a single location, or using the -fcommon option to preserve the older GCC behavior.

       

      Suggesting using the -fcommon option for the libunwind build as that will be safer, and we wont need to modify third party vendor-ed code.

       

      More info can be found here: https://gcc.gnu.org/gcc-10/porting_to.html

        Attachments

          Activity

            People

            Assignee:
            daniel.moody Daniel Moody
            Reporter:
            daniel.moody Daniel Moody
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: