[MPlayer-dev-eng] Problem compiling mplayer for PowerPC + AltiVec

morgoth6 at box43.pl morgoth6 at box43.pl
Thu Jul 7 00:18:18 CEST 2005


Hell[o]

I tired to compile cvs version of mplayer today, but I encounter a problem then I was unable to solve. The compilation failed atlibavcodec/ppc/idct_altivec.c file with following error message:

========
cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4   -maltivec -mabi=altivec -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=gnu99 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE    -c -o mp3lameaudio.o mp3lameaudio.c
cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4   -maltivec -mabi=altivec -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=gnu99 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE    -c -o ppc/dsputil_ppc.o ppc/dsputil_ppc.c
In file included from ppc/dsputil_ppc.c:23:
ppc/dsputil_ppc.h:30:1: warning: "NO_DCBZL" redefined
In file included from ppc/../common.h:19,
                 from ppc/../dsputil.h:31,
                 from ppc/dsputil_ppc.c:21:
../config.h:530:1: warning: this is the location of the previous definition
cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4   -maltivec -mabi=altivec -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=gnu99 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE    -c -o ppc/mpegvideo_ppc.o ppc/mpegvideo_ppc.c
In file included from ppc/dsputil_altivec.h:24,
                 from ppc/mpegvideo_ppc.c:24:
ppc/dsputil_ppc.h:30:1: warning: "NO_DCBZL" redefined
In file included from ppc/../common.h:19,
                 from ppc/../dsputil.h:31,
                 from ppc/mpegvideo_ppc.c:19:
../config.h:530:1: warning: this is the location of the previous definition
cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4   -maltivec -mabi=altivec -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=gnu99 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE    -c -o ppc/dsputil_altivec.o ppc/dsputil_altivec.c
In file included from ppc/dsputil_altivec.h:24,
                 from ppc/dsputil_altivec.c:25:
ppc/dsputil_ppc.h:30:1: warning: "NO_DCBZL" redefined
In file included from ppc/../common.h:19,
                 from ppc/../dsputil.h:31,
                 from ppc/dsputil_altivec.c:21:
../config.h:530:1: warning: this is the location of the previous definition
cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4   -maltivec -mabi=altivec -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=gnu99 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE    -c -o ppc/mpegvideo_altivec.o ppc/mpegvideo_altivec.c
In file included from ppc/dsputil_altivec.h:24,
                 from ppc/mpegvideo_altivec.c:29:
ppc/dsputil_ppc.h:30:1: warning: "NO_DCBZL" redefined
In file included from ppc/../common.h:19,
                 from ppc/../dsputil.h:31,
                 from ppc/mpegvideo_altivec.c:24:
../config.h:530:1: warning: this is the location of the previous definition
cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4   -maltivec -mabi=altivec -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=gnu99 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE    -c -o ppc/idct_altivec.o ppc/idct_altivec.c
In file included from ppc/dsputil_altivec.h:24,
                 from ppc/idct_altivec.c:44:
ppc/dsputil_ppc.h:30:1: warning: "NO_DCBZL" redefined
In file included from ppc/../common.h:19,
                 from ppc/../dsputil.h:31,
                 from ppc/idct_altivec.c:40:
../config.h:530:1: warning: this is the location of the previous definition
ppc/idct_altivec.c:160: error: initializer element is not constant
ppc/idct_altivec.c:160: error: (near initialization for 'constants[0]')
ppc/idct_altivec.c:161: error: initializer element is not constant
ppc/idct_altivec.c:161: error: (near initialization for 'constants[1]')
ppc/idct_altivec.c:162: error: initializer element is not constant
ppc/idct_altivec.c:162: error: (near initialization for 'constants[2]')
ppc/idct_altivec.c:163: error: initializer element is not constant
ppc/idct_altivec.c:163: error: (near initialization for 'constants[3]')
ppc/idct_altivec.c:165: error: initializer element is not constant
ppc/idct_altivec.c:165: error: (near initialization for 'constants[4]')
make[1]: *** [ppc/idct_altivec.o] Error 1
make[1]: Leaving directory `/tmpfs/mplayer/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2
========

My current compiler is GCC 4.0.1 snapshot (02.07.05) But I get identical error when I try to compile mplayer using GCC 3.4.4. I am a bit confused because I was unable to locate any major changes since 1.0pre7 in that parts of code :/ Anyone was able to compile recent mplayer for PPC with AltiVec support using GCC 4.0.1 or 3.4.4 ?

--------
 :: Morgoth/Dreamolers-CAPS && TBS ::

   ::: Homepage # http://dreamolers.meanmachine.ch :::
  ::: Homepage # http://www.tbs-software.com/morgoth/ :::
 :: Email #  morgoth at morphos.net ::
  ::: GG # 3681372 ::

 :: Pegasos User&Developer ::





More information about the MPlayer-dev-eng mailing list