Created attachment 1239047 [details]
Log from running failing unittests
Description of problem:
On s390x machine some MongoDB storage driver unittests are failing.
Version-Release number of selected component (if applicable):
mongodb-3.4.1-2 RPM from Fedora rawhide - http://pkgs.fedoraproject.org/cgit/rpms/mongodb.git/tree/
(building without using system libraries and using bundled one, result in same failure)
- rebuilding RPM from Fedora Rawhide
- build MongoDB 3.4.1 from source with these commands:
$ cat > variables.list
CFLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=z9-109 -mtune=z10"
LINKFLAGS="-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory"
$ scons all -j4 --ssl --nostrip --disable-warnings-as-errors --variables-files=variables.list
and run unittest testsuite:
$./buildscripts/resmoke.py --dbpathPrefix ./var --continueOnFailure --nopreallocj --suites unittests --storageEngine=wiredTiger
[resmoke] 2017-01-09T10:45:13.523+0000 Summary of unittests suite: 306 test(s) ran in 826.50 seconds (302 succeeded, 0 were skipped, 4 failed, 0 errored)
cpp_unit_tests: 306 test(s) ran in 826.50 seconds (302 succeeded, 0 were skipped, 4 failed, 0 errored)
The following tests failed (with exit code):
All unittests in testsuite passes
Upstream bug - https://jira.mongodb.org/browse/SERVER-27620
------- Comment From email@example.com 2017-01-12 02:32 EDT-------
Comment from Cindy Lee 2017-01-11 12:58:39 CST
Upstream bug at https://jira.mongodb.org/browse/SERVER-27620
has latest update from mongoDB now, they seem to be aware of it too,
they provide solution there.
Looks like all you need to do is put a flag of --use-s390x-crc32=off
Thanks. It is working with this flag.
However it would be nice to be able to detect presence of z13 (~having CRC32 instructions) on runtime...
Closing this bugs - it is fixed in Fedora Rawhide.