Latest version of mysql and mariadb fail to install if compiled on AMD Fusion Platform with any optimization higher than -O1 and gcc-4.4.5 or gcc-4.5.2. I did not check gcc-4.6.0 or lower than 4.4.5. Reproducible: Always Steps to Reproduce: 1. set -O2 in make.conf 2. emerge mariadb or mysql 3. run /usr/bin/mysql_install_db Actual Results: a segfault of mysqld with Error:0 in libgcc_s.so.1 Expected Results: mysql base tables are installed please see http://forums.gentoo.org/viewtopic-p-6621789.html#6621789 for further details. The cflags for successful emerge is also posted there in the last comment of me
1) Please post your `emerge --info' output. 2) Attach gdb backtrace output of 'gdb /usr/bin/mysql_install_db' > please see http://forums.gentoo.org/viewtopic-p-6621789.html#6621789 for > further details. 3) Attach further details.
1) 'emerge --info': Portage 2.1.9.50 (default/linux/amd64/10.0/server, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo x86_64) ================================================================= System uname: Linux-2.6.38-gentoo-x86_64-AMD_E-350_Processor-with-gentoo-2.0.2 Timestamp of tree: Sat, 04 Jun 2011 09:15:01 +0000 app-shells/bash: 4.2_p10 dev-lang/python: 2.6.6-r2, 2.7.1-r1, 3.1.3-r1, 3.2 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.68 sys-devel/automake: 1.10.3, 1.11.1-r1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.4.4-r2, 4.5.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.38 (virtual/os-headers) sys-libs/glibc: 2.13-r2 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -mno-3dnow" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -mno-3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="rsync://gentoo.tiscali.nl/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ rsync://gentoo.mirrors.tds.net/gentoo rsync://212.219.56.139/www.ibiblio.org/gentoo/ rsync://mirror.leaseweb.com/gentoo/ rsync://mirror.cambrium.nl/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://91.121.125.139/gentoo-distfiles/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j3" 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" PORTDIR_OVERLAY="" SYNC="rsync://rsync8.de.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 apm bash-completion berkdb bzip2 cli consolekit cracklib crypt cups cxx dbus device-mapper dri extras fam fortran gdbm gdu gpm graphite iconv jpeg libnotify lzo mmx mmxext modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre policykit pppd python readline sdl sensord session snmp sse sse2 ssl startup-notification sysfs tcpd truetype udev unicode xml xorg zlib" ALSA_CARDS="hda-intel" 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600 r300" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS 2) 'gdb /usr/bin/mysql_install_db': Hyperfusion lib # gdb /usr/bin/mysql_install_db GNU gdb (Gentoo 7.2 p1) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: <http://bugs.gentoo.org/>... "/usr/bin/mysql_install_db": not in executable format: File format not recognized 3) further details: [1644918.126706] mysqld[3014] general protection ip:7f2e57f4145b sp:7f2e4dc3f400 error:0 in libgcc_s.so.1[7f2e57f32000+15000] [1645585.416181] mysqld[700] general protection ip:7ffce73fb45b sp:7ffcdd0f9400 error:0 in libgcc_s.so.1[7ffce73ec000+15000] Hope this helps