[SERVER-28199] Can't compile master branch with off-the-shelf gcc 5.4 Created: 06/Mar/17  Updated: 05/Apr/17  Resolved: 07/Mar/17

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.5.5

Type: Bug Priority: Major - P3
Reporter: Igor Canadi Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

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
Participants:

 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.



 Comments   
Comment by Githook User [ 07/Mar/17 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-28199 Raise minimum required scons version
Branch: master
https://github.com/mongodb/mongo/commit/c2c8abc0a682be21c911e51ad368b09fd5d73ed7

Comment by Mark Benvenuto [ 06/Mar/17 ]

igor I just sent out a code review of a change to raise the minimum scons version to prevent others from hitting this problem.

Comment by Igor Canadi [ 06/Mar/17 ]

That works, thanks a lot Mark!

Comment by Mark Benvenuto [ 06/Mar/17 ]

igor, use this command to compile MongoDB. It will use Scons 2.5.0 instead of the scons that comes with Ubuntu 14.04. There was a recent change in master that bumps the minimum version of scons.

python buildscripts/scons.py mongod

Generated at Thu Feb 08 04:17:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.