Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127825 - gst-plugins-ffmpeg-0.8.7-r1 compile fails with #error, altivec related
Summary: gst-plugins-ffmpeg-0.8.7-r1 compile fails with #error, altivec related
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
Depends on:
Reported: 2006-03-27 23:38 UTC by Thomas Stratmann
Modified: 2006-04-17 03:17 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stratmann 2006-03-27 23:38:08 UTC
Stripped compile console output:

 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libavcodec -DHAVE_AV_CONFIG_H=1 -Wall -Wno-switch -O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe -MT eval.lo -MD -MP -MF .deps/eval.Tpo -c eval.c  -fPIC -DPIC -o .libs/eval.o
In file included from ../libavcodec/dsputil.h:471,
                 from ../libavcodec/mpegvideo.h:29,
                 from eval.c:30:
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.5/include/altivec.h:36:2: #error Use the "-maltivec" flag to enable PowerPC AltiVec support
if /bin/sh ../libtool --tag=CC --mode=compile powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libavcodec -DHAVE_AV_CONFIG_H=1  -Wall -Wno-switch    -O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe -MT intfloat_readwrite.lo -MD -MP -MF ".deps/intfloat_readwrite.Tpo" -c -o intfloat_readwrite.lo intfloat_readwrite.c; \
then mv -f ".deps/intfloat_readwrite.Tpo" ".deps/intfloat_readwrite.Plo"; else rm -f ".deps/intfloat_readwrite.Tpo"; exit 1; fi
make[7]: *** [eval.lo] Error 1
make[7]: *** Waiting for unfinished jobs....
 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libavcodec -DHAVE_AV_CONFIG_H=1 -Wall -Wno-switch -O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe -MT intfloat_readwrite.lo -MD -MP -MF .deps/intfloat_readwrite.Tpo -c intfloat_readwrite.c  -fPIC -DPIC -o .libs/intfloat_readwrite.o
make[7]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.8.7-r1/work/gst-ffmpeg-0.8.7/gst-libs/ext/ffmpeg/libavutil'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.8.7-r1/work/gst-ffmpeg-0.8.7/gst-libs/ext/ffmpeg'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.8.7-r1/work/gst-ffmpeg-0.8.7/gst-libs/ext/ffmpeg'
make[4]: *** [all-local] Error 2
make[4]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.8.7-r1/work/gst-ffmpeg-0.8.7/gst-libs/ext'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.8.7-r1/work/gst-ffmpeg-0.8.7/gst-libs/ext'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.8.7-r1/work/gst-ffmpeg-0.8.7/gst-libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gst-plugins-ffmpeg-0.8.7-r1/work/gst-ffmpeg-0.8.7'
make: *** [all] Error 2

emerge --info output:

Portage 2.0.54 (default-linux/ppc/ppc32/2006.0/G3, gcc-3.4.5, glibc-2.3.5-r3, ppc)
System uname: ppc 7455, altivec supported
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
CFLAGS="-O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe"
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict usersandbox"
USE="ppc X alsa apm audiofile bash-completion bzip2 cdr cli crypt ctype cups dba dri dvd eds encode esd exif expat fam fastbuild foomaticdb force-cgi-redirect ftp gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 jpeg lcms ldap libwww mad memlimit mikmod mng motif mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pcre pdflib png posix python qt quicktime readline ruby sdl simplexml soap sockets spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xml xml2 xmms xsl xv zlib userland_GNU kernel_linux elibc_glibc"
Comment 1 Luca Barbato gentoo-dev 2006-03-29 04:01:24 UTC
Looks like they hacked ffmpeg in a wrong way.
Comment 2 Joe Jezak (RETIRED) gentoo-dev 2006-04-02 15:40:55 UTC
It'll compile fine on a non-altivec system.  There are a few other annoying packages like this (kde, openoffice, this one) that make compiling for non-altivec systems annoying on altivec machines. :p   Your best bet for now is to use a fast G3 as a distcc master and other faster machines to speed up the compile.

Do we want to fix this?
Comment 3 Tobias Scherbaum (RETIRED) gentoo-dev 2006-04-08 06:10:51 UTC
gst-plugins-ffmpeg-0.10.1 compiles fine on an altivec-system. Please test, Thomas.
Comment 4 Thomas Stratmann 2006-04-13 06:36:29 UTC
Synced yesterday, updated world deeply.

The problem still persists for me.

So something must be different in my setup, probably beyond "emerge --info" output. I have no clue what that could be, ask me for details if you have any idea.

emerge --info output same as above except:
virtual/os-headers:  2.6.11-r4
Comment 5 Joe Jezak (RETIRED) gentoo-dev 2006-04-13 09:47:06 UTC
Like I said before, you're trying to compile without altivec on a machine that has altivec support.  This is broken for gst-plugins-ffmpeg because ffmpeg detects your cpu (and therefore altivec) automatically.  Either enable altivec for your machine or compile this package on a machine without altivec support.
Comment 6 Thomas Stratmann 2006-04-15 18:24:19 UTC
ACK. It compiles fine now i changed the profile -- shame on me, should have seen that in the --info output.

I did a quick search and could not find any other bugs with the "compile non-altivec on altivec" issue.
I mostly only read the summary, so I might have missed it.
Comment 7 Tobias Scherbaum (RETIRED) gentoo-dev 2006-04-17 03:17:52 UTC
Closing then.