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

libunwind fails to build with GCC >=10.2

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.9.0, 4.4.2
    • 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

    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

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

            Dates

              Created:
              Updated:
              Resolved: