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

Can't compile master branch with off-the-shelf gcc 5.4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.5
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Create AWS instance with Ubuntu 14.04. Then:

      sudo apt-get install git
      git clone https://github.com/mongodb/mongo.git
      sudo apt-get install scons
      sudo add-apt-repository ppa:ubuntu-toolchain-r/test
      sudo apt-get update
      sudo apt-get install gcc-5 g++-5
      sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
      cd mongo
      scons mongod

      Output: https://gist.github.com/igorcanadi/8f42d680be476ab12f7d3da3dc141d59

      Show
      Create AWS instance with Ubuntu 14.04. Then: sudo apt-get install git git clone https://github.com/mongodb/mongo.git sudo apt-get install scons sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-5 g++-5 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 cd mongo scons mongod Output: https://gist.github.com/igorcanadi/8f42d680be476ab12f7d3da3dc141d59
    • Sprint:
      Platforms 2017-03-27

      Description

      I'm trying to reproduce https://jira.mongodb.org/browse/SERVER-27400 and need to build mongo on AWS environment. I created a c3.4xlarge instance with Ubuntu 14.04, installed gcc 5.4, and scons complains that my compiler doesn't support thread local storage for trivially constructible types. See repro steps.

        Attachments

          Activity

            People

            Assignee:
            mark.benvenuto Mark Benvenuto
            Reporter:
            igor Igor Canadi
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: