gcc - clang error compiling mongodb from source -


i took git checkout of mongodb source files , trying compile it. have gcc installed part of xcode-7.3.1 command-line tools

now when trying build mongodb binaries using:

scons 

i getting below error:

scons: reading sconscript files ... scons version: 2.5.0 python version: 2 7 10 'final' 0 checking whether c compiler works... yes checking whether c++ compiler works... yes checking c++ compiler can link c++ program... yes checking if c++ compiler "g++" gcc... no checking if c++ compiler "g++" clang... yes checking if c compiler "gcc" clang... no c compiler not match identified c++ compiler see /users/debashish.g/mongo-code/mongo/build/scons/config.log details 

in config log shows:

scons: configure: checking if c compiler "gcc" clang... build/scons/sconf_temp/conftest_5.c <- | |#if defined(__clang__) |/* using toolchain defined(__clang__) */ |#else |#error |#endif | gcc -o build/scons/sconf_temp/conftest_5.o -c     build/scons/sconf_temp/conftest_5.c build/scons/sconf_temp/conftest_5.c:5:2: error: #error #error ^~~~~ scons: configure: no 

my gcc --version shows :

configured with: -- prefix=/applications/xcode.app/contents/developer/usr --with-gxx-include-   dir=/usr/include/c++/4.2.1 apple llvm version 7.3.0 (clang-703.0.31) target: x86_64-apple-darwin15.0.0 thread model: posix installeddir:   /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin 

which clang. doing wrong? please help. stuck on long time now.

what missed clang , llvm tools . took checkout of source files , did build of clang tools according steps mentioned here.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -