Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341725 - with -O3 CFLAG, sys-libs/zlib is broken
Summary: with -O3 CFLAG, sys-libs/zlib is broken
Status: RESOLVED DUPLICATE of bug 270120
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-19 06:06 UTC by Xavier Miller (RETIRED)
Modified: 2010-10-19 08:07 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 Xavier Miller (RETIRED) gentoo-dev 2010-10-19 06:06:21 UTC
When -O3 is activated in the CFLAGS, the generated sys-libs/zlib is broken and some (e.g. firefox, thunderbird, ...) packages built on it crash with segfault.

It happen on i686 architecture, not amd64, with GCC 4.4 and 4.5

If I compile zlib with -O2, all is fine.

Could it be possible to filter "-O3" in sys-libs/zlib ebuilds?

Reproducible: Always

Steps to Reproduce:
1. CFLAGS="-O3 -pipe -fomit-frame-pointer -march=native -mtune=native emerge -1 sys-libs/zlib
2. firefox, thunderbird, ... segfault
3. CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native emerge -1 sys-libs/zlib
4. OK




emerge --info
Portage 2.2_rc97 (default/linux/x86/10.0, gcc-4.5.1, glibc-2.12.1-r1, 2.6.35-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.35-gentoo-r10-i686-AMD_Athlon-tm-64_X2_Dual_Core_Processor_4400+-with-gentoo-2.0.1
Timestamp of tree: Mon, 18 Oct 2010 10:45:02 +0000
distcc 3.1 i686-gentoo-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
Repositories: gentoo proaudio
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE freedist"
CBUILD="i686-gentoo-linux-gnu"
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=native -mtune=native"
CHOST="i686-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs candy distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="fr"
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="/var/lib/layman/pro-audio"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amr battery branding btrfs bzip2 cairo cdda cddb cdio cleartype cli consolekit contrib cpufreq cracklib crypt cups cxx dbus dirac dri dssi dvb dvd dvdr encode exif expensive_math extras fat fbcon fbcondecor ffmpeg flac fontconfig fts3 gallium gd gif git glib glitz gnutls gpm gstreamer gtk gui gzip-el htmlsingle iconv id3tag jack jack-tmpfs jackmidi java java6 jfs jpeg ladspa libnotify matroska mbox mmmxext mmx modules mp3 mp3rtp mpeg mudflap ncurses nls nptl nptlonly nsplugin ntfs nvidia ogg opencore-amr opengl openmp osc osc_opcodes pam pcre pdf png portaudio ppds pppd python python3 qt3support qt4 raster readline reflection rle samba schroedinger secure-delete session slang sms sound sqlite sqlite3 sse sse2 sse3 ssl startup-notification stk_opcodes subversion svg sysfs tcl tcpd theora thunar tiff tk twolame unicode usb v4l v4l2 vorbis wifi win32codecs wmf x264 x86 xfce xft xml xorg xscreensaver xvid zlib" ALSA_CARDS="ice1712 hda-intel usb-audio virmidi" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-af9015" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XFCE_PLUGINS="menu" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-10-19 08:07:41 UTC
Known issue, don't use -O3

*** This bug has been marked as a duplicate of bug 270120 ***