Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342535 - www-plugins/gnash-0.8.8 failure and fix on Powerpc64
Summary: www-plugins/gnash-0.8.8 failure and fix on Powerpc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC64 Linux
: High enhancement
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on:
Blocks:
 
Reported: 2010-10-24 23:24 UTC by Stephen Lewis
Modified: 2011-02-26 18:08 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 Stephen Lewis 2010-10-24 23:24:21 UTC
Gnash ebuild fails on Powerpc64 with 38 errors relating to TOCs
can be fixed by adding '-mminimal-toc' to CXXFLAGS in ebuild

Reproducible: Always

Steps to Reproduce:
1.ACCEPT_KEYWORDS="*" USE="nsplugin test" emerge gnash
2.
3.

Actual Results:  
38 errors like this:
=================================================================================
/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.4/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../libcore/vm/.libs/libgnashvm.a(ActionExec.o)(.text+0x2d08): sibling call optimization to `boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::~basic_format()' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::~basic_format()' extern

Expected Results:  
should link and install

This can be fixed by appending the '-mminimal-toc' flag to CXXFLAGS in the
ebuild like this:
===========================================================================
--- /usr/portage/www-plugins/gnash/gnash-0.8.8.ebuild   2010-10-06 13:37:45.000000000 -0700
+++ /usr/local/portage/www-plugins/gnash/gnash-0.8.8-r100.ebuild        2010-10-24 12:24:40.000000000 -0700
@@ -152,6 +152,8 @@
        # Use external dejagnu for tests, bug #321017
        epatch "${FILESDIR}"/${PN}-0.8.8-external-dejagnu.patch
 
+       use ppc64 && append-flags -mminimal-toc
+
        eautoreconf
 }
 src_configure() {
============================================================================
Gnash then builds, passes tests, installs and runs on Powerpc64

Here is info
$ emerge --info gnash
Portage 2.1.8.3 (default/linux/powerpc/ppc64/10.0/64bit-userland/desktop, gcc-4.3.4, glibc-2.11.2-r0, 2.6.31-gentoo-r10-sl ppc64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r10-sl-ppc64-PPC970FX,_altivec_supported-with-gentoo-1.12.13
Timestamp of tree: Sun, 24 Oct 2010 12:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="* -@EULA IBM-J1.6"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl altivec berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus doc dri dts dvd dvdr emboss encode examples exif fam firefox flac gdbm gif gnome gnutls gpm gtk guile hal ibm iconv ipv6 jpeg lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppc64 ppds pppd python qt3support qt4 readline sdl session spell sqlite ssl startup-notification svg sysfs tcl tcpd tiff truetype unicode usb vorbis xcb xml xorg xulrunner xv xvid zlib" 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" CAMERAS="canon 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" PHP_TARGETS="php5-2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

www-plugins/gnash-0.8.8-r100 was built with the following:
USE="agg cairo dbus doc ffmpeg gnome gtk nls nsplugin opengl python sdl ssl test xv (-aqua) -cygnal -fbcon -gstreamer -kde (-kdeenablefinal) (-lirc) -mysql -sdl-sound -ssh (-vaapi)" VIDEO_CARDS="-intel" 
CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -mminimal-toc"
CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -mminimal-toc"
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-11-15 22:31:44 UTC
Thanks, applied.

ppc64: please keyword www-plugins/gnash-0.8.8 ~ppc64
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-02-26 18:08:05 UTC
+  26 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org> agg-2.5-r2.ebuild:
+  26 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org> gnash-0.8.8.ebuild:
+  Marked ~ppc64 wrt #342535. Thanks to Stephen Lewis
+  <lewis+gentoo@freeshell.org> for report and testing.