Hi,
I'm currently trying to build mono-perf using this guide here:
http://blog.beyondfog.com/mongodb-how-to-benchmark-and-test-performance-using-mongo-perf/#.T6AgY8Uvnrc
I have build mongo from source using scons and everything went fine
but when I try and build mono-perf using scons I get the following
error maybe this guide is missing a step. Also when I check /usr/local/
include/mongo I don't see the platform directory, it does exist in my
~/Projects/mongo/src/mongo/platform directory.
~/Projects/mongo-perf$ sudo scons
scons: Reading SConscript files ...
Checking for C library mongoclient... yes
Checking for C library boost_thread-mt... yes
Checking for C library boost_filesystem-mt... yes
Checking for C library boost_program_options-mt... yes
Checking for C library boost_system-mt... yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o benchmark.o -c benchmark.cpp
In file included from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/pch.h:28:34: error: mongo/platform/basic.h: No such
file or directory
In file included from /usr/local/include/pch.h:76,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/assert_util.h:24:37: error: mongo/
platform/compiler.h: No such file or directory
In file included from /usr/local/include/pch.h:76,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/assert_util.h:150: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:152: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:157: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:158: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:163: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:165: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h:166: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h: In function 'void
mongo::fassert(int, bool)':
/usr/local/include/mongo/util/assert_util.h:175: error:
'fassertFailed' was not declared in this scope
In file included from /usr/local/include/pch.h:76,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/assert_util.h: At global scope:
/usr/local/include/mongo/util/assert_util.h:219: error: expected
constructor, destructor, or type conversion before 'void'
/usr/local/include/mongo/util/assert_util.h: In function 'void
mongo::assertStreamGood(unsigned int, std::string, std::ios&)':
/usr/local/include/mongo/util/assert_util.h:222: error:
'streamNotGood' was not declared in this scope
In file included from /usr/local/include/mongo/util/goodies.h:24,
from /usr/local/include/pch.h:78,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/bson/util/misc.h: In member function 'time_t
mongo::Date_t::toTimeT() const':
/usr/local/include/mongo/bson/util/misc.h:93: error: 'verifyFailed' is
not a member of 'mongo'
/usr/local/include/mongo/bson/util/misc.h:94: error: 'verifyFailed' is
not a member of 'mongo'
In file included from /usr/local/include/mongo/util/goodies.h:25,
from /usr/local/include/pch.h:78,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/concurrency/mutex.h: In constructor
'mongo::SimpleMutex::SimpleMutex(const char*)':
/usr/local/include/mongo/util/concurrency/mutex.h:151: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/util/concurrency/mutex.h: In destructor
'mongo::SimpleMutex::~SimpleMutex()':
/usr/local/include/mongo/util/concurrency/mutex.h:154: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/util/concurrency/mutex.h: In member function
'void mongo::SimpleMutex::lock()':
/usr/local/include/mongo/util/concurrency/mutex.h:158: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/util/concurrency/mutex.h: In member function
'void mongo::SimpleMutex::unlock()':
/usr/local/include/mongo/util/concurrency/mutex.h:159: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/util/concurrency/mutex.h: In destructor
'mongo::RecursiveMutex::scoped_lock::~scoped_lock()':
/usr/local/include/mongo/util/concurrency/mutex.h:191: error:
'verifyFailed' is not a member of 'mongo'
In file included from /usr/local/include/pch.h:78,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/util/goodies.h: In function 'void
mongo::strcpy_s(char*, unsigned int, const char*)':
/usr/local/include/mongo/util/goodies.h:122: error: 'verifyFailed' is
not a member of 'mongo'
In file included from /usr/local/include/mongo/util/log.h:28,
from /usr/local/include/pch.h:80,
from /usr/local/include/mongo/client/dbclient.h:30,
from benchmark.cpp:1:
/usr/local/include/mongo/bson/util/builder.h: In member function 'void
mongo::StringBuilderImpl<Allocator>::appendDoubleNice(double)':
/usr/local/include/mongo/bson/util/builder.h:304: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/bson/util/builder.h:305: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/bson/util/builder.h: In member function
'mongo::StringBuilderImpl<Allocator>&
mongo::StringBuilderImpl<Allocator>::SBNUM(T, int, const char*)':
/usr/local/include/mongo/bson/util/builder.h:338: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/bson/util/builder.h:339: error:
'verifyFailed' is not a member of 'mongo'
In file included from /usr/local/include/mongo/db/../bson/oid.h:20,
from /usr/local/include/mongo/db/jsobj.h:35,
from /usr/local/include/mongo/client/
dbclientinterface.h:26,
from /usr/local/include/mongo/client/connpool.h:23,
from /usr/local/include/mongo/client/dbclient.h:32,
from benchmark.cpp:1:
/usr/local/include/mongo/db/../bson/../util/hex.h: In function 'int
mongo::fromHex(char)':
/usr/local/include/mongo/db/../bson/../util/hex.h:29: error:
'verifyFailed' is not a member of 'mongo'
In file included from /usr/local/include/mongo/db/jsobj.h:36,
from /usr/local/include/mongo/client/
dbclientinterface.h:26,
from /usr/local/include/mongo/client/connpool.h:23,
from /usr/local/include/mongo/client/dbclient.h:32,
from benchmark.cpp:1:
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const char* mongo::BSONElement::binData(int&) const':
/usr/local/include/mongo/db/../bson/bsonelement.h:265: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'mongo::BinDataType mongo::BSONElement::binDataType() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:284: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const char* mongo::BSONElement::regex() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:291: error:
'verifyFailed' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const char* mongo::BSONElement::dbrefNS() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:365: error:
'uasserted' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const mongo::OID& mongo::BSONElement::dbrefOID() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:370: error:
'uasserted' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In constructor
'mongo::BSONElement::BSONElement(const char*, int)':
/usr/local/include/mongo/db/../bson/bsonelement.h:395: error:
'uasserted' is not a member of 'mongo'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'const mongo::BSONElement& mongo::BSONElement::chk(int) const':
/usr/local/include/mongo/db/../bson/bsonelement.h:432: error: cannot
convert 'std::string' to 'const char*' for argument '2' to 'void
mongo::msgasserted(int, const char*)'
/usr/local/include/mongo/db/../bson/bsonelement.h: In member function
'int mongo::BSONElement::canonicalType() const':
/usr/local/include/mongo/db/../bson/bsonelement.h:483: error:
'verifyFailed' is not a member of 'mongo'
In file included from /usr/local/include/mongo/db/../bson/bsonobj.h:
25,
from /usr/local/include/mongo/db/jsobj.h:37,
from /usr/local/include/mongo/client/
dbclientinterface.h:26,
from /usr/local/include/mongo/client/connpool.h:23,
from /usr/local/include/mongo/client/dbclient.h:32,
from benchmark.cpp:1:
/usr/local/include/mongo/db/../bson/util/atomic_int.h: At global
scope:
/usr/local/include/mongo/db/../bson/util/atomic_int.h:35: error:
expected unqualified-id before numeric constant
/usr/local/include/mongo/db/../bson/util/atomic_int.h:35: error:
expected ')' before numeric constant
In file included from /usr/local/include/mongo/db/jsobj.h:37,
from /usr/local/include/mongo/client/
dbclientinterface.h:26,
from /usr/local/include/mongo/client/connpool.h:23,
from /usr/local/include/mongo/client/dbclient.h:32,
from benchmark.cpp:1:
/usr/local/include/mongo/db/../bson/bsonobj.h:442: error: expected '}'
before end of line
/usr/local/include/mongo/db/../bson/bsonobj.h:442: error: expected
declaration before end of line
scons: *** [benchmark.o] Error 1
scons: building terminated because of errors.