Compilation of mysql fails due to gcc internal compiler error (segfault). The pre-processed file can be compiled successfully if the -O flag is omitted entirely. Reproducible: Always Steps to Reproduce: 1. emerge =mysql-4.0.22-r2 Actual Results: # emerge -pv mysql These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] dev-db/mysql-4.0.22-r2 [4.0.22] +berkdb -debug -innodb +perl +readline (-selinux) +ssl -static +tcpd 0 kB # emerge mysql [snip] if i686-pc-linux-gnu-g++ -DEMBEDDED_LIBRARY -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME= "\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -I. -I. -I.. -I../bdb/build_unix -I./../include -I../include -I./.. -I.. -I.. -I../s ql -I../regex -O3 -DDBUG_OFF -O2 -march=pentium4 -pipe -fomit-frame-pointer - felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exc eptions -fno-rtti -MT item_func.o -MD -MP -MF ".deps/item_func.Tpo" \ -c -o item_func.o `test -f 'item_func.cc' || echo './'`item_func.cc; \ then mv -f ".deps/item_func.Tpo" ".deps/item_func.Po"; \ else rm -f ".deps/item_func.Tpo"; exit 1; \ fi item_func.cc: In member function `virtual String* Item_func_min_max::val_str(String*)': item_func.cc:845: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccREeBY2.out file, please attach this to yo ur bugreport. make[3]: *** [item_func.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/mysql-4.0.22-r2/work/mysql-4.0.22/l ibmysqld' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.22-r2/work/mysql-4.0.22/l ibmysqld' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mysql-4.0.22-r2/work/mysql-4.0.22' make: *** [all] Error 2 Expected Results: I expected mysql-4.0.22-r2 to emerge... # gcc --version gcc (GCC) 3.3.5 (Gentoo Hardened Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # gcc-config -l [1] i686-pc-linux-gnu-3.3.5 * [2] i686-pc-linux-gnu-3.3.5-hardenednopie [3] i686-pc-linux-gnu-3.3.5-hardenednossp [4] i686-pc-linux-gnu-3.3.5-vanilla # qpkg -I -v gcc sys-devel/gcc-config-1.3.8-r4 * sys-devel/gcc-3.3.5-r1 * # emerge info Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.8.1 i686) =============================================================== == System uname: 2.6.8.1 i686 Intel(R) Celeron(R) CPU 2.40GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 20 2005, 03:58:00)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r7 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" 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/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://mirror.gentoo.gr.jp" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 berkdb crypt dlloader gd gdbm gpm hardened imagemagick jpeg libwww maildir mmx mysql ncurses nls nptl pam pdflib perl php pic pie png python readline slang spell sse ssl tcpd truetype vhosts x86 xml2 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY # qpkg -I -v headers sys-kernel/linux26-headers-2.6.8.1-r2 *
Created attachment 49468 [details] bzipped pre-processed source
Created attachment 50246 [details] outfile from tibook ---> sorry, wrong bug.... i am very sorry.. my pam-0.77-console-reset.patch-30901.out on my tibook
The attachment compiles ok with the current gcc, gcc (GCC) 3.3.5-20050130 (Gentoo Hardened 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie -8.7.7.1) Closing the bug.