Summary: | mysql-4.0.16 fails to compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jacques <jacques.hullu> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jacques
2004-01-16 04:10:02 UTC
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 |