CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY protobuf_BUILD_LIBPROTOC g++: internal compiler error: Terminated (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[2]: *** [source_subfolder/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.pb.cc.o] Error 4 make[2]: *** Waiting for unfinished jobs.... g++: internal compiler error: Terminated (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[2]: *** [source_subfolder/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set_heavy.cc.o] Error 4 g++: internal compiler error: Terminated (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[2]: *** [source_subfolder/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.cc.o] Error 4 make[1]: *** [source_subfolder/cmake/CMakeFiles/libprotobuf.dir/all] Error 2 make: *** [all] Error 2 ERROR: Exiting with code: 5