Building mongodb with Poudriere?

Patrick Gibson gibblertron at gmail.com
Wed Oct 1 18:58:13 UTC 2014


I added more swap space, as I suspected that memory was an issue. This time
it got a bit farther. Oddly enough, it builds just fine outside of a
Poudriere jail on the same host with the same OS and architecture.

clang++ -o
build/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo/db/auth/authz_session_external_state_s.o
-c -Wnon-virtual-dtor -Woverloaded-virtual -fno-omit-frame-pointer -fPIC
-fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare
-Wno-unknown-pragmas -Winvalid-pch -O2 -pipe -fno-strict-aliasing
-Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations
-Wno-tautological-constant-out-of-range-compare -DBOOST_ALL_NO_LIB -D_SCONS
-DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D__freebsd__
-D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD
-DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE
-Ibuild/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/libstemmer_c/include
-Isrc/third_party/libstemmer_c/include
-Ibuild/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/s2
-Isrc/third_party/s2
-Ibuild/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/boost
-Isrc/third_party/boost
-Ibuild/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8
-Isrc
-Ibuild/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo
-Isrc/mongo -I/usr/local/include
-Ibuild/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/s2
-Isrc/third_party/s2
-Ibuild/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/yaml-cpp-0.5.1/include
-Isrc/third_party/yaml-cpp-0.5.1/include
src/mongo/db/auth/authz_session_external_state_s.cpp

scons: ***
[build/freebsd/cc_clang/cxx_clang++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo/db/auth/user_cache_invalidator_job.o]
AttributeError : 'File' object has no attribute '_memo'

scons: building terminated because of errors.

AttributeError: 'Dir' object has no attribute '_memo':

  File "/usr/local/lib/scons-2.3.0/SCons/Script/Main.py", line 1344:

    _exec_main(parser, values)

  File "/usr/local/lib/scons-2.3.0/SCons/Script/Main.py", line 1308:

    _main(parser)

  File "/usr/local/lib/scons-2.3.0/SCons/Script/Main.py", line 1072:

    nodes = _build_targets(fs, options, targets, target_top)

  File "/usr/local/lib/scons-2.3.0/SCons/Script/Main.py", line 1266:

    jobs.run(postfunc = jobs_postfunc)

  File "/usr/local/lib/scons-2.3.0/SCons/Job.py", line 113:

    postfunc()

  File "/usr/local/lib/scons-2.3.0/SCons/Script/Main.py", line 1263:

    SCons.SConsign.write()

  File "/usr/local/lib/scons-2.3.0/SCons/SConsign.py", line 102:

    sig_file.write(sync=0)

  File "/usr/local/lib/scons-2.3.0/SCons/SConsign.py", line 249:

    entry.convert_to_sconsign()

  File "/usr/local/lib/scons-2.3.0/SCons/SConsign.py", line 131:

    self.binfo.convert_to_sconsign()

  File "/usr/local/lib/scons-2.3.0/SCons/Node/FS.py", line 2303:

    setattr(self, attr, list(map(node_to_str, val)))

  File "/usr/local/lib/scons-2.3.0/SCons/Node/FS.py", line 642:

    return self._save_str()

  File "/usr/local/lib/scons-2.3.0/SCons/Node/FS.py", line 652:

    result = sys.intern(self._get_str())

  File "/usr/local/lib/scons-2.3.0/SCons/Node/FS.py", line 660:

    srcnode = self.srcnode()

  File "/usr/local/lib/scons-2.3.0/SCons/Node/FS.py", line 740:

    srcdir_list = self.dir.srcdir_list()

  File "/usr/local/lib/scons-2.3.0/SCons/Node/FS.py", line 1860:

    return self._memo['srcdir_list']

*** Error code 2


Stop.

make: stopped in /usr/ports/databases/mongodb

===>  Cleaning for mongodb-2.6.4

build of /usr/ports/databases/mongodb ended at Wed Oct  1 11:53:18 PDT 2014

build time: 01:08:30

On Tue, Sep 30, 2014 at 12:37 PM, Patrick Gibson <gibblertron at gmail.com>
wrote:

> I'm having a tough time trying to build the latest databases/mongodb
> (2.6.4) using Poudriere. The host and target is FreeBSD 10 amd64. Here's
> the resulting log where it fails. Has anyone else experienced this?
>
> c++ -o
> build/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo/scripting/engine.o
> -c -Wnon-virtual-dtor -Woverloaded-virtual -fno-omit-frame-pointer -fPIC
> -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare
> -Wno-unknown-pragmas -Winvalid-pch -O2 -pipe -fno-strict-aliasing
> -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations
> -Wno-tautological-constant-out-of-range-compare -DBOOST_ALL_NO_LIB -D_SCONS
> -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D__freebsd__
> -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD
> -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/libstemmer_c/include
> -Isrc/third_party/libstemmer_c/include
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/s2
> -Isrc/third_party/s2
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/boost
> -Isrc/third_party/boost
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8
> -Isrc
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo
> -Isrc/mongo -I/usr/local/include
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/s2
> -Isrc/third_party/s2
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/yaml-cpp-0.5.1/include
> -Isrc/third_party/yaml-cpp-0.5.1/include src/mongo/scripting/engine.cpp
> c++ -o
> build/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo/scripting/utils.o
> -c -Wnon-virtual-dtor -Woverloaded-virtual -fno-omit-frame-pointer -fPIC
> -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare
> -Wno-unknown-pragmas -Winvalid-pch -O2 -pipe -fno-strict-aliasing
> -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations
> -Wno-tautological-constant-out-of-range-compare -DBOOST_ALL_NO_LIB -D_SCONS
> -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D__freebsd__
> -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD
> -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/libstemmer_c/include
> -Isrc/third_party/libstemmer_c/include
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/s2
> -Isrc/third_party/s2
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/boost
> -Isrc/third_party/boost
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8
> -Isrc
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo
> -Isrc/mongo -I/usr/local/include
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/s2
> -Isrc/third_party/s2
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/yaml-cpp-0.5.1/include
> -Isrc/third_party/yaml-cpp-0.5.1/include src/mongo/scripting/utils.cpp
> c++ -o
> build/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo/scripting/bench.o
> -c -Wnon-virtual-dtor -Woverloaded-virtual -fno-omit-frame-pointer -fPIC
> -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare
> -Wno-unknown-pragmas -Winvalid-pch -O2 -pipe -fno-strict-aliasing
> -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations
> -Wno-tautological-constant-out-of-range-compare -DBOOST_ALL_NO_LIB -D_SCONS
> -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D__freebsd__
> -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD
> -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/libstemmer_c/include
> -Isrc/third_party/libstemmer_c/include
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/s2
> -Isrc/third_party/s2
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/boost
> -Isrc/third_party/boost
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8
> -Isrc
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo
> -Isrc/mongo -I/usr/local/include
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/s2
> -Isrc/third_party/s2
> -Ibuild/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/third_party/yaml-cpp-0.5.1/include
> -Isrc/third_party/yaml-cpp-0.5.1/include src/mongo/scripting/bench.cpp
> c++: error: unable to execute command: Killed
> c++: error: clang frontend command failed due to signal (use -v to see
> invocation)
> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
> Target: x86_64-unknown-freebsd10.0
> Thread model: posix
> c++: note: diagnostic msg: PLEASE submit a bug report to
> http://llvm.org/bugs/ and include the crash backtrace, preprocessed
> source, and associated run script.
> c++: note: diagnostic msg:
> ********************
>


More information about the freebsd-ports mailing list