Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307467 - dev-db/mysql-5.0.84-r1 - item_sum.cc:2899: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:2409
Summary: dev-db/mysql-5.0.84-r1 - item_sum.cc:2899: internal compiler error: in get_ex...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 10:57 UTC by daws
Modified: 2010-03-16 11:14 UTC (History)
1 user (show)

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


Attachments
complete build.log (build.log,650.23 KB, text/plain)
2010-03-02 11:01 UTC, daws
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daws 2010-03-02 10:57:30 UTC
When I try to emerge dev-db/mysql (5.0.84-r1) I've got 
 ERROR: dev-db/mysql-5.0.84-r1 failed:
   emake failed
.
It's used with USE="-berkdb" flag, because +berkdb cause problems that are already know in an other bug report.



Reproducible: Always

Steps to Reproduce:
1. emerge -av dev-db/mysql
Actual Results:  
make[4]: *** [item_sum.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/item.Tpo .deps/item.Po
make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql'
make: *** [all] Error 2
 ERROR: dev-db/mysql-5.0.84-r1 failed:
   emake failed
 
 Call stack:
     ebuild.sh, line   54:  Called src_compile
   environment, line 4245:  Called mysql_src_compile
   environment, line 3726:  Called die
The specific snippet of code:
       emake || die "emake failed";


Portage 2.1.7.17 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10-DMP i486)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r10-DMP-i486-Cx486SLC-with-gentoo-1.12.13
Timestamp of tree: Mon, 01 Mar 2010 20:30:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=i486 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i486 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="(-selinux) acl apache2 bzip2 cli community cracklib crypt ctype cups cxx dri fortran gdbm gpm iconv ipv6 modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 daws 2010-03-02 11:01:52 UTC
Created attachment 221777 [details]
complete build.log
Comment 2 Rafał Mużyło 2010-03-02 13:35:07 UTC
Actually, the error is:
item_sum.cc:2899: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:2409

Chances are that you're running out of memory (or simply
that code path hasn't been tested in gcc for your processor
and you've found a genuine compiler bug).
Comment 3 daws 2010-03-02 15:26:58 UTC
(In reply to comment #2)
> Actually, the error is:
> item_sum.cc:2899: internal compiler error: in get_expr_operands, at
> tree-ssa-operands.c:2409
> Chances are that you're running out of memory (or simply
> that code path hasn't been tested in gcc for your processor
> and you've found a genuine compiler bug).

thks, I'll try with a larger swap.
I've actually 128mo ddr & 64mo swap (this is a thin client). (ebox-2300sx with vortex x86 cpu).

I'll post if it succeed with more swap.

Comment 4 daws 2010-03-02 22:19:17 UTC
After I add a larger swap (16go), i've actually the same error.

datas :
free inodes : >400.000
free space : >1.4go
free swap : 16go
latest version of portage (emerge --sync ; emerge portage)

cpu : vortex x86 @400mhz
ram : 128mo
hdd : CompactFlash 4go

do you have another idea ?

thks ! ;)
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-12 19:38:27 UTC
1. please retest on 5.0.90-r2.
2. the swap itself might not help if GCC needs a very large active segment as it does for some parts of MySQL. If you're not planning on the mysqld server on this box, add USE=minimal for it, that will cut down the memory requirements to compile.
Comment 6 daws 2010-03-16 10:24:41 UTC
(In reply to comment #5)

1. "please retest on 5.0.90-r2."
==> same error

2. "If you're not planning on the mysqld server on this box, add USE=minimal for it"
==> it works successfuly with USE="minimal" but my goal is to use it as a server.

I've the same error for emerging php. so this is not an error from mysql but from memory.

Is there a hardware/software solution for "GCC needs a very large active segment", or is it the end ? :)

thanks for your time !
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-16 11:14:21 UTC
If you can't add more RAM, compile it on another machine, in a chroot, and bring in the binpkg. That's all I can suggest.

Sorry :-(

128MB is really tough for large C/C++ usage.