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

"scons all" build fails when mongdb is a git submodule

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.1
    • Affects Version/s: 2.4.3
    • Component/s: Build
    • Environment:
      Linux ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
    • Fully Compatible
    • ALL
    • Hide

      In a pre-existing git repo, add the official repository as a submodule:

      git submodule add git://github.com/mongodb/mongo.git apps/mongo
      cd apps/mongo
      scons all

      Show
      In a pre-existing git repo, add the official repository as a submodule: git submodule add git://github.com/mongodb/mongo.git apps/mongo cd apps/mongo scons all

      g++ -o build/linux2/normal/mongo/pch.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -pipe -fno-builtin-memcmp -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/linux2/normal/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/linux2/normal/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/normal/third_party/boost -Isrc/third_party/boost -Ibuild/linux2/normal/third_party/pcre-8.30 -Isrc/third_party/pcre-8.30 -Ibuild/linux2/normal -Isrc -Ibuild/linux2/normal/mongo -Isrc/mongo -Ibuild/linux2/normal/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/normal/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/normal/third_party/v8/include -Isrc/third_party/v8/include src/mongo/pch.cpp
      generate_buildinfo(["build/buildinfo.cpp"], ['\n#include <string>\n#include <boost/version.hpp>\n\n#include "mongo/util/version.h"\n\nnamespace mongo {\n const char * gitVersion()

      { return "%(git_version)s"; }

      \n const char * compiledJSEngine()

      { return "%(js_engine)s"; }

      \n const char * allocator()

      { return "%(allocator)s"; }

      \n const char * loaderFlags()

      { return "%(loader_flags)s"; }

      \n const char * compilerFlags()

      { return "%(compiler_flags)s"; }

      \n std::string sysInfo()

      { return "%(sys_info)s BOOST_LIB_VERSION=" BOOST_LIB_VERSION ; }

      \n} // namespace mongo\n'])
      scons: *** [build/buildinfo.cpp] .git/HEAD: Not a directory
      scons: building terminated because of errors.

        1. mongo-git-fixes.diff
          2 kB
          Andrew Stormont

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            ssperandeo Steve Sperandeo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: