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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.5.5
    • Build
    • None
    • Fully Compatible
    • ALL
    • 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
    • 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

            mark.benvenuto@mongodb.com Mark Benvenuto
            igor Igor Canadi
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: