[FFmpeg-devel] [PATCH 1/2] configure: disabled -mips64 option for loongson and remove redundant flags

Michael Niedermayer michaelni at gmx.at
Mon May 11 13:08:01 CEST 2015


On Mon, May 11, 2015 at 12:38:46PM +0800, 周晓勇 wrote:
> From 9837274dcee5e1900160901cf28d883246a7ecfb Mon Sep 17 00:00:00 2001
> From: Zhou Xiaoyong <zhouxiaoyong at loongson.cn>
> Date: Mon, 11 May 2015 03:28:52 -0400
> Subject: [PATCH 1/2] configure: disabled -mips64 option for loongson and remove redundant flags
> 
> 1.Option -march=loongson3a conflicts with -mips64 or -mips64r2.
> 2.Option -mhard-float has been added.
> 
> Signed-off-by: Zhou Xiaoyong <zhouxiaoyong at loongson.cn>
> ---
>  configure |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/configure b/configure
> index 1b41367..7716e66 100755
> --- a/configure
> +++ b/configure
> @@ -3937,7 +3937,6 @@ elif enabled mips; then
>              enable fast_cmov
>              enable fast_unaligned
>              disable aligned_stack
> -            cpuflags="-march=$cpu"
>          ;;
>          generic)
>              disable mips32r5
> @@ -4691,7 +4690,7 @@ elif enabled mips; then
>      if enabled mips64 && (enabled mipsdspr1 || enabled mipsdspr2); then
>          add_cflags "-mips64r2"
>          add_asflags "-mips64r2"
> -    elif enabled mips64 && enabled mipsfpu; then
> +    elif enabled mips64 && enabled mipsfpu && disabled loongson3; then

this breaks build on mips:
CC      libavcodec/ac3dec_fixed.o
In file included from ffmpeg/libavcodec/ac3dec_fixed.c:169:
ffmpeg/libavcodec/ac3dec.c: In function ‘ac3_decode_init’:
ffmpeg/libavcodec/ac3dec.c:213: warning: ‘request_channels’ is deprecated (declared at ffmpeg/libavcodec/avcodec.h:2038)
ffmpeg/libavcodec/ac3dec.c:215: warning: ‘request_channels’ is deprecated (declared at ffmpeg/libavcodec/avcodec.h:2038)
/tmp/ccgKabta.s: Assembler messages:
/tmp/ccgKabta.s:5229: Error: opcode not supported on this processor: mips32r2 (mips32r2) `dmult $25,$24'
/tmp/ccgKabta.s:5231: Error: opcode not supported on this processor: mips32r2 (mips32r2) `dsrl $25,$25,32'

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150511/f13c447d/attachment.asc>


More information about the ffmpeg-devel mailing list