Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32090 - dev-db/mysql-4.0.14-r2 fails to compile
Summary: dev-db/mysql-4.0.14-r2 fails to compile
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-27 02:18 UTC by Aniruddha Shankar
Modified: 2003-11-08 23:22 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 Aniruddha Shankar 2003-10-27 02:18:10 UTC
/../include -I./../regex -I. -I../include -I.     -O3 -DDBUG_OFF -O2 -mcpu=i686
-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
source='item_sum.cc' object='item_sum.o' libtool=no \
depfile='.deps/item_sum.Po' tmpdepfile='.deps/item_sum.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 -O2 -mcpu=i686 -pipe -felide-constructors -fno-exceptions
-fno-rtti  -fno-implicit-templates -fno-exceptions -fno-rtti -c -o item_sum.o
`test -f item_sum.cc || echo './'`item_sum.cc
/bin/sh ../libtool --mode=link g++  -O3 -DDBUG_OFF -O2 -mcpu=i686 -pipe
-felide-constructors -fno-exceptions -fno-rtti  -fno-implicit-templates
-fno-exceptions -fno-rtti  -rdynamic  -o gen_lex_hash  gen_lex_hash.o
../isam/libnisam.a ../merge/libmerge.a ../myisam/libmyisam.a
../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a
../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a
../strings/libmystrings.a  -lpthread -lz -lcrypt -lnsl -lm  -lpthread 
mkdir .libs
g++ -O3 -DDBUG_OFF -O2 -mcpu=i686 -pipe -felide-constructors -fno-exceptions
-fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o
gen_lex_hash gen_lex_hash.o  ../isam/libnisam.a ../merge/libmerge.a
../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a
../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread
make[5]: Leaving directory `/var/tmp/portage/mysql-4.0.14-r2/work/mysql-4.0.14/sql'
./gen_lex_hash > lex_hash.h
Symbols: 345  Functions: 141;  Total: 486
Shifts per char: 1,  Array size: 4943
source='item_buff.cc' object='item_buff.o' libtool=no \
depfile='.deps/item_buff.Po' tmpdepfile='.deps/item_buff.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 -O2 -mcpu=i686 -pipe -felide-constructors -fno-exceptions
-fno-rtti  -fno-implicit-templates -fno-exceptions -fno-rtti -c -o item_buff.o
`test -f item_buff.cc || echo './'`item_buff.cc
source='item_func.cc' object='item_func.o' libtool=no \
depfile='.deps/item_func.Po' tmpdepfile='.deps/item_func.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 -O2 -mcpu=i686 -pipe -felide-constructors -fno-exceptions
-fno-rtti  -fno-implicit-templates -fno-exceptions -fno-rtti -c -o item_func.o
`test -f item_func.cc || echo './'`item_func.cc
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 -O2 -mcpu=i686 -pipe -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
source='item_strfunc.cc' object='item_strfunc.o' libtool=no \
depfile='.deps/item_strfunc.Po' tmpdepfile='.deps/item_strfunc.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 -O2 -mcpu=i686 -pipe -felide-constructors -fno-exceptions
-fno-rtti  -fno-implicit-templates -fno-exceptions -fno-rtti -c -o
item_strfunc.o `test -f item_strfunc.cc || echo './'`item_strfunc.cc
source='item_timefunc.cc' object='item_timefunc.o' libtool=no \
depfile='.deps/item_timefunc.Po' tmpdepfile='.deps/item_timefunc.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 -O2 -mcpu=i686 -pipe -felide-constructors -fno-exceptions
-fno-rtti  -fno-implicit-templates -fno-exceptions -fno-rtti -c -o
item_timefunc.o `test -f item_timefunc.cc || echo './'`item_timefunc.cc
{standard input}: Assembler messages:
{standard input}:11577: Warning: end of file not at end of a line; newline inserted
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[4]: *** [item_func.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/mysql-4.0.14-r2/work/mysql-4.0.14/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/mysql-4.0.14-r2/work/mysql-4.0.14/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.14-r2/work/mysql-4.0.14/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-4.0.14-r2/work/mysql-4.0.14'
make: *** [all] Error 2

!!! ERROR: dev-db/mysql-4.0.14-r2 failed.
!!! Function src_compile, Line 139, Exitcode 2
!!! compile problem

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



mail root # emerge info 
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.19-gentoo-r9)
=================================================================
System uname: 2.4.19-gentoo-r9 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.3.10p1
distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox ccache userpriv usersandbox"
GENTOO_MIRRORS="ftp://192.168.1.117/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://localhost/gentoo-portage"
USE="x86 crypt gif jpeg mpeg ncurses nls png spell xml2 zlib gdbm berkdb slang
readline mysql tcpd pam libwww ssl perl python ldap apache2 emacs imap xml -oss
-apm -arts -avi -cups -encode -foomaticdb -gpm -gtk -imlib -kde -gnome -libg++
-mad -mikmod -motif -oggvorbis -opengl -pdflib -qt -quicktime -sdl -svga
-truetype -X -xmms -xv"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-27 08:46:34 UTC
are you certain your hardware is good? (eg the RAM checks out with memtest
etc.)
mysql shows up problems with it quite often.
Comment 2 Aniruddha Shankar 2003-10-28 22:37:41 UTC
I think it's an out-of-memory bug: I stripped the CFLAGS and CXXFLAGS from
make.conf and make.globals and tried compiling again. The compile process
froze at a certain point and I was unable to open any new ssh sessions to
the machine. The compile told me that the process was killed and I found
this in the dmesg: 

Out of Memory: Killed process 27649 (cc1plus).

I googled around and found some information about a --low-memory switch for
the compile that would let the compile happen even on machines with 128 mb
of RAM. 

And more fundamentally, shouldn't this problem be solvable by increasing
the amount of virtual memory / swap space ? 
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-28 22:49:39 UTC
yeah, adding more swap should resolve it.
run it again, and locally on the box keep track of the memory usage to see
just how high it goes.
none of my machines have less than 1Gb of RAM, so I really can't test this
out easily (I'm not willing to forgo my ram).
Comment 4 Aniruddha Shankar 2003-11-08 22:56:39 UTC
completed compile with 270 mb of swap. 
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-08 23:22:03 UTC
hmm, that's even with --with-low-memory in the configure options, so that
is discouraging, anyway, it's resolved now.

I'll add a warning to the ebuild for people without much memory.