Ticket #1309 (new defect)

Opened 12 months ago

Last modified 9 months ago

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

dca.c Download (79.2 KB) - added by kyh96403 12 months ago.
patchthumb.diff Download (909 bytes) - added by kyh96403 12 months ago.
Here is patch file
dcadec.c Download (93.0 KB) - added by kyh96403 9 months ago.
build-arm-neon.sh Download (1.9 KB) - added by kyh96403 9 months ago.

Change History

comment:1 Changed 12 months ago by cehoyos

  • Keywords arm added; thumb dca removed

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

Changed 12 months ago by kyh96403

comment:2 Changed 12 months 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 12 months ago by kyh96403

Here is patch file

comment:3 Changed 10 months ago by michael

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

Changed 9 months ago by kyh96403

Changed 9 months ago by kyh96403

comment:4 Changed 9 months ago by kyh96403

That problem have only NDK's GCC version 4.4.3
Lastest GCC 4.6 not have problem.
But I attached dcadec.c both(4.4.3 and 4.6) GCC don't 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.

Last edited 9 months ago by kyh96403 (previous) (diff)
Note: See TracTickets for help on using tickets.