MongoDB 4.4.4 is repeatedly failing to build on my system. Reproducible: Always Steps to Reproduce: 1. emerge -uDN --with-bdeps dev-db/mongodb 2. 3. Actual Results: src/mongo/db/matcher/expression_type.h:74:30: note: remove ‘std::move’ call src/mongo/db/matcher/expression_type.h: In instantiation of ‘std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]’: src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove ‘std::move’ call src/mongo/db/matcher/expression_type.h: In instantiation of ‘std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with T = mongo::TypeMatchExpression]’: src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove ‘std::move’ call src/mongo/db/matcher/expression_type.h: In instantiation of ‘std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]’: src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove ‘std::move’ call src/mongo/db/matcher/expression_type.h: In instantiation of ‘std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]’: src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove ‘std::move’ call src/mongo/db/matcher/expression_type.h: In instantiation of ‘std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with T = mongo::TypeMatchExpression]’: src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove ‘std::move’ call scons: building terminated because of errors. build/opt/mongo/db/update/update_driver.o failed: Error 1 * ERROR: dev-db/mongodb-4.4.4::gentoo failed (compile phase): * escons failed. * * Call stack: * ebuild.sh, line 127: Called src_compile * environment, line 2984: Called escons 'CC=x86_64-pc-linux-gnu-gcc' 'CXX=x86_64-pc-linux-gnu-g++' '--disable-warnings-as-errors' '--use-system-boost' '--use-system-pcre' '--use-system-snappy' '--use-system-stemmer' '--use-system-yaml' '--use-system-zlib' '--use-system-zstd' '--ssl' '--nostrip' 'install-core' * environment, line 1624: Called die * The specific snippet of code: * die -n "escons failed." * * If you need support, post the output of `emerge --info '=dev-db/mongodb-4.4.4::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-db/mongodb-4.4.4::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-db/mongodb-4.4.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mongodb-4.4.4/temp/environment'. * Working directory: '/var/tmp/portage/dev-db/mongodb-4.4.4/work/mongodb-src-r4.4.4' * S: '/var/tmp/portage/dev-db/mongodb-4.4.4/work/mongodb-src-r4.4.4' Expected Results: Expected to build.
Created attachment 722317 [details] emerge --info
Created attachment 722320 [details] build.log
Created attachment 722323 [details] emerge -pqv '=dev-db/mongo-4.4.4::gentoo'
In the log: src/mongo/db/exec/plan_stats.h:214:10: error: ‘optional’ in namespace ‘std’ does not name a template type *** This bug has been marked as a duplicate of bug 768339 ***