Hello, I'm the maintainer of mongodb in MacPorts. I'm unable to build mongodb 3.0.5. This is the error I see:
Generating placeholder library build/darwin/64/cc__usr_bin_clang/cxx__usr_bin_clang++/osx-version-min_10.10/ssl/use-system-boost/use-system-pcre/use-system-snappy/mongo/libserver_options_core.a Skipping ranlib for build/darwin/64/cc__usr_bin_clang/cxx__usr_bin_clang++/osx-version-min_10.10/ssl/use-system-boost/use-system-pcre/use-system-snappy/mongo/libserver_options_core.a /usr/bin/clang++ -o build/darwin/64/cc__usr_bin_clang/cxx__usr_bin_clang++/osx-version-min_10.10/ssl/use-system-boost/use-system-pcre/use-system-snappy/mongo/shell/bench.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -O3 -m64 -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -mmacosx-version-min=10.10 -D_SCONS -DMONGO_EXPOSE_MACROS -DPCRE_STATIC -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -DMONGO_BYTE_ORDER=1234 -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD -DMONGO_HAVE_GCC_ATOMIC_BUILTINS -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_VERSION=2 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DMONGO_HAVE_FIPS_MODE_SET -I/opt/local/include -Isrc/third_party/s2 -Ibuild/darwin/64/cc__usr_bin_clang/cxx__usr_bin_clang++/osx-version-min_10.10/ssl/use-system-boost/use-system-pcre/use-system-snappy -Isrc src/mongo/shell/bench.cpp src/mongo/shell/bench.cpp:379:17: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto& stats = shouldCollectStats() ? _stats : _statsBlackHole; ^ src/mongo/shell/bench.cpp:914:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto appendPerSec = [&buf, runner](StringData name, double total) { ^ src/mongo/shell/bench.cpp:914:30: error: expected expression auto appendPerSec = [&buf, runner](StringData name, double total) { ^ 2 warnings and 1 error generated. scons: *** [build/darwin/64/cc__usr_bin_clang/cxx__usr_bin_clang++/osx-version-min_10.10/ssl/use-system-boost/use-system-pcre/use-system-snappy/mongo/shell/bench.o] Error 1 scons: building terminated because of errors. Command failed: cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_databases_mongodb/mongodb/work/mongodb-src-r3.0.5-x86_64" && /opt/local/bin/scons all mongobridge mongosniff --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --cpppath=/opt/local/include --disable-warnings-as-errors --libpath=/opt/local/lib --osx-version-min=10.10 --ssl --system-boost-lib-search-suffixes=-mt --use-system-boost --use-system-pcre --use-system-snappy --extralib=pcre,pcrecpp,snappy --64
3.0.4 builds fine on the same system, which has:
$ xcodebuild -version
Xcode 6.4
Build version 6E35b
$ clang -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.5
BuildVersion: 14F6a
I've attached logs of an unsuccessful build of 3.0.5 and a successful build of 3.0.4.
- duplicates
-
SERVER-19755 scons should require c++11 on 3.0
- Closed
- related to
-
SERVER-19755 scons should require c++11 on 3.0
- Closed
-
SERVER-20712 Build failure with --use-cpu-profiler on linux
- Closed