when I compile media-libs/libmad-0.15.1b-r2 with -O3 optimizations, mp3 files and mp3 streams don't play right they sound like white noises recompiling media-libs/libmad-0.15.1b-r2 with -O2, fixes the problem stream to test: http://194.158.114.68:5000 I have tried to play with audacious, vlc and xfmedia, all of them depending on libmad, and all the time, the result was the same. Disabling or enabling the altivec optimizations doesn't change a thing Reproducible: Always Steps to Reproduce: 1. compile media-libs/libmad-0.15.1b-r2 with -O3 2. play this stream http://194.158.114.68:5000 or an mp3 file with audacious or vlc 3. recompile media-libs/libmad-0.15.1b-r2 with -O2 and replay the stream of the mp3 file again Actual Results: I believe there is a bug in the libmad's code which appears only on -O3 I don't know if it is possible, but on ppc I suggest to prevent libmad from being compiled with -O3 optimizations Expected Results: preventing libmad from being compiled with -O3 optimizations emerge --info Portage 2.1.6.7 (default/linux/powerpc/ppc32/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 ppc) ================================================================= System uname: Linux-2.6.27-gentoo-r7-ppc-7455,_altivec_supported-with-glibc2.0 Timestamp of tree: Tue, 10 Mar 2009 21:00:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="ppc" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=G4 -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=G4 -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en en_US" 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="7zip X aac acl alsa altivec bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal hardcoded-tables iconv ipv6 isdnlog jpeg kde ldap libnotify lzma mad midi mikmod mp3 mpeg mudflap ncurses network nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppc ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd threads tiff truetype unicode upnp usb vorbis wma x264 xml xorg xosd xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="powermac usb-audio" 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" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I can reproduce this with gcc-4.1.x, but seems to be fixed in the unstable branch with gcc-4.3.3. I'm not sure we should bother masking the flag as we'll be moving to gcc-4.3 soonish. However, I'll leave it open in case anyone wants to track down what the exact problem is.
We've marked gcc-4.3.2-r3 stable, if you continue to have issues after switching to this compiler, please reopen the bug and let us know! Thanks!