/tmp/mongo-cxx-driver-r3.0.1/build$ clang --version clang version 3.8.0 (tags/RELEASE_380/final 273069) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/bin /tmp/mongo-cxx-driver-r3.0.1/build$ export CC=clang /tmp/mongo-cxx-driver-r3.0.1/build$ export CXX=clang++ /tmp/mongo-cxx-driver-r3.0.1/build$ export CMAKE_C_FLAGS="-fPIC -pthread" /tmp/mongo-cxx-driver-r3.0.1/build$ export CMAKE_CXX_FLAGS="-stdlib=libc++ -std=c++11 -fPIC -pthread" /tmp/mongo-cxx-driver-r3.0.1/build$ export CMAKE_CXX_LINK_FLAGS="-lc++abi -lpthread" /tmp/mongo-cxx-driver-r3.0.1/build$ export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig /tmp/mongo-cxx-driver-r3.0.1/build$ cmake -DCMAKE_PREFIX_PATH=/usr/local -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_BOOST=ON -DBSONCXX_POLY_USE_MNMLSTC=OFF -DBoost_INCLUDE_DIR=/usr/local/include .. -- The CXX compiler identification is Clang 3.8.0 -- Check for working CXX compiler: /usr/local/bin/clang++ -- Check for working CXX compiler: /usr/local/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- The C compiler identification is Clang 3.8.0 -- Check for working C compiler: /usr/local/bin/clang -- Check for working C compiler: /usr/local/bin/clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Checking for module 'libbson-1.0>=1.3.4' -- Found libbson-1.0, version 1.3.5 -- Found LIBBSON: TRUE -- Boost version: 1.60.0 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Checking for module 'libmongoc-1.0>=1.3.4' -- Found libmongoc-1.0, version 1.3.5 -- Found LIBMONGOC: TRUE -- Configuring done -- Generating done -- Build files have been written to: /tmp/mongo-cxx-driver-r3.0.1/build /tmp/mongo-cxx-driver-r3.0.1/build$ make Scanning dependencies of target bsoncxx [ 1%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/array/element.cpp.o [ 1%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/array/value.cpp.o [ 1%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/array/view.cpp.o [ 2%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/builder/core.cpp.o [ 2%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/document/element.cpp.o [ 3%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/document/value.cpp.o [ 3%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/document/view.cpp.o [ 3%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/exception/error_code.cpp.o [ 4%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/json.cpp.o [ 4%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/oid.cpp.o [ 5%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/private/itoa.cpp.o [ 5%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/string/view_or_value.cpp.o [ 5%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/types.cpp.o [ 6%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/types/value.cpp.o [ 6%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx.dir/validate.cpp.o [ 6%] Linking CXX shared library libbsoncxx.so [ 6%] Built target bsoncxx Scanning dependencies of target bsoncxx_static [ 7%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/array/element.cpp.o [ 7%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/array/value.cpp.o [ 9%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/array/view.cpp.o [ 9%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/builder/core.cpp.o [ 9%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/document/element.cpp.o [ 10%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/document/value.cpp.o [ 10%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/document/view.cpp.o [ 11%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/exception/error_code.cpp.o [ 11%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/json.cpp.o [ 11%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/oid.cpp.o [ 12%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/private/itoa.cpp.o [ 12%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/string/view_or_value.cpp.o [ 12%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/types.cpp.o [ 13%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/types/value.cpp.o [ 13%] Building CXX object src/bsoncxx/CMakeFiles/bsoncxx_static.dir/validate.cpp.o [ 14%] Linking CXX static library libbsoncxx.a [ 14%] Built target bsoncxx_static Scanning dependencies of target test_bson [ 14%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_b_date.cpp.o [ 15%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_builder.cpp.o [ 15%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_get_values.cpp.o [ 17%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_util_itoa.cpp.o [ 17%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/bson_validate.cpp.o [ 17%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/json.cpp.o [ 18%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/new_tests.cpp.o [ 18%] Building CXX object src/bsoncxx/test/CMakeFiles/test_bson.dir/view_or_value.cpp.o [ 18%] Linking CXX executable test_bson [ 18%] Built target test_bson Scanning dependencies of target mongocxx [ 19%] Building CXX object src/mongocxx/CMakeFiles/mongocxx.dir/bulk_write.cpp.o [ 19%] Building CXX object src/mongocxx/CMakeFiles/mongocxx.dir/client.cpp.o [ 20%] Building CXX object src/mongocxx/CMakeFiles/mongocxx.dir/collection.cpp.o In file included from /tmp/mongo-cxx-driver-r3.0.1/src/mongocxx/collection.cpp:15: In file included from /tmp/mongo-cxx-driver-r3.0.1/src/mongocxx/collection.hpp:22: In file included from /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/stream/document.hpp:18: In file included from /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/stream/key_context.hpp:19: /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/stream/value_context.hpp:70:16: error: call to member function 'append' is ambiguous _core->append(std::forward(t)); ~~~~~~~^~~~~~ /tmp/mongo-cxx-driver-r3.0.1/src/mongocxx/collection.cpp:210:40: note: in instantiation of function template specialization 'bsoncxx::v_noabi::builder::stream::value_context >::operator<<' requested here filter_builder << "$maxTimeMS" << options.max_time()->count(); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:243:10: note: candidate function void append(bool value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:248:10: note: candidate function void append(double value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:253:10: note: candidate function void append(std::int32_t value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:258:10: note: candidate function void append(std::int64_t value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:115:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_double' for 1st argument void append(const types::b_double& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:120:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_utf8' for 1st argument void append(const types::b_utf8& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:125:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_document' for 1st argument void append(const types::b_document& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:130:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_array' for 1st argument void append(const types::b_array& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:135:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_binary' for 1st argument void append(const types::b_binary& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:140:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_undefined' for 1st argument void append(const types::b_undefined& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:145:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_oid' for 1st argument void append(const types::b_oid& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:150:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_bool' for 1st argument void append(const types::b_bool& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:155:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_date' for 1st argument void append(const types::b_date& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:160:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_null' for 1st argument void append(const types::b_null& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:165:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_regex' for 1st argument void append(const types::b_regex& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:170:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_dbpointer' for 1st argument void append(const types::b_dbpointer& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:175:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_code' for 1st argument void append(const types::b_code& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:180:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_symbol' for 1st argument void append(const types::b_symbol& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:185:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_codewscope' for 1st argument void append(const types::b_codewscope& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:190:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_int32' for 1st argument void append(const types::b_int32& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:195:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_timestamp' for 1st argument void append(const types::b_timestamp& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:200:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_int64' for 1st argument void append(const types::b_int64& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:205:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_minkey' for 1st argument void append(const types::b_minkey& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:210:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::b_maxkey' for 1st argument void append(const types::b_maxkey& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:215:10: note: candidate function not viable: no known conversion from 'long long' to 'const types::value' for 1st argument void append(const types::value& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:220:10: note: candidate function not viable: no known conversion from 'long long' to 'std::string' (aka 'basic_string, allocator >') for 1st argument void append(std::string str); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:225:10: note: candidate function not viable: no known conversion from 'long long' to 'stdx::string_view' (aka 'basic_string_ref >') for 1st argument void append(stdx::string_view str); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:263:10: note: candidate function not viable: no known conversion from 'long long' to 'const bsoncxx::v_noabi::oid' for 1st argument void append(const oid& value); ^ /tmp/mongo-cxx-driver-r3.0.1/src/bsoncxx/builder/core.hpp:234:25: note: candidate template ignored: could not match 'T *' against 'long long' BSONCXX_INLINE void append(T* v) { ^ 1 error generated. make[2]: *** [src/mongocxx/CMakeFiles/mongocxx.dir/collection.cpp.o] Error 1 make[1]: *** [src/mongocxx/CMakeFiles/mongocxx.dir/all] Error 2 make: *** [all] Error 2 # Affected files and lines: /tmp/mongo-cxx-driver-r3.0.1/src/mongocxx/collection.cpp:210 /tmp/mongo-cxx-driver-r3.0.1/src/mongocxx/collection.cpp:291 /tmp/mongo-cxx-driver-r3.0.1/src/mongocxx/collection.cpp:583 /tmp/mongo-cxx-driver-r3.0.1/src/mongocxx/collection.cpp:736 filter_builder << "$maxTimeMS" << options.max_time()->count(); /tmp/mongo-cxx-driver-r3.0.1/src/mongocxx/options/modify_collection.cpp:38 << "expireAfterSeconds" << seconds.count() << finalize);