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

libunwind fails to build with GCC >=10.2

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0, 4.4.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • 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
    • Dev Platform 2020-11-02

      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

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

              Created:
              Updated:
              Resolved: