0
mongodb 소스 파일에 대한 git checkout을 수행하여 컴파일하려고합니다. 나는 GCC가 설치되어 엑스 코드-7.3.1 명령 줄 도구의 일환으로 지금소스에서 mongodb를 컴파일하는 데 clang error가 발생했습니다.
내가 사용하여 MongoDB의 바이너리를 구축을 위해 노력하고있다 :
: 나는 아래의 오류를 얻고있다scons all
을 는 config를 로그에
scons: Reading SConscript files ...
scons version: 2.5.0
python version: 2 7 10 'final' 0
Checking whether the C compiler works... yes
Checking whether the C++ compiler works... yes
Checking that the C++ compiler can link a C++ program... yes
Checking if C++ compiler "g++" is GCC... no
Checking if C++ compiler "g++" is clang... yes
Checking if C compiler "gcc" is clang... no
C compiler does not match identified C++ compiler
See /Users/debashish.g/mongo-code/mongo/build/scons/config.log for details
보여줍니다 :
scons: Configure: Checking if C compiler "gcc" is clang...
build/scons/sconf_temp/conftest_5.c <-
|
|#if defined(__clang__)
|/* we are 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
내 gcc --version
은 다음을 나타냅니다 :
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
어느 것이 clang입니다. 내가 어디에서 잘못하고 있니? 도와주세요. 나는 이것을 오랫동안 붙들고있다.