Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to build mysql-5.7.23-r2 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1389

PostPosted: Sun Oct 21, 2018 3:47 pm    Post subject: Unable to build mysql-5.7.23-r2 [SOLVED] Reply with quote

This morning, I'm trying to build mysql-5.7.23-r2, and on 3 separate boxes, they are failing at the same point:

Code:
[ 84%] Building CXX object sql/CMakeFiles/sql.dir/item_geofunc_buffer.cc.o
cd /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/sql && /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DHAVE_LIBEVENT2 -DHAVE_OPENSSL -DHAVE_REPLICATION -DMYSQL_SERVER -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/include -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/extra/rapidjson/include -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/libbinlogevents/include -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/libbinlogevents/export -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/include -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/conn_handler -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/libbinlogevents/include -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/auth -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/regex -I/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/sql -isystem /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/include/boost_1_59_0/patches -isystem /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/boost/boost_1_59_0   -O2 -pipe -felide-constructors -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -DNDEBUG -DDBUG_OFF -fPIC   -Wno-unused-local-typedefs -Wno-misleading-indentation -o CMakeFiles/sql.dir/item_geofunc_buffer.cc.o -c /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/item_geofunc_buffer.cc
In file included from /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/item_geofunc.cc:26:0:
/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/sql_class.h:2240:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<Transaction_ctx> m_transaction;
        ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/memory:81:0,
                 from /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/spatial.h:29,
                 from /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/item_geofunc.h:24,
                 from /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/item_geofunc.cc:23:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/item_geofunc_buffer.cc:26:0:
/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/sql_class.h:2240:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<Transaction_ctx> m_transaction;
        ^~~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/memory:81:0,
                 from /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/spatial.h:29,
                 from /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/item_geofunc.h:24,
                 from /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql/sql/item_geofunc_buffer.cc:24:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
virtual memory exhausted: Cannot allocate memory
make[2]: *** [sql/CMakeFiles/sql.dir/build.make:974: sql/CMakeFiles/sql.dir/item_geofunc_buffer.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build'
make[1]: *** [CMakeFiles/Makefile2:5733: sql/CMakeFiles/sql.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build'
make: *** [Makefile:152: all] Error 2
 * ERROR: dev-db/mysql-5.7.23-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-db/mysql-5.7.23-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.7.23-r2::gentoo'`.
 * The complete build log is located at '/var/log/builds/dev-db:mysql-5.7.23-r2:20181021-151716.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-db/mysql-5.7.23-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.7.23-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build'
 * S: '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql'

>>> Failed to emerge dev-db/mysql-5.7.23-r2, Log file:

>>>  '/var/log/builds/dev-db:mysql-5.7.23-r2:20181021-151716.log'


I've never had an issue building mysql on these boxes in the past or ever get memory allocation errors in general? Is this a bug?

Here are my make.conf values..


Code:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.rackspace.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"



Here are my USE flags for mysql:

Code:
[ebuild     U  ] dev-db/mysql-5.7.23-r2:0/18::gentoo [5.6.40-r2:0/18::gentoo] USE="latin1 perl server -cjk% (-client-libs) -cracklib -debug -experimental% -jemalloc -libressl -numa -profiling (-selinux) -static -static-libs -systemtap -tcmalloc -test -yassl" ABI_X86="(64) -32 (-x32)" 0 KiB


Memory:

Code:
cat /proc/meminfo
MemTotal:        1015748 kB
MemFree:          475188 kB
MemAvailable:     607932 kB
Buffers:          108848 kB
Cached:           163796 kB
SwapCached:        22068 kB
Active:           317160 kB
Inactive:         115148 kB
Active(anon):     133684 kB
Inactive(anon):    45752 kB
Active(file):     183476 kB
Inactive(file):    69396 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:        999996 kB
SwapFree:         728932 kB
Dirty:              2752 kB
Writeback:             0 kB
AnonPages:        147620 kB
Mapped:            48060 kB
Shmem:             19768 kB
Slab:              77460 kB
SReclaimable:      43504 kB
SUnreclaim:        33956 kB
KernelStack:        2268 kB
PageTables:         8308 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1507868 kB
Committed_AS:     683356 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:     51200 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
DirectMap4k:       12288 kB
DirectMap2M:     1032192 kB


I have a GB of Swap.


Thanks!
hanji
_________________
Server Admin Blog - Uno-Code.com | Gentoo Hosting at Rackspace!


Last edited by hanj on Sun Oct 21, 2018 5:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21328
Location: here

PostPosted: Sun Oct 21, 2018 4:15 pm    Post subject: Reply with quote

Try with MAKEOPTS -j1 or add a temporary swap space file
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1389

PostPosted: Sun Oct 21, 2018 5:28 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Try with MAKEOPTS -j1 or add a temporary swap space file


Thanks.. went with j1 and it built.

Thanks!
hanji
_________________
Server Admin Blog - Uno-Code.com | Gentoo Hosting at Rackspace!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum