Yves Caniou | 24 Oct 05:57 2010
Picon
Picon

Issue compiling mplayer-checkout-2010-10-23 on ARMv7

Dear all,

I have a sharp PC-T1, with ubuntu jaunty, which doesn't have mplayer packaged.
I took the mplayer-checkout-2010-10-23 tarball and tried to compile it, without success.

************************ Here are some information on the system:
$>uname -a
Linux libellule 2.6.28-19-sendai #61fsl1sendai23-Ubuntu PREEMPT Mon Jul 19 16:11:39 UTC 2010 armv7l GNU/Linux
$>cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 159.90
Features        : swp half thumb fastmult vfp edsp neon
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc08
CPU revision    : 1
Hardware        : SHARP PC-T1
Revision        : 51020
Serial          : 0000000000000000
$>ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 1201672 2009-04-10 01:02 /lib/libc-2.9.so
lrwxrwxrwx 1 root root      11 2010-05-01 01:11 /lib/libc.so.6 -> libc-2.9.so
$gcc -v
Utilisation des specs internes.
Target: arm-linux-gnueabi
Configuré avec: ../src/configure -v --with-pkgversion='Ubuntu 
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
(Continue reading)

Reimar Döffinger | 24 Oct 11:23 2010
Picon
Picon

Re: Issue compiling mplayer-checkout-2010-10-23 on ARMv7

On Sun, Oct 24, 2010 at 05:57:43AM +0200, Yves Caniou wrote:
> I have a sharp PC-T1, with ubuntu jaunty, which doesn't have mplayer packaged.
> I took the mplayer-checkout-2010-10-23 tarball and tried to compile it, without success.

> $>./configure --disable-largefiles --disable-mencoder --prefix=/home/ycaniou/bin/mplayer
> 
> 0) First, the proc seems to have "vfp" and "neon", but configure says that it is not able to. The code used to
test this returns an error.

When compiling for ARM you always have to specify the target CPU type via --extra-cflags.
Yves Caniou | 26 Oct 09:50 2010
Picon
Picon

Re: Issue compiling mplayer-checkout-2010-10-23 on ARMv7

Le Sunday 24 October 2010 11:23:36 Reimar Döffinger, vous avez écrit :
> On Sun, Oct 24, 2010 at 05:57:43AM +0200, Yves Caniou wrote:
> > I have a sharp PC-T1, with ubuntu jaunty, which doesn't have mplayer
> > packaged. I took the mplayer-checkout-2010-10-23 tarball and tried to
> > compile it, without success.
> >
> > $>./configure --disable-largefiles --disable-mencoder
> > --prefix=/home/ycaniou/bin/mplayer
> >
> > 0) First, the proc seems to have "vfp" and "neon", but configure says
> > that it is not able to. The code used to test this returns an error.
>
> When compiling for ARM you always have to specify the target CPU type via
> --extra-cflags.

Using the following command line to configure, then make, halts on an error

$>./configure --disable-largefiles --disable-mencoder --prefix=/home/ycaniou/bin/mplayer
--extra-cflags="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -pipe"
--enable-armvfp --enable-neon
[...]
AS      arm/mdct_neon.o
CC      arm/mpegvideo_arm.o
arm/mpegvideo_arm.c:33: error: size of array 'x_H263_AIC' is negative
make[1]: *** [arm/mpegvideo_arm.o] Error 1
make[1]: Leaving directory 
`/media/disk/mplayer-checkout-2010-10-23/ffmpeg/libavcodec'
make: *** [ffmpeg/libavcodec/libavcodec.a] Erreur 2

Thanks for any help.
(Continue reading)

Reimar Döffinger | 26 Oct 20:50 2010
Picon
Picon

Re: Issue compiling mplayer-checkout-2010-10-23 on ARMv7

On Tue, Oct 26, 2010 at 09:50:56AM +0200, Yves Caniou wrote:
> Le Sunday 24 October 2010 11:23:36 Reimar Döffinger, vous avez écrit :
> > On Sun, Oct 24, 2010 at 05:57:43AM +0200, Yves Caniou wrote:
> > > I have a sharp PC-T1, with ubuntu jaunty, which doesn't have mplayer
> > > packaged. I took the mplayer-checkout-2010-10-23 tarball and tried to
> > > compile it, without success.
> > >
> > > $>./configure --disable-largefiles --disable-mencoder
> > > --prefix=/home/ycaniou/bin/mplayer
> > >
> > > 0) First, the proc seems to have "vfp" and "neon", but configure says
> > > that it is not able to. The code used to test this returns an error.
> >
> > When compiling for ARM you always have to specify the target CPU type via
> > --extra-cflags.
> 
> Using the following command line to configure, then make, halts on an error
> 
> $>./configure --disable-largefiles --disable-mencoder --prefix=/home/ycaniou/bin/mplayer
--extra-cflags="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -pipe"
--enable-armvfp --enable-neon
> [...]
> AS      arm/mdct_neon.o
> CC      arm/mpegvideo_arm.o
> arm/mpegvideo_arm.c:33: error: size of array 'x_H263_AIC' is negative
> make[1]: *** [arm/mpegvideo_arm.o] Error 1
> make[1]: Leaving directory 
> `/media/disk/mplayer-checkout-2010-10-23/ffmpeg/libavcodec'
> make: *** [ffmpeg/libavcodec/libavcodec.a] Erreur 2

(Continue reading)

Yves Caniou | 27 Oct 09:49 2010
Picon
Picon

Re: Issue compiling mplayer-checkout-2010-10-23 on ARMv7

Le Tuesday 26 October 2010 20:50:10 Reimar Döffinger, vous avez écrit :
> On Tue, Oct 26, 2010 at 09:50:56AM +0200, Yves Caniou wrote:
> > Le Sunday 24 October 2010 11:23:36 Reimar Döffinger, vous avez écrit :
> > > On Sun, Oct 24, 2010 at 05:57:43AM +0200, Yves Caniou wrote:
> > > > I have a sharp PC-T1, with ubuntu jaunty, which doesn't have mplayer
> > > > packaged. I took the mplayer-checkout-2010-10-23 tarball and tried to
> > > > compile it, without success.
> > > >
> > > > $>./configure --disable-largefiles --disable-mencoder
> > > > --prefix=/home/ycaniou/bin/mplayer
> > > >
> > > > 0) First, the proc seems to have "vfp" and "neon", but configure says
> > > > that it is not able to. The code used to test this returns an error.
> > >
> > > When compiling for ARM you always have to specify the target CPU type
> > > via --extra-cflags.
> >
> > Using the following command line to configure, then make, halts on an
> > error
> >
> > $>./configure --disable-largefiles --disable-mencoder
> > --prefix=/home/ycaniou/bin/mplayer --extra-cflags="-march=armv7-a
> > -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -pipe" --enable-armvfp
> > --enable-neon [...]
> > AS      arm/mdct_neon.o
> > CC      arm/mpegvideo_arm.o
> > arm/mpegvideo_arm.c:33: error: size of array 'x_H263_AIC' is negative
> > make[1]: *** [arm/mpegvideo_arm.o] Error 1
> > make[1]: Leaving directory
> > `/media/disk/mplayer-checkout-2010-10-23/ffmpeg/libavcodec'
(Continue reading)

Carl Eugen Hoyos | 27 Oct 20:11 2010
Picon

Re: Issue compiling mplayer-checkout-2010-10-23 on ARMv7

Yves Caniou <yves.caniou <at> ens-lyon.fr> writes:

> > > CC      arm/mpegvideo_arm.o
> > > arm/mpegvideo_arm.c:33: error: size of array 'x_H263_AIC' is negative
> > > make[1]: *** [arm/mpegvideo_arm.o] Error 1

> > The H263_AIC define in libavcodec/arm/asm-offsets has the wrong value.
> > You can try modifying by it e.g. +-4, +8, ... to find a working value.
> 
> It works with +8.

Reimar, does that mean a libavcodec patch is necessary?

Carl Eugen
Reimar Döffinger | 27 Oct 20:20 2010
Picon
Picon

Re: Issue compiling mplayer-checkout-2010-10-23 on?ARMv7

On Wed, Oct 27, 2010 at 06:11:21PM +0000, Carl Eugen Hoyos wrote:
> Yves Caniou <yves.caniou <at> ens-lyon.fr> writes:
> 
> > > > CC      arm/mpegvideo_arm.o
> > > > arm/mpegvideo_arm.c:33: error: size of array 'x_H263_AIC' is negative
> > > > make[1]: *** [arm/mpegvideo_arm.o] Error 1
> 
> > > The H263_AIC define in libavcodec/arm/asm-offsets has the wrong value.
> > > You can try modifying by it e.g. +-4, +8, ... to find a working value.
> > 
> > It works with +8.
> 
> Reimar, does that mean a libavcodec patch is necessary?

Possibly. Or there is just something strange with that specific compiler.
I don't know for sure...
Carl Eugen Hoyos | 27 Oct 20:49 2010
Picon

Re: Issue compiling mplayer-checkout-2010-10-23 on?ARMv7

Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:

> > > > The H263_AIC define in libavcodec/arm/asm-offsets has the wrong value.
> > > > You can try modifying by it e.g. +-4, +8, ... to find a working value.
> > > 
> > > It works with +8.
> > 
> > Reimar, does that mean a libavcodec patch is necessary?
> 
> Possibly. Or there is just something strange with that specific compiler.
> I don't know for sure...

Do you have a possibility to test?
(Or could you look at http://fate.ffmpeg.org/ and see if similar hardware is
tested there?)

Carl Eugen

_______________________________________________
MPlayer-users mailing list
MPlayer-users <at> mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Reimar Döffinger | 27 Oct 21:34 2010
Picon
Picon

Re: Issue compiling mplayer-checkout-2010-10-23 on?ARMv7

On Wed, Oct 27, 2010 at 06:49:50PM +0000, Carl Eugen Hoyos wrote:
> Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:
> > > > > The H263_AIC define in libavcodec/arm/asm-offsets has the wrong value.
> > > > > You can try modifying by it e.g. +-4, +8, ... to find a working value.
> > > > 
> > > > It works with +8.
> > > 
> > > Reimar, does that mean a libavcodec patch is necessary?
> > 
> > Possibly. Or there is just something strange with that specific compiler.
> > I don't know for sure...
> 
> Do you have a possibility to test?
> (Or could you look at http://fate.ffmpeg.org/ and see if similar hardware is
> tested there?)

I suspect that at least the armv7a configs have neon enabled.
I don't know what the difference between these configs and the broken
MPlayer build is.

Gmane