diff options
author | Sam Kleinman <samk@10gen.com> | 2016-05-18 12:48:22 -0400 |
---|---|---|
committer | Sam Kleinman <samk@10gen.com> | 2016-05-25 10:14:42 -0400 |
commit | 76f5b2cdeebd7da78588a62f9b2023208acc9928 (patch) | |
tree | dba573586bf52ed5c14bcd094ce2b26676aef2c2 | |
parent | 327019e70bbd8b41a3491d46bce7947fcc11f06a (diff) | |
download | mongo-76f5b2cdeebd7da78588a62f9b2023208acc9928.tar.gz |
SERVER-24193: use gccgo to build tools on rhel55 systems
(cherry picked from commit 8644fe41cc27f1052d602ce5980a95eb551833a9)
-rw-r--r-- | etc/evergreen.yml | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index c141330c61b..b5619e4b652 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -232,6 +232,7 @@ functions: working_dir: src script: | set -o verbose + set -o errexit # create the target directory for the binaries mkdir -p src/mongo-tools @@ -249,19 +250,10 @@ functions: git checkout v3.2 . ./${set_tools_gopath|set_gopath.sh} - # In RHEL 5.5, /usr/bin/ld can't handle --build-id parameters, so - # use a wrapper if it's present on the system - # - if [ -d /opt/ldwrapper/bin ] - then - export PATH=/opt/ldwrapper/bin:$PATH - fi - for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do ${gorootvars} go build -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec $(git rev-parse HEAD) -X github.com/mongodb/mongo-tools/common/options.VersionStr $(git --git-dir ../../.git describe)" ${tooltags|} -o "../mongo-tools/$i${exe|}" $i/main/$i.go echo $i; done - exit 0 "do setup" : - *fetch_artifacts @@ -2291,7 +2283,7 @@ buildvariants: batchtime: 1440 # 1 day expansions: gitvars: LD_LIBRARY_PATH=/opt/openssl/lib64 #needed to workaround the old openSSL on rhel55 builders. - gorootvars: GOROOT=/opt/go PATH="/opt/go/bin:$PATH" + gorootvars: PATH=/opt/mongodbtoolchain/v2/bin:$PATH push_path: linux push_bucket: downloads.mongodb.org push_name: linux @@ -2409,7 +2401,7 @@ buildvariants: batchtime: 1440 # 1 day expansions: gitvars: LD_LIBRARY_PATH=/opt/openssl/lib64 #needed to workaround the old openSSL on rhel55 builders. - gorootvars: GOROOT=/opt/go PATH="/opt/go/bin:$PATH" + gorootvars: PATH=/opt/mongodbtoolchain/v2/bin:$PATH compile_flags: -j$(grep -c ^processor /proc/cpuinfo) CC=/opt/mongodbtoolchain/bin/gcc CXX=/opt/mongodbtoolchain/bin/g++ --release num_jobs_available: $(grep -c ^processor /proc/cpuinfo) test_flags: --repeat=10 --shuffle @@ -2442,7 +2434,7 @@ buildvariants: batchtime: 1440 # 1 day expansions: gitvars: LD_LIBRARY_PATH=/opt/openssl/lib64 #needed to workaround the old openSSL on rhel55 builders. - gorootvars: GOROOT=/opt/go PATH="/opt/go/bin:$PATH" + gorootvars: PATH=/opt/mongodbtoolchain/v2/bin:$PATH push_path: linux push_bucket: downloads.mongodb.org push_name: linux-debug @@ -2555,7 +2547,7 @@ buildvariants: batchtime: 1440 # 1 day expansions: gitvars: LD_LIBRARY_PATH=/opt/openssl/lib64 #needed to workaround the old openSSL on rhel55 builders. - gorootvars: GOROOT=/opt/go PATH="/opt/go/bin:$PATH" + gorootvars: PATH=/opt/mongodbtoolchain/v2/bin:$PATH push_path: linux push_bucket: downloads.mongodb.org push_name: linux-duroff @@ -2622,7 +2614,7 @@ buildvariants: batchtime: 1440 # 1 day expansions: gitvars: LD_LIBRARY_PATH=/opt/openssl/lib64 #needed to workaround the old openSSL on rhel55 builders. - gorootvars: GOROOT=/opt/go PATH="/opt/go/bin:$PATH" + gorootvars: PATH=/opt/mongodbtoolchain/v2/bin:$PATH compile_flags: -j$(grep -c ^processor /proc/cpuinfo) CC=/opt/mongodbtoolchain/bin/gcc CXX=/opt/mongodbtoolchain/bin/g++ --release num_jobs_available: $(grep -c ^processor /proc/cpuinfo) test_flags: --wiredTigerCollectionConfig=type=lsm --wiredTigerIndexConfig=type=lsm @@ -4064,8 +4056,8 @@ buildvariants: batchtime: 1440 # 1 day expansions: gitvars: LD_LIBRARY_PATH=/opt/openssl/lib64 #needed to workaround the old openSSL on rhel55 builders. - gorootvars: GOROOT=/opt/go PATH="/opt/go/bin:$PATH" - tooltags: "-tags 'ssl sasl'" + gorootvars: PATH=/opt/mongodbtoolchain/v2/bin:$PATH + tooltags: -gccgoflags "$(pkg-config --libs --cflags libssl) -L/usr/lib64/sasl2" -tags 'sasl ssl' push_path: linux push_bucket: downloads.10gen.com push_name: linux @@ -5593,7 +5585,7 @@ buildvariants: batchtime: 1440 # 1 day expansions: gitvars: LD_LIBRARY_PATH=/opt/openssl/lib64 #needed to workaround the old openSSL on rhel55 builders. - gorootvars: GOROOT=/opt/go PATH="/opt/go/bin:$PATH" + gorootvars: PATH=/opt/mongodbtoolchain/v2/bin:$PATH test_flags: --storageEngine=ephemeralForTest --excludeWithAnyTags=requires_persistence,requires_fsync,SERVER-21420,SERVER-21658 compile_flags: -j$(grep -c ^processor /proc/cpuinfo) --dbg=off --opt=on CC=/opt/mongodbtoolchain/bin/gcc CXX=/opt/mongodbtoolchain/bin/g++ num_jobs_available: $(grep -c ^processor /proc/cpuinfo) |