Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122509 - MySQL compile fails
Summary: MySQL compile fails
Status: RESOLVED DUPLICATE of bug 20600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-11 16:35 UTC by Konstantin M
Modified: 2006-02-12 00:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin M 2006-02-11 16:35:12 UTC
emerge MySQL 4.1.14 fails on gcc-3.4.5. Reproducible.


Here are the last lines of the compile:
i686-pc-linux-gnu-g++ -O3 -DDBUG_OFF -O3 -march=i686 -funroll-loops -pipe -DHAVE                                    _ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-                                    templates -fno-exceptions -fno-rtti -rdynamic -o gen_lex_hash gen_lex_hash.o  ..                                    /myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.                                    a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystri                                    ngs.a -L/usr/lib -lz -lpthread -lcrypt -lnsl -lm -lpthread
./gen_lex_hash > lex_hash.h
make  all-recursive
make[3]: Entering directory `/var/tmp/portage/mysql-4.1.14/work/mysql/sql'
Making all in share
make[4]: Entering directory `/var/tmp/portage/mysql-4.1.14/work/mysql/sql/share'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/mysql-4.1.14/work/mysql/sql/share'
make[4]: Entering directory `/var/tmp/portage/mysql-4.1.14/work/mysql/sql'
i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="                                    \"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I                                    .. -I/usr/include -I../bdb/build_unix -I../innobase/include -I../include -I../in                                    clude -I../regex -I.     -O3 -DDBUG_OFF -O3 -march=i686 -funroll-loops -pipe -DH                                    AVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti   -fno-impl                                    icit-templates -fno-exceptions -fno-rtti -c -I/usr/include -I../bdb/build_unix -                                    I../innobase/include -I../include -I../include -I../regex -I.  -DTZINFO2SQL mysq                                    l_tzinfo_to_sql.cc
if i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADI                                    R="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.                                     -I.. -I/usr/include -I../bdb/build_unix -I../innobase/include -I../include -I..                                    /include -I../regex -I.     -O3 -DDBUG_OFF -O3 -march=i686 -funroll-loops -pipe                                     -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti   -fno-i                                    mplicit-templates -fno-exceptions -fno-rtti -MT sql_lex.o -MD -MP -MF ".deps/sql                                    _lex.Tpo" -c -o sql_lex.o sql_lex.cc; \
then mv -f ".deps/sql_lex.Tpo" ".deps/sql_lex.Po"; else rm -f ".deps/sql_lex.Tpo                                    "; exit 1; fi
if i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADI                                    R="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.                                     -I.. -I/usr/include -I../bdb/build_unix -I../innobase/include -I../include -I..                                    /include -I../regex -I.     -O3 -DDBUG_OFF -O3 -march=i686 -funroll-loops -pipe                                     -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti   -fno-i                                    mplicit-templates -fno-exceptions -fno-rtti -MT sql_handler.o -MD -MP -MF ".deps                                    /sql_handler.Tpo" -c -o sql_handler.o sql_handler.cc; \
then mv -f ".deps/sql_handler.Tpo" ".deps/sql_handler.Po"; else rm -f ".deps/sql                                    _handler.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADI                                    R="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.                                     -I.. -I/usr/include -I../bdb/build_unix -I../innobase/include -I../include -I..                                    /include -I../regex -I.     -O3 -DDBUG_OFF -O3 -march=i686 -funroll-loops -pipe                                     -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti   -fno-i                                    mplicit-templates -fno-exceptions -fno-rtti -MT item.o -MD -MP -MF ".deps/item.T                                    po" -c -o item.o item.cc; \
then mv -f ".deps/item.Tpo" ".deps/item.Po"; else rm -f ".deps/item.Tpo"; exit 1                                    ; fi
i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[4]: *** [sql_lex.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/mysql-4.1.14/work/mysql/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/mysql-4.1.14/work/mysql/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/mysql-4.1.14/work/mysql/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-4.1.14/work/mysql'
make: *** [all] Error 2

!!! ERROR: dev-db/mysql-4.1.14 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! compile problem
!!! If you need support, post the topmost build error, and the call stack if rel                                    evant.





This is my emerge --info
Portage 2.1_pre4-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-rc5-mm3 i686)
=================================================================
System uname: 2.6.15-rc5-mm3 i686 Pentium II (Deschutes)
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://gentoo.inode.at/source/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 apm berkdb bitmap-fonts crypt cups eds emboss foomaticdb fortran gd gdbm gif gpm gstreamer ipv6 java jpeg libg++ libwww mp3 mysql ncurses nls nocd nptl nptlonly ogg pam pdflib perl png python readline samba sdl spell ssl tcpd truetype-fonts type1-fonts vorbis xml xml2 zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Konstantin M 2006-02-11 17:37:42 UTC
Error also occurs with CFLAGS="-O2 -march=i686 -pipe".
Just before it happens the computer gets very slow (barely able to type anything). After about 1-2 minutes it works normally again.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-02-12 00:11:19 UTC
Most likely out of memory, disk space or another hardware issue.

*** This bug has been marked as a duplicate of 20600 ***