libunwind fails to build with GCC >=10.2

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Daniel Moody
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: