When I attempt to emerge MySQL, I get the following errors (these messages are just a tail, I'll post mroe if needed): source='item_cmpfunc.cc' object='item_cmpfunc.o' libtool=no \ depfile='.deps/item_cmpfunc.Po' tmpdepfile='.deps/item_cmpfunc.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../bdb/build_unix -I./../include -I./../regex -I. -I../include -I. -O3 -DDBUG_OFF -O3 -mcpu=pentium2 -pipe -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -c -o item_cmpfunc.o `test -f item_cmpfunc.cc || echo './'`item_cmpfunc.cc {standard input}: Assembler messages: {standard input}:18883: Warning: end of file not at end of a line; newline insertedg++: Internal error: Terminated (program cc1plus) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. {standard input}:20081: Error: unrecognized symbol type "f" make[4]: *** [item_func.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/portage/mysql-4.0.16/work/mysql-4.0.16/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/mysql-4.0.16/work/mysql-4.0.16/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.16/work/mysql-4.0.16/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mysql-4.0.16/work/mysql-4.0.16' make: *** [all] Error 2 !!! ERROR: dev-db/mysql-4.0.16 failed. !!! Function src_compile, Line 142, Exitcode 2 !!! compile problem
Increase your swap + memory amounts. even with the configure flag for low memory usage, the compile can still take 600mb of combined swap+memory sometimes.