Building mongodb with Poudriere?

Daniel Morante daniel at morante.net
Wed Oct 21 17:01:32 UTC 2015


I apologize for replying to an old thread, but it seems that this is 
still an issue with Poudriere.
I have 6 GB of RAM on FreeBSD 10.1 64-bit and it still fails.

However, I do not believe that this is a problem with resources. The 
swap and RAM usage barely go above 1GB during the build.

build/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo/util/options_parser/option_section.o: 
In function `std::__1::pow(long double, long double)':
/usr/include/c++/v1/cmath:950: warning: powl has lower than advertised 
precision
c++: error: unable to execute command: Killed
c++: error: linker command failed due to signal (use -v to see invocation)
scons: *** 
[build/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-system-v8/mongo/mongosniff] 
Error 254
scons: building terminated because of errors.
*** Error code 2

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

On 10/1/2014 2:58 PM, Patrick Gibson wrote:
> 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:
>> ********************
>>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4239 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20151021/c5e0ae4a/attachment.bin>


More information about the freebsd-ports mailing list