Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

armv5 编译出错问题 #4736

Open
junzLiu opened this issue May 21, 2019 · 3 comments
Open

armv5 编译出错问题 #4736

junzLiu opened this issue May 21, 2019 · 3 comments

Comments

@junzLiu
Copy link

junzLiu commented May 21, 2019

armv5 编译出错 有谁知道怎么处理么
arm64 ,x86,x86_64 都编译通过了
api:21
ndk:19
编译环境:Liunx

In file included from libavformat/aacdec.c:23:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:40:
./libavutil/arm/bswap.h:42:13: error: invalid instruction, any one of the following would fix this:
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
./libavutil/arm/bswap.h:42:13: note: instruction requires: armv6
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
./libavutil/arm/bswap.h:42:13: note: instruction requires: thumb2
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
In file included from libavformat/aacdec.c:23:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:40:
./libavutil/arm/bswap.h:52:13: error: invalid instruction, any one of the following would fix this:
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r1, r1
        ^
./libavutil/arm/bswap.h:52:13: note: instruction requires: armv6
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r1, r1
        ^
./libavutil/arm/bswap.h:52:13: note: instruction requires: thumb2
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r1, r1
        ^
In file included from libavformat/aacdec.c:23:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:40:
./libavutil/arm/bswap.h:42:13: error: invalid instruction, any one of the following would fix this:
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
./libavutil/arm/bswap.h:42:13: note: instruction requires: armv6
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
./libavutil/arm/bswap.h:42:13: note: instruction requires: thumb2
    __asm__("rev16 %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 r1, r1
        ^
In file included from libavformat/aacdec.c:23:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:40:
./libavutil/arm/bswap.h:52:13: error: invalid instruction, any one of the following would fix this:
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r0, r0
        ^
./libavutil/arm/bswap.h:52:13: note: instruction requires: armv6
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r0, r0
        ^
./libavutil/arm/bswap.h:52:13: note: instruction requires: thumb2
    __asm__("rev %0, %0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev r0, r0
        ^
2 warnings and 4 errors generated.```
@junzLiu junzLiu changed the title armv5 编译出错 有谁知道怎么处理么 armv5 编译出错问题 May 21, 2019
@poholo
Copy link

poholo commented May 22, 2019

#4683

@jianli-yang
Copy link

请问,有结果了么?

@poholo
Copy link

poholo commented Feb 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants