Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38392 - mysql-4.0.16 fails to compile
Summary: mysql-4.0.16 fails to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 04:10 UTC by Jacques
Modified: 2004-02-01 00:17 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 Jacques 2004-01-16 04:10:02 UTC
../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.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-01-16 07:53:31 UTC
please provide #emerge info
Comment 2 Maciek 2004-01-31 10:27:04 UTC
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"
Comment 3 Maciek 2004-01-31 10:55:16 UTC
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 ?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-01 00:17:15 UTC
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.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-01 00:17:30 UTC
dammit, wrong button.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-01 00:17:43 UTC
closing