../sql/item_func.h: In constructor `Item_func_locate::Item_func_locate(Item*, Item*)': ../sql/item_func.h:569: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[3]: *** [ha_berkeley.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/mysql-4.0.16/work/mysql-4.0.16/libmysqld' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.16/work/mysql-4.0.16/libmysqld' 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 Reproducible: Always Steps to Reproduce: 1. 2. 3.
please provide #emerge info
yep, here it does not compile to, the same steps to reproduce and that's the result: 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 -march=athlon -funroll-loops -pipe -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -c -o item.o `test -f item.cc || echo './'`item.cc g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[4]: *** [sql_handler.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 kopoczynski root # emerge info Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.23-gss) ================================================================= System uname: 2.4.23-gss i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=athlon -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acpi apache2 apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gnome gpm imap imlib jpeg kde libg++ libwww mad maildir mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell svga tcpd truetype x86 xml2 xmms xv zlib"
hmm, ok, i think i found a case for me, it's -j2 option. But there's another question, i have MAKEOPTS commented out, and emerge still uses -j2, i had to uncomment MAKEOPTS and make it ="" to remove that, is that normal behavior ?
both of you, reduce your cflags specifically go down to -O2 and remove any extra stuff such as -funroll-loops. When compiling MySQL, GCC eats a _lot_ of memory and can crash with weird stuff like this. It compiles fine for me at 1.5gb of RAM, but i've seen complaints where it's eating 600mb of RAM. The package will not be modified to force lower CFLAGS on users, as the performance boost if you have the ram is very much worthwhile.
dammit, wrong button.
closing