# Build Monogdb V3.6 on Macos fail

**URL:** <https://forums.percona.com/t/build-monogdb-v3-6-on-macos-fail/7664>\
**Category:** Percona Server for MongoDB\
**Created:** [June 5, 2020, 3:33am UTC](https://forums.percona.com/t/build-monogdb-v3-6-on-macos-fail/7664 "2020-06-05T03:33:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lixin](https://avatars.discourse-cdn.com/v4/letter/l/a3d4f5/32.png) [@Lixin](https://forums.percona.com/u/Lixin)\
**Post date:** [June 5, 2020, 3:33am UTC](https://forums.percona.com/t/build-monogdb-v3-6-on-macos-fail/7664/1 "2020-06-05T03:33:58Z")

</div>

When I build mongod/mongos on Macos ，a large number of error like this：  
duplicate symbol ‘mongo::error\_details::isNamedCode\<9\>’ in:&nbsp; &nbsp; build/opt/mongo/s/cluster\_cursor\_stats.o&nbsp; &nbsp; build/opt/mongo/s/mongos\_options.oduplicate symbol ‘mongo::error\_details::isNamedCode\<199\>’ in:&nbsp; &nbsp; build/opt/mongo/s/cluster\_cursor\_stats.o&nbsp; &nbsp; build/opt/mongo/s/mongos\_options.oduplicate symbol ‘mongo::error\_details::isNamedCode\<89\>’ in:&nbsp; &nbsp; build/opt/mongo/s/cluster\_cursor\_stats.o&nbsp; &nbsp; build/opt/mongo/s/mongos\_options.oduplicate symbol ‘mongo::error\_details::isNamedCode\<189\>’ in:&nbsp; &nbsp; build/opt/mongo/s/cluster\_cursor\_stats.o&nbsp; &nbsp; build/opt/mongo/s/mongos\_options.oduplicate symbol ‘mongo::error\_details::isNamedCode\<79\>’ in:&nbsp; &nbsp; build/opt/mongo/s/cluster\_cursor\_stats.o&nbsp; &nbsp; build/opt/mongo/s/mongos\_options.oduplicate symbol ‘mongo::error\_details::isNamedCode\<179\>’ in:&nbsp; &nbsp; build/opt/mongo/s/cluster\_cursor\_stats.o&nbsp; &nbsp; build/opt/mongo/s/mongos\_options.oduplicate 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”

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [June 9, 2020, 10:21am UTC](https://forums.percona.com/t/build-monogdb-v3-6-on-macos-fail/7664/2 "2020-06-09T10:21:33Z")

</div>

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

```auto
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

```
