Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288708 - media-libs/libmad produces noise unless --enable-fpm=64bit is used in Cell BE
Summary: media-libs/libmad produces noise unless --enable-fpm=64bit is used in Cell BE
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-12 11:08 UTC by Adrian Perez
Modified: 2010-11-09 17:03 UTC (History)
1 user (show)

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 Adrian Perez 2009-10-12 11:08:53 UTC
(This is probably related to #150531)

Using any of the ebuilds from the Portage tree in a Cell processor produces noise in every application using libmad. Adding --enable-fpm=64bit in EXTRA_ECONF solves the problem.

I am running Gentoo on a PlayStation 3, 64-bit kernel and 32-bit userland. I have also tried this in a 64-bit chroot, and exactly the same problem happens, and the same fix works.

I do not know if this is specific to the Cell processor of the PS3, but looks more PowerPC-related than Cell-specific. If it eventually is only Cell-related, I still do not know how to differentiate between a regular PPC and a Cell processor (I could investigate, though)

Reproducible: Always

Steps to Reproduce:
1. Get a Gentoo system installed in a PlayStation 3 (or other Cell-based machine)
2.emerge libmad madplay
3.madplay some-audio.mp3

Actual Results:  
Annoying noise plays out.

Expected Results:  
MP3 audio files should play properly, without noise.
Comment 1 Adrian Perez 2009-10-12 19:13:24 UTC
For the sake of reference, I am adding my "emerge --info" here, feel free to ask if something else is needed (e.g doing some testing).


Portage 2.1.7.1 (default/linux/powerpc/ppc64/10.0/32bit-userland, gcc-4.4.1, glibc-2.9_p20081201-r3, 2.6.31-gentoo-r2-ps3 ppc64)
=================================================================
System uname: Linux-2.6.31-gentoo-r2-ps3-ppc64-Cell_Broadband_Engine,_altivec_supported-with-gentoo-2.0.1
Timestamp of tree: Mon, 12 Oct 2009 17:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p33
dev-lang/python:     2.4.4-r6, 2.5.4-r3, 2.6.3, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.1
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.6.3, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ABI="ppc"
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx"
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"
ARCH="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CCACHE_SIZE="500M"
CDEFINE_ppc="!__powerpc64__"
CDEFINE_ppc64="__powerpc64__"
CFLAGS="-O2 -pipe -mcpu=cell -mtune=cell -mabi=altivec"
CFLAGS_ppc="-m32"
CHOST="powerpc-unknown-linux-gnu"
CHOST_ppc="powerpc-unknown-linux-gnu"
CHOST_ppc64="powerpc64-unknown-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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 /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -pipe -mcpu=cell -mtune=cell -mabi=altivec"
DEFAULT_ABI="ppc"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.19.1/info:/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.4.1/info"
INPUT_DEVICES="evdev mouse keyboard joystick"
KERNEL="linux"
KERNEL_ABI="ppc64"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LDFLAGS_ppc="-m elf32ppc"
LDFLAGS_ppc64="-m elf64ppc"
LDPATH="/usr/local/lib://usr//lib/opengl/xorg-x11/lib:/usr/powerpc-unknown-linux-gnu/lib:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.1:/usr/lib/nspr"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib"
LIBDIR_x86_fbsd="lib32"
LINGUAS="es_ES es ja_JP ja en_US en en_GB"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.19.1/man:/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.4.1/man"
MULTILIB_ABIS="ppc"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/powerpc-unknown-linux-gnu/gcc-bin/4.4.1:/usr/powerpc-unknown-linux-gnu/powerpc64-unknown-linux-gnu/gcc-bin/4.2.4"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="5"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/cell /usr/local/portage/layman/ps3 /usr/local/portage/connectical"
PROFILE_ARCH="ppc64"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/powerpc-unknown-linux-gnu/gcc-bin/4.4.1:/usr/powerpc-unknown-linux-gnu/powerpc64-unknown-linux-gnu/gcc-bin/4.2.4"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="192.168.0.3 50659 22"
SSH_CONNECTION="192.168.0.3 50659 192.168.0.2 22"
SSH_TTY="/dev/pts/0"
STAGE1_USE="nptl nptlonly unicode gcc64"
SYMLINK_LIB="no"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X acl alsa altivec bash-completion berkdb bzip2 caps cblas cli cracklib crypt cups dri fam fbcon fortran gcc64 gdbm gpm gsl iconv icu ipv6 isdnlog libedit modules mudflap ncurses nptl nptlonly openmp pam pcre perl ppc pppd ps3 python readline reflection session spl sqlite sqlite3 ssl sysfs tcpd unicode wifi xattr xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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="evdev mouse keyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_ES es ja_JP ja en_US en en_GB" USERLAND="GNU" VIDEO_CARDS="fbdev" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="fbdev"
_="/usr/bin/emerge"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-09 16:05:34 UTC
Same on ppc32.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-09 16:57:27 UTC
Index: libmad-0.15.1b-r6.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-libs/libmad/libmad-0.15.1b-r6.ebuild,v
retrieving revision 1.7
diff -u -B -r1.7 libmad-0.15.1b-r6.ebuild
--- libmad-0.15.1b-r6.ebuild    26 Oct 2010 09:12:43 -0000      1.7
+++ libmad-0.15.1b-r6.ebuild    9 Nov 2010 16:55:32 -0000
@@ -42,7 +42,7 @@
 
        [[ $(tc-arch) == "amd64" ]] && myconf="${myconf} --enable-fpm=64bit"
        [[ $(tc-arch) == "x86" ]] && myconf="${myconf} --enable-fpm=intel"
-       [[ $(tc-arch) == "ppc" ]] && myconf="${myconf} --enable-fpm=ppc"
+       [[ $(tc-arch) == "ppc" ]] && myconf="${myconf} --enable-fpm=default"
        [[ $(tc-arch) == "ppc64" ]] && myconf="${myconf} --enable-fpm=64bit"
 
        econf \

That fixes it for PPC, but as you can see the ppc64 fix should already be in the latest stable.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-09 17:03:02 UTC
That's in -r7 now with PPC stable keyword. Keeping ppc@ here because it obviously isn't really fixed yet, just worked around.