Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb: 3.4.10 -> 4.0.12 #40082

Open
wants to merge 22 commits into
base: master
from

Conversation

@jarjee
Copy link

commented May 7, 2018

Motivation for this change

Bringing the mongodb server up to the latest stable release. Also had some odd issues with the JS interpreter when using "load()", which seems to be fixed in this version.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@jarjee

This comment has been minimized.

Copy link
Author

commented May 9, 2018

@obadz

This comment has been minimized.

Copy link
Contributor

commented May 12, 2018

@GrahamcOfBorg build mongodb

@GrahamcOfBorg

This comment has been minimized.

Copy link

commented May 12, 2018

Failure on x86_64-darwin (full log)

Attempted: mongodb

Partial log (click to expand)

clang++ -o build/nixos/mongo/s/client/shard_remote.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -std=c++14 -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/bdy0cs6ldrhaqsad7jk0bj5idyb2mh1r-boost-1.60.0/include -I/nix/store/95a2p304va03m7kvj88npmdm8z9qfin2-gperftools-2.6.3/include -I/nix/store/9824k2gmknqp3k4nlcaqpf2pkshva501-pcre-cpp-8.41-bin/include -I/nix/store/qwg3hxrmqk1dcb58l7pnzvr73s9zy7xd-snappy-1.1.7/include -I/nix/store/553hwxk54h8z87m4xgga4n8dznd6n8vp-zlib-1.2.11/include -I/nix/store/sz3q1fs0nvh8x4vnql6js83svi7h0976-libyaml-cpp-0.6.2/include -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/pf16lx06p07zklkdra52p7b5akpd35qj-openssl-1.0.2o-dev/include -I/nix/store/29dslwbdcj62xbip0skfl6hi196jwwii-openssl-1.0.2o/include -I/nix/store/nzp6p9gnyr0764l9w6hp38hvjsndm150-libpcap-1.8.1/include -I/nix/store/n05amix531ayklpwwdrgwlrm7hb2p6z9-python-2.7.14-env/include -I/nix/store/95vh5vrfi7a0cdggl7r5wz29acz11wf5-apple-framework-Security/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/nixos -Isrc src/mongo/s/client/shard_remote.cpp
clang++ -o build/nixos/mongo/s/client/version_manager.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -std=c++14 -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/bdy0cs6ldrhaqsad7jk0bj5idyb2mh1r-boost-1.60.0/include -I/nix/store/95a2p304va03m7kvj88npmdm8z9qfin2-gperftools-2.6.3/include -I/nix/store/9824k2gmknqp3k4nlcaqpf2pkshva501-pcre-cpp-8.41-bin/include -I/nix/store/qwg3hxrmqk1dcb58l7pnzvr73s9zy7xd-snappy-1.1.7/include -I/nix/store/553hwxk54h8z87m4xgga4n8dznd6n8vp-zlib-1.2.11/include -I/nix/store/sz3q1fs0nvh8x4vnql6js83svi7h0976-libyaml-cpp-0.6.2/include -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/pf16lx06p07zklkdra52p7b5akpd35qj-openssl-1.0.2o-dev/include -I/nix/store/29dslwbdcj62xbip0skfl6hi196jwwii-openssl-1.0.2o/include -I/nix/store/nzp6p9gnyr0764l9w6hp38hvjsndm150-libpcap-1.8.1/include -I/nix/store/n05amix531ayklpwwdrgwlrm7hb2p6z9-python-2.7.14-env/include -I/nix/store/95vh5vrfi7a0cdggl7r5wz29acz11wf5-apple-framework-Security/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/nixos -Isrc src/mongo/s/client/version_manager.cpp
clang++ -o build/nixos/mongo/db/startup_warnings_common.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -std=c++14 -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/bdy0cs6ldrhaqsad7jk0bj5idyb2mh1r-boost-1.60.0/include -I/nix/store/95a2p304va03m7kvj88npmdm8z9qfin2-gperftools-2.6.3/include -I/nix/store/9824k2gmknqp3k4nlcaqpf2pkshva501-pcre-cpp-8.41-bin/include -I/nix/store/qwg3hxrmqk1dcb58l7pnzvr73s9zy7xd-snappy-1.1.7/include -I/nix/store/553hwxk54h8z87m4xgga4n8dznd6n8vp-zlib-1.2.11/include -I/nix/store/sz3q1fs0nvh8x4vnql6js83svi7h0976-libyaml-cpp-0.6.2/include -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/pf16lx06p07zklkdra52p7b5akpd35qj-openssl-1.0.2o-dev/include -I/nix/store/29dslwbdcj62xbip0skfl6hi196jwwii-openssl-1.0.2o/include -I/nix/store/nzp6p9gnyr0764l9w6hp38hvjsndm150-libpcap-1.8.1/include -I/nix/store/n05amix531ayklpwwdrgwlrm7hb2p6z9-python-2.7.14-env/include -I/nix/store/95vh5vrfi7a0cdggl7r5wz29acz11wf5-apple-framework-Security/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/startup_warnings_common.cpp
libtool -static -o build/nixos/mongo/db/libstartup_warnings_common.a -s -no_warning_for_no_symbols build/nixos/mongo/db/startup_warnings_common.o
sh: libtool: command not found
scons: *** [build/nixos/mongo/db/libstartup_warnings_common.a] Error 127
scons: building terminated because of errors.
build/nixos/mongo/db/libstartup_warnings_common.a failed: Error 127
builder for '/nix/store/5yxbq91zjhp7nmky38a8brcp3sa9sq6y-mongodb-3.6.4.drv' failed with exit code 2
�[31;1merror:�[0m build of '/nix/store/5yxbq91zjhp7nmky38a8brcp3sa9sq6y-mongodb-3.6.4.drv' failed

@GrahamcOfBorg

This comment has been minimized.

Copy link

commented May 12, 2018

Failure on aarch64-linux (full log)

Attempted: mongodb

Partial log (click to expand)

build/nixos/mongo/db/commands/authentication_commands.o failed: Error 4
build/nixos/mongo/db/commands/parameters.o failed: Error 4
build/nixos/mongo/db/commands/fail_point_cmd.o failed: Error 4
build/nixos/mongo/db/commands/find_and_modify_common.o failed: Error 4
build/nixos/mongo/s/mongos_options.o failed: Error 4
build/nixos/mongo/db/commands/hashcmd.o failed: Error 4
build/nixos/mongo/db/commands/isself.o failed: Error 4
build/nixos/mongo/db/commands/conn_pool_sync.o failed: Error 4
builder for '/nix/store/h1brhkx7knhd0mp33mm9fczzhhyhj3yp-mongodb-3.6.4.drv' failed with exit code 2
�[31;1merror:�[0m build of '/nix/store/h1brhkx7knhd0mp33mm9fczzhhyhj3yp-mongodb-3.6.4.drv' failed

@GrahamcOfBorg

This comment has been minimized.

Copy link

commented May 12, 2018

Success on x86_64-linux (full log)

Attempted: mongodb

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4
shrinking /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin/mongo
shrinking /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin/mongod
shrinking /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin/mongos
shrinking /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin/mongoperf
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/lib  /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4/bin
patching script interpreter paths in /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4
checking for references to /build in /nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4...
/nix/store/9qq8y8vv5vbblllbvgv2bngzmd1qxq4m-mongodb-3.6.4

Copy link
Contributor

left a comment

Needs darwin fix

Copy link
Contributor

left a comment

Also needs aarch64 to be marked broken (or fixed)

@jarjee

This comment has been minimized.

Copy link
Author

commented May 17, 2018

I don't have access to a mac to test with, but adding libtools should do it.

@jarjee

This comment has been minimized.

Copy link
Author

commented May 17, 2018

@GrahamcOfBorg build mongodb

1 similar comment
@obadz

This comment has been minimized.

Copy link
Contributor

commented May 17, 2018

@GrahamcOfBorg build mongodb

@GrahamcOfBorg

This comment has been minimized.

Copy link

commented May 17, 2018

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: mongodb

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg

This comment has been minimized.

Copy link

commented May 17, 2018

Failure on x86_64-darwin (full log)

Attempted: mongodb

Partial log (click to expand)

clang++ -o build/nixos/mongo/db/cloner.o -c -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -std=c++14 -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/bdy0cs6ldrhaqsad7jk0bj5idyb2mh1r-boost-1.60.0/include -I/nix/store/95a2p304va03m7kvj88npmdm8z9qfin2-gperftools-2.6.3/include -I/nix/store/9824k2gmknqp3k4nlcaqpf2pkshva501-pcre-cpp-8.41-bin/include -I/nix/store/qwg3hxrmqk1dcb58l7pnzvr73s9zy7xd-snappy-1.1.7/include -I/nix/store/553hwxk54h8z87m4xgga4n8dznd6n8vp-zlib-1.2.11/include -I/nix/store/sz3q1fs0nvh8x4vnql6js83svi7h0976-libyaml-cpp-0.6.2/include -I/nix/store/wrpcwr7k2x6r0s5xc1svvpsha0cclxjk-cyrus-sasl-2.1.26-bin/include -I/nix/store/pf16lx06p07zklkdra52p7b5akpd35qj-openssl-1.0.2o-dev/include -I/nix/store/29dslwbdcj62xbip0skfl6hi196jwwii-openssl-1.0.2o/include -I/nix/store/nzp6p9gnyr0764l9w6hp38hvjsndm150-libpcap-1.8.1/include -I/nix/store/n05amix531ayklpwwdrgwlrm7hb2p6z9-python-2.7.14-env/include -I/nix/store/95vh5vrfi7a0cdggl7r5wz29acz11wf5-apple-framework-Security/include -I/nix/store/a4iyj890mzb1n1zd5cyxgyd3b9z3gqrk-libtool-2.4.6/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/cloner.cpp
libtool -static -o build/nixos/mongo/db/bson/libdotted_path_support.a -s -no_warning_for_no_symbols build/nixos/mongo/db/bson/dotted_path_support.o
Usage: /nix/store/a4iyj890mzb1n1zd5cyxgyd3b9z3gqrk-libtool-2.4.6/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-static'
scons: *** [build/nixos/mongo/db/bson/libdotted_path_support.a] Error 1
scons: building terminated because of errors.
build/nixos/mongo/db/bson/libdotted_path_support.a failed: Error 1
builder for '/nix/store/s412p7bdjj0zjrnsc58jbdf4pcgf9sf8-mongodb-3.6.4.drv' failed with exit code 2
error: build of '/nix/store/s412p7bdjj0zjrnsc58jbdf4pcgf9sf8-mongodb-3.6.4.drv' failed

@GrahamcOfBorg

This comment has been minimized.

Copy link

commented May 17, 2018

Failure on x86_64-linux (full log)

Attempted: mongodb

Partial log (click to expand)

g++ -o build/nixos/mongo/db/s/config/configsvr_create_database_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/config/configsvr_create_database_command.cpp
g++ -o build/nixos/mongo/db/s/merge_chunks_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/merge_chunks_command.cpp
g++ -o build/nixos/mongo/db/s/set_shard_version_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/set_shard_version_command.cpp
g++ -o build/nixos/mongo/db/s/config/configsvr_split_chunk_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/config/configsvr_split_chunk_command.cpp
g++ -o build/nixos/mongo/db/s/check_sharding_index_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/check_sharding_index_command.cpp
g++ -o build/nixos/mongo/db/s/get_shard_version_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/get_shard_version_command.cpp
g++ -o build/nixos/mongo/db/s/config/configsvr_enable_sharding_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/config/configsvr_enable_sharding_command.cpp
g++ -o build/nixos/mongo/db/s/config/configsvr_update_zone_key_range_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/jxcxnmvvh6lmwlrgql44fpxlrvnknzbf-boost-1.60.0/include -I/nix/store/kqlavdmnqhnd9pnviwhji8762gfkhf1d-gperftools-2.6.3/include -I/nix/store/za04kj9q5m08bh946x96y6cip1kchn9c-pcre-cpp-8.41-bin/include -I/nix/store/grffx916ray3d411wf9czx2y127jac6g-snappy-1.1.7/include -I/nix/store/vj9716h62y21a2hv18al8zvhlqpl30sx-zlib-1.2.11/include -I/nix/store/c85m7cxs10m0rfrqywdr4dly8dnp2gmm-libyaml-cpp-0.6.2/include -I/nix/store/mhrn4ygm88n8x4kb1myrnff41x690r2a-cyrus-sasl-2.1.26-bin/include -I/nix/store/vp2imwdhvqfi2l2d39zqhqz7y56aw2kl-openssl-1.0.2o-dev/include -I/nix/store/qahj8wb88rfs00l9xmjg74m6c52lnxiy-openssl-1.0.2o/include -I/nix/store/hy5jf061b9wxws6wijn2qjcraa569w0l-libpcap-1.8.1/include -I/nix/store/8k3xn58nw9b72hfnrnvjb03v3njx8akq-python-2.7.14-env/include -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp
building of '/nix/store/2nnpsdk2cralpp249dixs74xlw9f374a-mongodb-3.6.4.drv' timed out after 1800 seconds
error: build of '/nix/store/2nnpsdk2cralpp249dixs74xlw9f374a-mongodb-3.6.4.drv' failed

@xeji

This comment has been minimized.

Copy link
Contributor

commented Jun 10, 2018

@GrahamcOfBorg build mongodb

@GrahamcOfBorg

This comment has been minimized.

Copy link

commented Jun 10, 2018

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: mongodb

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg

This comment has been minimized.

Copy link

commented Jun 10, 2018

Failure on x86_64-darwin (full log)

Attempted: mongodb

Partial log (click to expand)

Usage: /nix/store/v19mh1p18achhbcb3r4mf1an2ymyd654-libtool-2.4.6/bin/libtool [OPTION]... [MODE-ARG]...
scons: *** [build/nixos/third_party/wiredtiger/libwiredtiger.a] Error 1
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-static'
scons: *** [build/nixos/third_party/s2/base/libbase.a] Error 1
scons: building terminated because of errors.
build/nixos/third_party/wiredtiger/libwiredtiger.a failed: Error 1
build/nixos/third_party/s2/base/libbase.a failed: Error 1
builder for '/nix/store/nxnpb4mg5hig1xpryannvi9yy5sf731k-mongodb-3.6.4.drv' failed with exit code 2
error: build of '/nix/store/nxnpb4mg5hig1xpryannvi9yy5sf731k-mongodb-3.6.4.drv' failed

@GrahamcOfBorg

This comment has been minimized.

Copy link

commented Jun 10, 2018

Success on x86_64-linux (full log)

Attempted: mongodb

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4
shrinking /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin/mongod
shrinking /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin/mongo
shrinking /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin/mongos
shrinking /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin/mongoperf
strip is /nix/store/21ymadblbmsbb2bk4q7gl4kjasp8zmgd-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/lib  /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4/bin
patching script interpreter paths in /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4
checking for references to /build in /nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4...
/nix/store/ghw2q6a1pdqzv46wqcnydqylh7n04f55-mongodb-3.6.4

@cyounkins

This comment has been minimized.

Copy link
Contributor

commented Dec 18, 2018

Hello! @jarjee could you rebase this, or may I make a new PR with your changes?

Also, Mongo is no longer supported on 32-bit systems - "Changed in version 3.4: MongoDB no longer supports 32-bit x86 platforms." so I think meta.platforms should be set to stdenv.lib.subtractLists platforms.doubles.i686 platforms.doubles.unix; (Reference #52463)

@jarjee

This comment has been minimized.

Copy link
Author

commented Dec 18, 2018

Hi @cyounkins, yes I can rebase this PR. I mostly abandoned this PR since I couldn't build on OSX.

@jarjee jarjee force-pushed the jarjee:update/mongodb branch Dec 20, 2018
@jarjee jarjee changed the title mongodb: 3.4.10 -> 3.6.4 mongodb: 3.4.10 -> 4.0.4 Dec 20, 2018
@jarjee jarjee force-pushed the jarjee:update/mongodb branch to 22e9795 Dec 20, 2018
@cyounkins

This comment has been minimized.

Copy link
Contributor

commented Dec 26, 2018

It appears the 32-bit issue remains in your most recent push - We need to disable building on 32-bit systems as it isn't supported and in my testing has failed. This is the error that occurs: https://jira.mongodb.org/browse/SERVER-22810

Could you please set meta.platforms to stdenv.lib.subtractLists platforms.doubles.i686 platforms.doubles.unix; ? Thanks!

@jarjee

This comment has been minimized.

Copy link
Author

commented Dec 27, 2018

@cyounkins Sorry for the wait, I've made the change you requested.

@ryantm

This comment has been minimized.

Copy link
Member

commented Feb 23, 2019

@GrahamcOfBorg build mongodb

@aanderse

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2019

@jarjee openssl major version has changed a few days ago. You can explicitly pass the old version of openssl to 3.4 and it should preserve the old behavior.

Nathan Smyth
@jarjee jarjee force-pushed the jarjee:update/mongodb branch from 211f84c to be02380 Aug 27, 2019
@jarjee

This comment has been minimized.

Copy link
Author

commented Aug 27, 2019

I've tried using the old version of openssl with 3_4, but it still doesn't seem to build. Looks like somehow the newer version of openssl is still getting included, even with passing down the old version explicitly.

@aanderse

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2019

@GrahamcOfBorg build mongodb-3_4
@GrahamcOfBorg build mongodb-3_6

@jarjee oddly I can't seem to build your branch of mongodb at all because of #65471 🤔

@aanderse

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2019

sigh - I keep forgetting about that license...

@jarjee

This comment has been minimized.

Copy link
Author

commented Aug 27, 2019

Is it worth adding AGPL variants? Essentially what @alyssais suggested? I was inclined to not do that since it means that the packages will no longer update, but SSPL being non-free is causing issues. Especially since hydra doesn't run unfree tests AFAIK.

@aanderse

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2019

@alyssais @cyounkins @ryantm anyone have any input? I'm a bit out of my element here as someone who has no expertise in mongo, but would like to see modern versions in 19.09.

@aanderse

This comment has been minimized.

Copy link
Contributor

commented Aug 31, 2019

@jarjee if only 3.4 is broken then maybe it is worth adding AGPL variant for that version alone. We're so close here...

@alyssais

This comment has been minimized.

Copy link
Member

commented Aug 31, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.