$ scons all
scons: Reading SConscript files ...
Mkdir("build/scons")
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 if C++ compiler "g++" is GCC... no
Checking if C++ compiler "g++" is clang... yes
Checking if C compiler "gcc" is clang... yes
Detected a x86_64 processor
Checking if target OS osx is supported by the toolchain yes
Checking if C compiler is clang 3.4 (or Apple XCode 5.1.1) or newer...yes
Checking if C++ compiler is clang 3.4 (or Apple XCode 5.1.1) or newer...yes
Checking if C compiler supports -Wno-unused-local-typedefs... yes
Checking if C compiler supports -Wno-unused-function... yes
Checking if C compiler supports -Wno-unused-private-field... yes
Checking if C compiler supports -Wno-deprecated-declarations... yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... yes
Checking if C compiler supports -Wno-unused-const-variable... yes
Checking if C compiler supports -Wno-unused-but-set-variable... no
Checking if C compiler supports -Wno-missing-braces... yes
Checking if C compiler supports -Wno-inconsistent-missing-override... yes
Checking if C compiler supports -Wno-potentially-evaluated-expression... yes
Checking if C++ compiler supports -Wpessimizing-move... yes
Checking if C++ compiler supports -Wredundant-move... yes
Checking if C++ compiler supports -Wno-maybe-uninitialized... no
Checking if implicit boost::shared_ptr null conversion is supported... yes
Checking if we are using libstdc++... no
Checking if C++ compiler supports -std=c++11... yes
Checking if C compiler supports -std=c99... yes
Checking for C++11... yes
Checking for memset_s... yes
Checking for C function strnlen()... yes
Checking if we are on a POSIX system... yes
Checking if the POSIX monotonic clock is supported... no
Checking off_t is 8 bytes... yes
Checking if linker supports -fuse-ld=gold... no
Checking if linker supports -Wl,-z,noexecstack... no
Checking if linker supports -Wl,--warn-execstack... no
Checking if C compiler supports -fno-builtin-memcmp... yes
Checking for storage class thread_local yes
Checking for storage class __thread yes
Checking for storage class __declspec(thread) no
Checking for C++11 is_trivially_copyable support... yes
Checking for C++14 std::make_unique support... no
Checking for C++11 std::align support... no
Checking for C library rt... no
Checking for C library dl... yes
Checking for C library pthread... yes
Checking for C++ header file execinfo.h... yes
Checking whether backtrace is declared... yes
Checking whether backtrace_symbols is declared... yes
Checking whether backtrace_symbols_fd is declared... yes
Checking for C library pcap... yes
Checking if std::atomic<int64_t> works... yes
Checking if std::atomic<uint64_t> works... yes
Checking if std::atomic<int32_t> works... yes
Checking if std::atomic<uint32_t> works... yes
Checking for C function fallocate()... no
Checking for C function sync_file_range()... no
Checking for C header file x86intrin.h... yes
scons: done reading SConscript files.
scons: Building targets ...
Compiling build/opt/mongo/db/storage/kv_heap/kv_heap_sorted_data_impl_test_harness.o
Compiling build/opt/mongo/db/storage/kv/dictionary/kv_dictionary.o
Compiling build/opt/mongo/db/storage/kv/dictionary/kv_dictionary_update.o
Generating placeholder library build/opt/mongo/db/storage/kv/dictionary/libkv_dictionary.a
Skipping ranlib for build/opt/mongo/db/storage/kv/dictionary/libkv_dictionary.a
Compiling build/opt/mongo/db/storage/kv/dictionary/kv_engine_impl.o
In file included from src/mongo/db/storage/kv/dictionary/kv_engine_impl.cpp:29:
src/mongo/db/storage/kv/dictionary/kv_record_store.h:37:5: error: class 'CollectionOptions' was previously declared as a struct
[-Werror,-Wmismatched-tags]
class CollectionOptions;
^
src/mongo/db/catalog/collection_options.h:38:8: note: previous use is here
struct CollectionOptions {
^
src/mongo/db/storage/kv/dictionary/kv_record_store.h:37:5: note: did you mean struct here?
class CollectionOptions;
^~~~~
struct
1 error generated.
scons: *** [build/opt/mongo/db/storage/kv/dictionary/kv_engine_impl.o] Error 1
scons: building terminated because of errors.
env = env.Clone()
env.Append(CCFLAGS=['-Wno-mismatched-tags'])