Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91875 - xvid-1.1.0_beta2 ignores the altivec flag
Summary: xvid-1.1.0_beta2 ignores the altivec flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-08 04:00 UTC by Erik Zeek
Modified: 2005-05-08 06:01 UTC (History)
0 users

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 Erik Zeek 2005-05-08 04:00:50 UTC
When emerging xvid-1.1.0_beta2, it tries to use altivec, which I don't have and have disabled.

Reproducible: Always
Steps to Reproduce:
1. emerge =media-libs/xvid-1.1.0_beta2
2.
3.

Actual Results:  
>>> Unpacking source...
>>> Unpacking xvidcore-1.1.0-beta2.tar.bz2 to /var/tmp/portage/xvid-1.1.0_beta2/work
>>> Source unpacked.
 * econf: updating xvidcore-1.1.0-beta2/build/generic/config.guess with
/usr/share/gnuconfig/config.guess
 * econf: updating xvidcore-1.1.0-beta2/build/generic/config.sub with
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=powerpc-unknown-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --build=powerpc-unknown-linux-gnu
checking build system type... powerpc-unknown-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
checking target system type... powerpc-unknown-linux-gnu
checking whether to use default CFLAGS... no
checking for powerpc-unknown-linux-gnu-gcc... powerpc-unknown-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc-unknown-linux-gnu-gcc accepts -g... yes
checking for powerpc-unknown-linux-gnu-gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /bin/install -c
checking for powerpc-unknown-linux-gnu-ranlib... powerpc-unknown-linux-gnu-ranlib
checking for whether to use assembly code... yes
checking for architecture type... PowerPC
checking how to run the C preprocessor... powerpc-unknown-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int *... yes
checking size of int *... 4
checking whether byte ordering is bigendian... yes
checking for build extensions... .so .a .o
checking for platform specific LDFLAGS/CFLAGS... ok
checking for altivec.h... yes
checking for Altivec compiler support... yes (GNU)
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
configure: creating ./config.status
config.status: creating platform.inc
  D: =build
  C: ./decoder.c
  C: ./encoder.c
  C: ./xvid.c
  C: bitstream/bitstream.c
  C: bitstream/cbp.c
  C: bitstream/mbcoding.c
  C: dct/fdct.c
  C: dct/idct.c
  C: dct/simple_idct.c
  C: image/colorspace.c
  C: image/image.c
  C: image/interpolate8x8.c
  C: image/font.c
  C: image/postprocessing.c
  C: image/qpel.c
  C: image/reduced.c
  C: motion/estimation_bvop.c
  C: motion/estimation_common.c
  C: motion/estimation_gmc.c
  C: motion/estimation_pvop.c
  C: motion/estimation_rd_based.c
  C: motion/estimation_rd_based_bvop.c
  C: motion/gmc.c
  C: motion/motion_comp.c
  C: motion/vop_type_decision.c
  C: motion/sad.c
  C: prediction/mbprediction.c
  C: plugins/plugin_single.c
  C: plugins/plugin_2pass1.c
  C: plugins/plugin_2pass2.c
  C: plugins/plugin_lumimasking.c
  C: plugins/plugin_dump.c
  C: plugins/plugin_psnr.c
  C: quant/quant_h263.c
  C: quant/quant_matrix.c
  C: quant/quant_mpeg.c
  C: utils/emms.c
  C: utils/mbtransquant.c
  C: utils/mem_align.c
  C: utils/mem_transfer.c
  C: utils/timer.c
  C: utils/ppc_asm/altivec_trigger.c
In file included from ../../src/utils/ppc_asm/altivec_trigger.c:27:
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/include/altivec.h:36:2:
#error Use the "-maltivec" flag to enable PowerPC AltiVec support
../../src/utils/ppc_asm/altivec_trigger.c: In function `altivec_trigger':
../../src/utils/ppc_asm/altivec_trigger.c:36: error: `__vector' undeclared
(first use in this function)
../../src/utils/ppc_asm/altivec_trigger.c:36: error: (Each undeclared identifier
is reported only once
../../src/utils/ppc_asm/altivec_trigger.c:36: error: for each function it
appears in.)
../../src/utils/ppc_asm/altivec_trigger.c:36: error: parse error before "unsigned"
../../src/utils/ppc_asm/altivec_trigger.c: At top level:
../../src/utils/ppc_asm/altivec_trigger.c:37: error: syntax error before "unsigned"
../../src/utils/ppc_asm/altivec_trigger.c:37: error: `__vector' undeclared here
(not in a function)
../../src/utils/ppc_asm/altivec_trigger.c:37: error: parse error before "unsigned"
../../src/utils/ppc_asm/altivec_trigger.c:38: error: parse error before "__vector"
make: *** [utils/ppc_asm/altivec_trigger.o] Error 1
make: *** Waiting for unfinished jobs....


Expected Results:  
A successful install.  (I have media-libs/xvid-1.0.3 already installed.)
Comment 1 Erik Zeek 2005-05-08 04:02:47 UTC
Forgot my emerge info.

Portage 2.0.51.21-r1 (default-linux/ppc/2004.3, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r7 ppc)
=================================================================
System uname: 2.6.11-gentoo-r7 ppc 750CXe
Gentoo Base System version 1.6.11
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.5-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=750"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -pipe -mcpu=750"
DISTDIR="/home/gentoo/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirrors.tds.net/gentoo http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://mirrors.tds.net/gentoo http://adelie.polymtl.ca/ http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j3"
PKGDIR="/home/gentoo/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/gentoo/portage"
PORTDIR_OVERLAY="/home/gentoo/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="ppc X Xaw3d a52 aac aalib acl activefilter alsa amd apache2 arts artswrappersuid artworkextra atlas auctex bash-completion bcmath berkdb bitmap-fonts blas bonobo bzip2 bzlib c++ cddb cdf cdinstall cdparanoia cdr cjk codecs cpdflib crypt css ctype cups curl curlwrappers dba debugger dga dhcp dio dmx dpms dv dvd dvdr dvdread ecc editor edl eds emboss emul-linux encode esd exif f2c faad fam fame fastcgi fb fbcon fbdev ffmpeg fftw flac flatfile font-server foomaticdb fortran freetype freewnn ftp gb gcj gd gdbm ggi gif gimp gimpprint ginac glade glut gmp gmtfull gmthigh gmtsuppl gmttria gnome gnomedb gnuplot gphoto2 gpm gps graphviz gs gsl gstreamer gtk gtk2 gtkhtml guile hal hdf5 httpd hub iconv icq idea ieee1394 imagekits imagemagick imap imlib imlib2 inifile itcl jabber jack java javacomm javamail javascript jbig jce jmx jp2 jpeg jpeg2k jta junit jython kcal kde kdexdeltas ladcca lapack lcms libcaca libclamav libdsk libsamplerate libwww live lzo lzw lzw-tiff mad maildir mailwrapper maps md5sum mhash mikmod milter mime ming mjpeg mng monkey motif mozilla moznocompose moznoirc moznomail moznoxft mozsvg mp3 mpeg mpeg4 mpi mplayer msn multitarget music mysql nas native ncurses netcdf nethack network nfsv4 nls no-old-linux nocd nowin nptl nptlonly ntlm numeric nviz oav objc octave offensive ofx ogdi ogg oggvorbis openal opengl operanom2 oscar oss pam parse-clocks pcntl pcre pdf pdfkit pdflib perl php physfs pic pie plotutils plugin png portaudio posix povray ppds print private python qemu-fast qhull qt quicktime quotas quotes readline rhino rogue rrdtool rtc samba scanner screenshot sdl session shared sheep silc simplexml skey slang slp smime sndfile sockets softmmu sox speedo speex spell spl ssl stencil-buffer stream subject-rewrite svg symlink sysvipc szip tcltk tcpd tetex tga theora threads tidy tiff tokenizer toolbar transcode truetype truetype-fonts type1 type1-fonts ucs2 unicode usb userlocales utf8 uudeview v4l v4l2 vcd vcdimager videos vidix vim-with-x virus-scan vlm vnc voice vorbis winbind withsamplescripts wma123 wmf wsconvert wxwindows xanim xatrix xbase xface xforms xfs xine xml xml2 xmlrpc xmms xosd xpm xprint xscreensaver xsl xslt xv xvid yahoo yaz yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-08 04:59:02 UTC
This seems to be a foolish test in xvid configure. I've a patch for this and I'm going to commit that soon if it still works on non-ppc systems, and then wait for ppc team to test it before re-marking it ~ppc.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-08 06:01:02 UTC
Thanks for reporting, added altivec flag in -r1 and now should work fine.