g++ -o build/build.el7/mongo/shell/shell_utils_launcher.o -c -Wnon-virtual-dtor -Woverloaded-virtual -O2 -g1 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fno-builtin-memcmp -D_SCONS -DMONGO_EXPOSE_MACROS -DPCRE_STATIC -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -DMONGO_BYTE_ORDER=1234 -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD -DMONGO_HAVE_GCC_ATOMIC_BUILTINS -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_VERSION=2 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_POSIX_MONOTONIC_CLOCK -DMONGO_HAVE_EXECINFO_BACKTRACE -DMONGO_HAVE_FIPS_MODE_SET -Isrc/third_party/s2 -Ibuild/build.el7 -Isrc src/mongo/shell/shell_utils_launcher.cpp
|
src/mongo/shell/bench.cpp: In member function 'void mongo::BenchRunWorker::generateLoadOnConnection(mongo::DBClientBase*)':
|
src/mongo/shell/bench.cpp:379:17: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
|
auto& stats = shouldCollectStats() ? _stats : _statsBlackHole;
|
^
|
src/mongo/shell/bench.cpp:379:23: error: ISO C++ forbids declaration of 'stats' with no type [-fpermissive]
|
auto& stats = shouldCollectStats() ? _stats : _statsBlackHole;
|
^
|
src/mongo/shell/bench.cpp:379:63: error: invalid initialization of reference of type 'int&' from expression of type 'mongo::BenchRunStats'
|
auto& stats = shouldCollectStats() ? _stats : _statsBlackHole;
|
^
|
src/mongo/shell/bench.cpp:429:61: error: request for member 'findOneCounter' in 'stats', which is of non-class type 'int'
|
BenchRunEventTrace _bret(&stats.findOneCounter);
|
^
|
src/mongo/shell/bench.cpp:439:39: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp:453:61: error: request for member 'commandCounter' in 'stats', which is of non-class type 'int'
|
BenchRunEventTrace _bret(&stats.commandCounter);
|
^
|
src/mongo/shell/bench.cpp:461:35: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp:468:39: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp:493:61: error: request for member 'queryCounter' in 'stats', which is of non-class type 'int'
|
BenchRunEventTrace _bret(&stats.queryCounter);
|
^
|
src/mongo/shell/bench.cpp:498:61: error: request for member 'queryCounter' in 'stats', which is of non-class type 'int'
|
BenchRunEventTrace _bret(&stats.queryCounter);
|
^
|
src/mongo/shell/bench.cpp:515:39: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp:534:61: error: request for member 'updateCounter' in 'stats', which is of non-class type 'int'
|
BenchRunEventTrace _bret(&stats.updateCounter);
|
^
|
src/mongo/shell/bench.cpp:568:43: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp:586:61: error: request for member 'insertCounter' in 'stats', which is of non-class type 'int'
|
BenchRunEventTrace _bret(&stats.insertCounter);
|
^
|
src/mongo/shell/bench.cpp:615:43: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp:635:61: error: request for member 'deleteCounter' in 'stats', which is of non-class type 'int'
|
BenchRunEventTrace _bret(&stats.deleteCounter);
|
^
|
src/mongo/shell/bench.cpp:667:43: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp:697:31: error: request for member 'error' in 'stats', which is of non-class type 'int'
|
stats.error = true;
|
^
|
src/mongo/shell/bench.cpp:701:27: error: request for member 'opCount' in 'stats', which is of non-class type 'int'
|
stats.opCount++;
|
^
|
src/mongo/shell/bench.cpp:722:35: error: request for member 'trappedErrors' in 'stats', which is of non-class type 'int'
|
stats.trappedErrors.push_back( BSON( "error" << ex.what() << "op" << e << "count" << count ) );
|
^
|
src/mongo/shell/bench.cpp:728:27: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp:734:27: error: request for member 'errCount' in 'stats', which is of non-class type 'int'
|
stats.errCount++;
|
^
|
src/mongo/shell/bench.cpp: In static member function 'static mongo::BSONObj mongo::BenchRunner::finish(mongo::BenchRunner*)':
|
src/mongo/shell/bench.cpp:914:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
|
auto appendPerSec = [&buf, runner](StringData name, double total) {
|
^
|
src/mongo/shell/bench.cpp:914:15: error: 'appendPerSec' does not name a type
|
auto appendPerSec = [&buf, runner](StringData name, double total) {
|
^
|
src/mongo/shell/bench.cpp:918:50: error: 'appendPerSec' was not declared in this scope
|
appendPerSec("totalOps/s", stats.opCount);
|
^
|
scons: *** [build/build.el7/mongo/shell/bench.o] Error 1
|
scons: building terminated because of errors.
|