Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79449 - gcc-3.3.5-r1 segfault during mysql-4.0.22-r2 emerge
Summary: gcc-3.3.5-r1 segfault during mysql-4.0.22-r2 emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 04:52 UTC by 0g
Modified: 2005-07-30 06:19 UTC (History)
0 users

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


Attachments
bzipped pre-processed source (ccREeBY2.out.bz2,84.15 KB, application/octet-stream)
2005-01-25 04:53 UTC, 0g
Details
outfile from tibook ---> sorry, wrong bug.... i am very sorry.. (pam-0.77-console-reset.patch-30901.out,4.75 KB, text/plain)
2005-02-02 22:15 UTC, Nicolas Vilz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 0g 2005-01-25 04:52:11 UTC
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 *
Comment 1 0g 2005-01-25 04:53:54 UTC
Created attachment 49468 [details]
bzipped pre-processed source
Comment 2 Nicolas Vilz 2005-02-02 22:15:39 UTC
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
Comment 3 0g 2005-07-30 06:19:04 UTC
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.