-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
Dev Platform 2020-07-27
I have a checkout of master at 0b2b705b0de0e0f7f8ba28604dc5585a5dc5ba0b and the enterprise modules 2c965327da25f25e974e3402c891ddca82b096ef. I am building on Ubuntu 18.04 with the v3 mongodbtoolchain version of clang. This produces build artifacts which fail a number of basic tests which all seem to be related to decimal128. Here's how I'm building:
$ cat ~/.scons/site_scons/mongo_custom_variables.py # We these for short_describe below. import os import subprocess CCACHE="ccache" ICECC="icecc" # A little function that gives me a real mongo version, but without the git hash. def short_describe(): import os import subprocess with open(os.devnull, "r+") as devnull: proc = subprocess.Popen("git describe --abbrev=0", stdout=subprocess.PIPE, stderr=devnull, stdin=devnull, shell=True) return proc.communicate()[0].decode('utf-8').strip()[1:] MONGO_VERSION=short_describe() MONGO_GIT_HASH="unknown" CC="/opt/mongodbtoolchain/v3/bin/clang" CXX="/opt/mongodbtoolchain/v3/bin/clang++" $ python3 buildscripts/scons.py --link-model=dynamic --ninja generate-ninja $ ninja -j 500 build/install/bin/bson_test
The resulting bson_test fails like so:
$ build/install/bin/bson_test ... {"t":{"$date":"2020-07-08T19:43:27.946Z"},"s":"I", "c":"TEST", "id":23068, "ctx":"main","msg":"FAILURE","attr":{"failedTestsCount":4,"failedSuitesCount":2,"failedTests":["BSONElementIntegerParseTest/ParseIntegerElementToNonNegativeLongRejectsNonIntegralDecimal","BSONElementIntegerParseTest/ParseIntegerElementToLongRejectsNonIntegralDecimal","BSONElementIntegerParseTest/ParseIntegerElementToLongRejectsLargestDecimal","BSONObjCompare/NumberDecimalCompareDoubleNoDoubleRepresentation"]}}
These are the two failing assertions:
- https://github.com/mongodb/mongo/blob/0b2b705b0de0e0f7f8ba28604dc5585a5dc5ba0b/src/mongo/bson/bsonelement_test.cpp#L292
- https://github.com/mongodb/mongo/blob/0b2b705b0de0e0f7f8ba28604dc5585a5dc5ba0b/src/mongo/bson/bsonelement_test.cpp#L307
I haven't checked whether the problem still repros without ninja or without icecream. I do know that it does not repro with static linking and it does not repro with gcc.
- is related to
-
SERVER-48546 Linker error building with scons --gdbserver
- Closed
-
SERVER-41835 symbol clashes: libgcc vs vendored IntelRDFPMathLib20U1
- Backlog
- links to