[ https://issues.apache.org/jira/browse/MESOS-3216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14976677#comment-14976677 ]
James Peach commented on MESOS-3216: ------------------------------------ gcc ran out of memory. You need to either build with fewer parallel tasks (make -j1) or get more memory. > virtual memory exhausted:: Cannot allocate memory > ------------------------------------------------- > > Key: MESOS-3216 > URL: https://issues.apache.org/jira/browse/MESOS-3216 > Project: Mesos > Issue Type: Bug > Components: build > Affects Versions: 0.23.0 > Environment: Linux Kudu 3.19.0-25-generic #26-Ubuntu SMP Fri Jul 24 > 21:17:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > (Ubuntu 15.04) > Reporter: Samuel Marks > > After receiving this error when building on a virtual instance, I decided to > build a package using https://github.com/deric/mesos-deb-packaging. > Here is the last little bit of the output after running {{./build_mesos --ref > 0.23.0 --build-version p1}}: > {code} > mv -f common/.deps/libmesos_no_3rdparty_la-http.Tpo > common/.deps/libmesos_no_3rdparty_la-http.Plo > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"mesos\" > -DPACKAGE_TARNAME=\"mesos\" -DPACKAGE_VERSION=\"0.23.0\" > -DPACKAGE_STRING=\"mesos\ 0.23.0\" -DPACKAGE_BUGREPORT=\"\" > -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.23.0\" -DSTDC_HEADERS=1 > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 > -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 > -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" > -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 > -DHAVE_APR_POOLS_H=1 -DHAVE_LIBAPR_1=1 -DHAVE_SVN_VERSION_H=1 > -DHAVE_LIBSVN_SUBR_1=1 -DHAVE_SVN_DELTA_H=1 -DHAVE_LIBSVN_DELTA_1=1 > -DHAVE_LIBSASL2=1 -DMESOS_HAS_JAVA=1 -DHAVE_PYTHON=\"2.7\" > -DMESOS_HAS_PYTHON=1 -I. > -I/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/src -Wall > -Werror -DLIBDIR=\"/usr/lib\" -DPKGLIBEXECDIR=\"/usr/libexec/mesos\" > -DPKGDATADIR=\"/usr/share/mesos\" > -I/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/include > -I/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/3rdparty/libprocess/include > > -I/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/3rdparty/libprocess/3rdparty/stout/include > -I../include -I../include/mesos > -I../3rdparty/libprocess/3rdparty/boost-1.53.0 > -I../3rdparty/libprocess/3rdparty/picojson-4f93734 > -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src > -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src > -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src > -I../3rdparty/leveldb/include -I../3rdparty/zookeeper-3.4.5/src/c/include > -I../3rdparty/zookeeper-3.4.5/src/c/generated > -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src > -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0 > -pthread -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -std=c++11 > -MT master/allocator/libmesos_no_3rdparty_la-allocator.lo -MD -MP -MF > master/allocator/.deps/libmesos_no_3rdparty_la-allocator.Tpo -c -o > master/allocator/libmesos_no_3rdparty_la-allocator.lo `test -f > 'master/allocator/allocator.cpp' || echo > '/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/src/'`master/allocator/allocator.cpp > libtool: compile: g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" > -DPACKAGE_VERSION=\"0.23.0\" "-DPACKAGE_STRING=\"mesos 0.23.0\"" > -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" > -DVERSION=\"0.23.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 > -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 > -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD_PRIO_INHERIT=1 > -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 -DHAVE_APR_POOLS_H=1 > -DHAVE_LIBAPR_1=1 -DHAVE_SVN_VERSION_H=1 -DHAVE_LIBSVN_SUBR_1=1 > -DHAVE_SVN_DELTA_H=1 -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBSASL2=1 > -DMESOS_HAS_JAVA=1 -DHAVE_PYTHON=\"2.7\" -DMESOS_HAS_PYTHON=1 -I. > -I/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/src -Wall > -Werror -DLIBDIR=\"/usr/lib\" -DPKGLIBEXECDIR=\"/usr/libexec/mesos\" > -DPKGDATADIR=\"/usr/share/mesos\" > -I/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/include > -I/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/3rdparty/libprocess/include > > -I/linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/3rdparty/libprocess/3rdparty/stout/include > -I../include -I../include/mesos > -I../3rdparty/libprocess/3rdparty/boost-1.53.0 > -I../3rdparty/libprocess/3rdparty/picojson-4f93734 > -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src > -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src > -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src > -I../3rdparty/leveldb/include -I../3rdparty/zookeeper-3.4.5/src/c/include > -I../3rdparty/zookeeper-3.4.5/src/c/generated > -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src > -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0 > -pthread -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -std=c++11 > -MT master/allocator/libmesos_no_3rdparty_la-allocator.lo -MD -MP -MF > master/allocator/.deps/libmesos_no_3rdparty_la-allocator.Tpo -c > /linked_replaced_actual_path/mesos-deb-packaging/mesos-repo/src/master/allocator/allocator.cpp > -fPIC -DPIC -o master/allocator/.libs/libmesos_no_3rdparty_la-allocator.o > virtual memory exhaustedvirtual memory exhausted:: Cannot allocate memory > virtual memory exhausted: Cannot allocate memory > Cannot allocate memory > virtual memory exhausted: Cannot allocate memory > Makefile:4159: recipe for target 'docker/libmesos_no_3rdparty_la-docker.lo' > failed > make[2]: *** [docker/libmesos_no_3rdparty_la-docker.lo] Error 1 > make[2]: *** Waiting for unfinished jobs.... > Makefile:4257: recipe for target > 'master/libmesos_no_3rdparty_la-registrar.lo' failed > make[2]: *** [master/libmesos_no_3rdparty_la-registrar.lo] Error 1 > Makefile:4278: recipe for target > 'master/allocator/libmesos_no_3rdparty_la-allocator.lo' failed > make[2]: *** [master/allocator/libmesos_no_3rdparty_la-allocator.lo] Error 1 > Makefile:4222: recipe for target 'master/libmesos_no_3rdparty_la-detector.lo' > failed > make[2]: *** [master/libmesos_no_3rdparty_la-detector.lo] Error 1 > mv -f authorizer/.deps/libmesos_no_3rdparty_la-authorizer.Tpo > authorizer/.deps/libmesos_no_3rdparty_la-authorizer.Plo > mv -f authentication/cram_md5/.deps/libmesos_no_3rdparty_la-authenticatee.Tpo > authentication/cram_md5/.deps/libmesos_no_3rdparty_la-authenticatee.Plo > mv -f authentication/cram_md5/.deps/libmesos_no_3rdparty_la-authenticator.Tpo > authentication/cram_md5/.deps/libmesos_no_3rdparty_la-authenticator.Plo > mv -f exec/.deps/libmesos_no_3rdparty_la-exec.Tpo > exec/.deps/libmesos_no_3rdparty_la-exec.Plo > mv -f master/.deps/libmesos_no_3rdparty_la-repairer.Tpo > master/.deps/libmesos_no_3rdparty_la-repairer.Plo > mv -f master/.deps/libmesos_no_3rdparty_la-contender.Tpo > master/.deps/libmesos_no_3rdparty_la-contender.Plo > mv -f master/.deps/libmesos_no_3rdparty_la-flags.Tpo > master/.deps/libmesos_no_3rdparty_la-flags.Plo > mv -f master/.deps/libmesos_no_3rdparty_la-metrics.Tpo > master/.deps/libmesos_no_3rdparty_la-metrics.Plo > mv -f master/.deps/libmesos_no_3rdparty_la-validation.Tpo > master/.deps/libmesos_no_3rdparty_la-validation.Plo > mv -f local/.deps/libmesos_no_3rdparty_la-local.Tpo > local/.deps/libmesos_no_3rdparty_la-local.Plo > mv -f master/.deps/libmesos_no_3rdparty_la-http.Tpo > master/.deps/libmesos_no_3rdparty_la-http.Plo > mv -f master/.deps/libmesos_no_3rdparty_la-master.Tpo > master/.deps/libmesos_no_3rdparty_la-master.Plo > make[2]: Leaving directory > '/replaced_actual_path/mesos-deb-packaging/mesos-repo/build/src' > Makefile:2109: recipe for target 'all' failed > make[1]: *** [all] Error 2 > make[1]: Leaving directory > '/replaced_actual_path/mesos-deb-packaging/mesos-repo/build/src' > Makefile:667: recipe for target 'all-recursive' failed > make: *** [all-recursive] Error 1 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)