Opened 13 years ago

Last modified 12 years ago

#1309 new defect

Android(NDK) cannot compile thumb mode

Reported by: K.Y.H 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 K.Y.H 13 years ago.
patchthumb.diff (909 bytes ) - added by K.Y.H 13 years ago.
Here is patch file
dcadec.c (93.0 KB ) - added by K.Y.H 12 years ago.
build-arm-neon.sh (1.9 KB ) - added by K.Y.H 12 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by Carl Eugen Hoyos, 13 years ago

Keywords: arm added; thumb dca removed

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

by K.Y.H, 13 years ago

Attachment: dca.c added

comment:2 by Carl Eugen Hoyos, 13 years ago

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.

by K.Y.H, 13 years ago

Attachment: patchthumb.diff added

Here is patch file

comment:3 by Michael Niedermayer, 12 years ago

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

by K.Y.H, 12 years ago

Attachment: dcadec.c added

by K.Y.H, 12 years ago

Attachment: build-arm-neon.sh added

comment:4 by K.Y.H, 12 years ago

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 12 years ago by K.Y.H (previous) (diff)
Note: See TracTickets for help on using tickets.