Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10644

MongoDB not able to build from source on OS X Mavericks due to missing Boost header file

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.6
    • Component/s: Build
    • Labels:
    • Environment:
      $ uname -a
      Darwin GT-MBP-Thb.local 13.0.0 Darwin Kernel Version 13.0.0: Sat Aug 17 20:57:00 PDT 2013; root:xnu-2422.1.63.0.1~2/RELEASE_X86_64 x86_64
    • OS X
    • Hide

      Just run scons all

      Show
      Just run scons all

      During build, compilations fails due to the inability to find the <tr1/unordered_map> header file:

      scons: Reading SConscript files ...
      scons version: 2.3.0
      python version: 2 7 5 'final' 0
      Checking whether the C++ compiler works(cached) yes
      Checking for C header file unistd.h... (cached) yes
      Checking whether clock_gettime is declared... (cached) no
      Checking for C++ header file execinfo.h... (cached) yes
      Checking whether backtrace is declared... (cached) yes
      Checking whether backtrace_symbols is declared... (cached) yes
      Checking whether backtrace_symbols_fd is declared... (cached) yes
      Checking for C library pcap... (cached) yes
      Checking if __malloc_hook is declared volatile... (cached) no
      scons: done reading SConscript files.
      scons: Building targets ...
      g++ -o build/darwin/normal/mongo/shell/dbshell.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -Ibuild/darwin/normal/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/darwin/normal/third_party/s2 -Isrc/third_party/s2 -Ibuild/darwin/normal/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/normal/third_party/pcre-8.30 -Isrc/third_party/pcre-8.30 -Ibuild/darwin/normal -Isrc -Ibuild/darwin/normal/mongo -Isrc/mongo -I/opt/local/include src/mongo/shell/dbshell.cpp
      In file included from src/mongo/shell/dbshell.cpp:26:
      In file included from src/mongo/base/initializer.h:21:
      In file included from src/mongo/base/configuration_variable_manager.h:24:
      src/mongo/platform/unordered_map.h:47:10: fatal error: 'tr1/unordered_map' file not found
      #include <tr1/unordered_map>
               ^
      1 error generated.
      scons: *** [build/darwin/normal/mongo/shell/dbshell.o] Error 1
      scons: building terminated because of errors.
      

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            gthiruva George Thiruvathukal
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: