Skip to content

Instantly share code, notes, and snippets.

@DiannaHohensee
Created March 30, 2023 18:34
Show Gist options
  • Save DiannaHohensee/c1fea6102d5d8ce946a80c5e4e5605a7 to your computer and use it in GitHub Desktop.
Save DiannaHohensee/c1fea6102d5d8ce946a80c5e4e5605a7 to your computer and use it in GitHub Desktop.
~/mongo (master)*$ ninja -j400 install-mongod
[311/3072 ( 10%) 25.904s] Compiled build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.dyn.o
FAILED: build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.dyn.o
rm -f build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.dyn.o; export CCACHE_NOCPP2='1';export CCACHE_PREFIX='/home/ubuntu/mongo/build/scons/icecream/7a67446c/run-icecc.sh';export ICECC_CLANG_REMOTE_CPP='1';export PATH='/opt/mongodbtoolchain/v4/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin';/opt/mongodbtoolchain/v4/bin/ccache /opt/mongodbtoolchain/v4/bin/clang++ @build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.dyn.o.rsp
In file included from build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.cpp:9:
In file included from build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.h:28:
src/mongo/db/server_parameter_with_storage.h:392:16: error: no matching member function for call to 'append'
b->append(name, getValue(tenantId));
~~~^~~~~~
src/mongo/db/server_parameter_with_storage.h:316:5: note: in instantiation of member function 'mongo::IDLServerParameterWithStorage<mongo::ServerParameterType::kStartupOnly, mongo::HostAndPort>::append' requested here
IDLServerParameterWithStorage(StringData name, T& storage)
^
/opt/mongodbtoolchain/revisions/11316f1e7b36f08dcdd2ad0640af18f9287876f4/stow/gcc-v4.zdM/lib/gcc/x86_64-mongodb-linux/11.3.0/../../../../include/c++/11.3.0/bits/unique_ptr.h:962:34: note: in instantiation of member function 'mongo::IDLServerParameterWithStorage<mongo::ServerParameterType::kStartupOnly, mongo::HostAndPort>::IDLServerParameterWithStorage' requested here
{ return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
^
src/mongo/db/server_parameter_with_storage.h:541:19: note: in instantiation of function template specialization 'std::make_unique<mongo::IDLServerParameterWithStorage<mongo::ServerParameterType::kStartupOnly, mongo::HostAndPort>, mongo::StringData &, mongo::HostAndPort &>' requested here
auto p = std::make_unique<IDLServerParameterWithStorage<paramType, T>>(name, storage);
^
build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.cpp:30:21: note: in instantiation of function template specialization 'mongo::makeIDLServerParameterWithStorage<mongo::ServerParameterType::kStartupOnly, mongo::HostAndPort>' requested here
auto* ret = makeIDLServerParameterWithStorage<ServerParameterType::kStartupOnly>("searchIndexManagementHostAndPort", searchIndexParamsHost);
^
src/mongo/bson/bsonobjbuilder.h:162:14: note: candidate function not viable: no known conversion from 'mongo::IDLServerParameterWithStorage<mongo::ServerParameterType::kStartupOnly, mongo::HostAndPort>::element_type' (aka 'mongo::HostAndPort') to 'mongo::BSONObj' for 2nd argument
Derived& append(StringData fieldName, BSONObj subObj) {
^
src/mongo/bson/bsonobjbuilder.h:211:14: note: candidate function not viable: no known conversion from 'mongo::IDLServerParameterWithStorage<mongo::ServerParameterType::kStartupOnly, mongo::HostAndPort>::element_type' (aka 'mongo::HostAndPort') to 'mongo::BSONArray' for 2nd argument
Derived& append(StringData fieldName, BSONArray arr) {
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment