Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343893 - media-libs/x264-0.0.20101029 lacks -flax-vector-conversions to compile
Summary: media-libs/x264-0.0.20101029 lacks -flax-vector-conversions to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: InVCS
: 352073 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-02 20:57 UTC by Laurent G.
Modified: 2011-01-26 15:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (x264-0.0.20101029-r1.ebuild,1.51 KB, text/plain)
2011-01-26 14:09 UTC, Alex Buell
Details
files/x264-ppc-fixes.patch (x264-ppc-fixes.patch,2.35 KB, patch)
2011-01-26 14:09 UTC, Alex Buell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent G. 2010-11-02 20:57:29 UTC
powerpc-unknown-linux-gnu-gcc -Wshadow -O3 -ffast-math -mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec -Wall -I. -mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec -maltivec -mabi=altivec -std=gnu99 -fPIC -fno-tree-vectorize   -c -o common/ppc/mc.o common/ppc/mc.c
common/ppc/mc.c: In function 'mc_chroma_altivec_8xh':
common/ppc/mc.c:463: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts
common/ppc/mc.c:463: error: incompatible types when assigning to type '__vector unsigned char' from type '__vector unsigned short'
common/ppc/mc.c:464: error: incompatible types when assigning to type '__vector unsigned char' from type '__vector unsigned short'
common/ppc/mc.c:501: error: incompatible types when assigning to type '__vector unsigned char' from type '__vector unsigned short'
common/ppc/mc.c:502: error: incompatible types when assigning to type '__vector unsigned char' from type '__vector unsigned short'
make: *** [common/ppc/mc.o] Error 1
make: *** Waiting for unfinished jobs....


Reproducible: Always




emerge --info
Portage 2.2.0_alpha3 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.4.5, glibc-2.12.1-r3, 2.6.33-gentoo-r1-l0 ppc)
=================================================================
System uname: Linux-2.6.33-gentoo-r1-l0-ppc-7447A,_altivec_supported-with-gentoo-2.0.1
Timestamp of tree: Tue, 02 Nov 2010 18:00:02 +0000
distcc 3.1 powerpc-unknown-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.5.4-r4, 2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r8
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::<unknown repository>, 2.68
sys-devel/automake:  1.6.3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.2.4-r1, 4.3.5, 4.4.5
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 java-overlay kde-sunset local
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA IBM-J1.5 IBM-J1.6"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
DISTDIR="/in_n_outs/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ "
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/in_n_outs/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/java-overlay /var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl alsa altivec apache2 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cscope cups cxx dba dbus dri dts dvd dvdr emboss encode exif fam fbcon filter flac flash fortran gb gcj gd gdbm gif gnome gpm gtk gtk2 hal iconv ipv6 java jikes jpeg kde kdehiddenvisibility kpathsea lcms ldap libnotify mad mikmod mng modules mozdevelop mozsvg mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin objc ogg oggvorbis opengl openmp pam pango pcre pdf pdflib perl png povray ppc ppds pppd python qt qt3support qt4 readline samba sasl scanner sdl session speex spell ssl startup-notification svg sysfs tcpd tetex theora threads tiff tk truetype udev unicode usb vorbis wmf xcb xine xinerama xml xml2 xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="snd-aoa" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" 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="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati fbdev 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 darkshikari 2010-11-07 09:04:24 UTC
This should be fixed in an upcoming revision (within a few days).  Here's the local commit info:

commit 7f5771a13aec5a8a724e0d0c9d761f5a82e74af0
Author: Manuel Rommel <maaanuuu@gmx.net>
Date:   Sun Oct 31 19:19:10 2010 +0100

    Fix compilation on PPC with some recent GCCs
Comment 2 darkshikari 2010-11-11 16:39:52 UTC
Fix is now committed.
Comment 3 Alex Buell 2011-01-25 22:40:03 UTC
Please see bug 352073, it seems to be still broken with latest portage sync on PPC. I certainly don't see -flax-vector-conversion used when compiling. 
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-01-26 05:20:40 UTC
*** Bug 352073 has been marked as a duplicate of this bug. ***
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2011-01-26 05:21:37 UTC
Bug 352073, Comment #2 by Andrew John Hughes seems to offer solution?
Comment 6 Alex Buell 2011-01-26 14:08:06 UTC
OK, here's a patch and an updated ebuild to fix this problem. Please test and let us know if it works for you. 
Comment 7 Alex Buell 2011-01-26 14:09:36 UTC
Created attachment 260777 [details]
ebuild
Comment 8 Alex Buell 2011-01-26 14:09:57 UTC
Created attachment 260778 [details, diff]
files/x264-ppc-fixes.patch
Comment 9 Alex Buell 2011-01-26 14:10:57 UTC
(In reply to comment #5)
> Bug 352073, Comment #2 by Andrew John Hughes seems to offer solution?

Yup, that one also fixes the problem, new ebuild and patch included in attachments.
Comment 10 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-01-26 15:51:07 UTC
+  26 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org>
+  +files/x264-altivec.patch, x264-0.0.20101029.ebuild:
+  Fix compilation on PPC with some recent GCCs wrt bug 343893. Thanks to
+  Andrew John Hughes <gnu_andrew@member.fsf.org> for salvaging patch and
+  Alex Buell <alex.buell@munted.org.uk> for testing.
+