Not the answer you need? Try our search, browse our categories, or register and ask your own question!

Build Monogdb V3.6 on Macos fail

LixinLixin Active Member Poster
When I build mongod/mongos on Macos ,a large number of error like this:
duplicate symbol 'mongo::error_details::isNamedCode<9>' in:
    build/opt/mongo/s/cluster_cursor_stats.o
    build/opt/mongo/s/mongos_options.o
duplicate symbol 'mongo::error_details::isNamedCode<199>' in:
    build/opt/mongo/s/cluster_cursor_stats.o
    build/opt/mongo/s/mongos_options.o
duplicate symbol 'mongo::error_details::isNamedCode<89>' in:
    build/opt/mongo/s/cluster_cursor_stats.o
    build/opt/mongo/s/mongos_options.o
duplicate symbol 'mongo::error_details::isNamedCode<189>' in:
    build/opt/mongo/s/cluster_cursor_stats.o
    build/opt/mongo/s/mongos_options.o
duplicate symbol 'mongo::error_details::isNamedCode<79>' in:
    build/opt/mongo/s/cluster_cursor_stats.o
    build/opt/mongo/s/mongos_options.o
duplicate symbol 'mongo::error_details::isNamedCode<179>' in:
    build/opt/mongo/s/cluster_cursor_stats.o
    build/opt/mongo/s/mongos_options.o
duplicate symbol 'mongo::error_details::isNamedCode<69>' in:

I compile v3.4 not have this problem.
Complie cmd="python2 buildscripts/scons.py mongos MONGO_VERSION=3.6.18 --disable-warnings-as-errors"

Answers

  • Evgeniy PatlanEvgeniy Patlan Percona Percona
    Hi @Lixin
    MacOS is not in the list of supported platforms for Percona Server for MongoDB.
    That is why we haven't build it and verify on MacOS.
    As for compile command - we use more parameters.
    Here is the example of build command
    buildscripts/scons.py CC=/usr/local/gcc-5.4.0/bin/gcc-5.4 CXX=/usr/local/gcc-5.4.0/bin/g++-5.4 \
    --disable-warnings-as-errors --release --ssl --opt=on -j4 --use-sasl-client --wiredtiger --audit --rocksdb \
    --inmemory --hotbackup \
    'CPPPATH=BUILDDIR/install/include /usr/local/include' \
    'LIBPATH=BUILDDIR/install/lib /usr/local/lib /usr/local/lib64' \
    LINKFLAGS= mongod mongos mongo mongobridge perconadecrypt
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.