Opened 5 years ago

Last modified 4 years ago

#1309 new defect

Android(NDK) cannot compile thumb mode

Reported by: kyh96403 Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: arm
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When using thumb mode(--enable-thumb), compile is fail..
Error at libavcodec/dca.c dca_xbr_parse_frame function.
It can be fixing by "int block[8];" -> "LOCAL_ALIGNED_16(int, block, [8]);"

Attachments (4)

dca.c (79.2 KB) - added by kyh96403 5 years ago.
patchthumb.diff (909 bytes) - added by kyh96403 5 years ago.
Here is patch file
dcadec.c (93.0 KB) - added by kyh96403 4 years ago.
build-arm-neon.sh (1.9 KB) - added by kyh96403 4 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by cehoyos

  • Keywords arm added; thumb dca removed

Please send patches to ffmpeg-devel, they receive more attention there.

Changed 5 years ago by kyh96403

comment:2 Changed 5 years ago by cehoyos

Please checkout current git head, make your changes, produce a patch file with "git diff>patchthumb.diff" and send patchthumb.diff as an attachment to ffmpeg-devel.

Changed 5 years ago by kyh96403

Here is patch file

comment:3 Changed 4 years ago by michael

Please provide a (preferably minimal) command line for configure so we can reproduce the bug and verify the fix

Changed 4 years ago by kyh96403

Changed 4 years ago by kyh96403

comment:4 Changed 4 years ago by kyh96403

That problem is only NDK's GCC version 4.4.3
Lastest GCC 4.6 is not have problem.
But I attached dcadec.c both(4.4.3 and 4.6) GCC not have problem

D:/msys/Workspace/ffmpeg/libavcodec/dcadec.c: In function 'dca_decode_frame':
D:/msys/Workspace/ffmpeg/libavcodec/dcadec.c:2050: warning: 'asset_size[0]' may be used uninitialized in this
function
D:/msys/Workspace/ffmpeg/libavcodec/dcadec.c:1946: note: 'asset_size[0]' was declared here
D:/msys/Workspace/ffmpeg/libavcodec/arm/dca.h:36: error: can't find a register in class 'CORE_REGS' while relo
ading 'asm'
D:/msys/Workspace/ffmpeg/libavutil/arm/intreadwrite.h:54: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/bswap.h:59: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/intreadwrite.h:54: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/bswap.h:59: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/intreadwrite.h:54: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/intreadwrite.h:54: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/intreadwrite.h:54: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/intreadwrite.h:54: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/bswap.h:59: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavutil/arm/intreadwrite.h:54: error: 'asm' operand has impossible constraints
D:/msys/Workspace/ffmpeg/libavcodec/arm/dca.h:36: error: 'asm' operand has impossible constraints
D:CC/   libavcodec/dpcm.o
msys/Workspace/ffmpeg/libavcodec/dcadec.c:2430: confused by earlier errors, bailing out
make: *** [libavcodec/dcadec.o] Error 1
make: *** Waiting for unfinished jobs....

Above is error message.

Version 0, edited 4 years ago by kyh96403 (next)
Note: See TracTickets for help on using tickets.