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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.5
    • Affects Version/s: None
    • Component/s: 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

      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.

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

              Created:
              Updated:
              Resolved: