bsoncxx version: 3.6.1 found libbson version mongocxx version: 3.6.1 found libmongoc version 1.17.2 CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY g++: internal compiler error: Terminated (program as) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[2]: *** [source_subfolder/src/mongocxx/CMakeFiles/mongocxx_mocked.dir/private/libmongoc.cpp.o] Error 4 make[2]: *** Deleting file `source_subfolder/src/mongocxx/CMakeFiles/mongocxx_mocked.dir/private/libmongoc.cpp.o' make[1]: *** [source_subfolder/src/mongocxx/CMakeFiles/mongocxx_mocked.dir/all] Error 2 make: *** [all] Error 2 ERROR: Exiting with code: 5