最新代码编译armv7的时候报错
Closed this issue · 0 comments
Execution failed for task ':core:buildCMakeRelWithDebInfo[armeabi-v7a][pine]'.
com.android.ide.common.process.ProcessException: ninja: Entering directory `/data/audio/pine/core/.cxx/RelWithDebInfo/2n2v71n4/armeabi-v7a'
[1/2] Building ASM object CMakeFiles/pine.dir/trampoline/arch/thumb2.S.o
FAILED: CMakeFiles/pine.dir/trampoline/arch/thumb2.S.o
/home/master/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7-none-linux-androideabi19 --sysroot=/home/master/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dpine_EXPORTS -I/data/audio/pine/core/src/main/cpp/external/xz-embedded/linux/include/linux -I/data/audio/pine/core/src/main/cpp/external/xz-embedded/userspace -isystem /home/master/.gradle/caches/transforms-3/23079b8960c6a0dcc087349e8ecd9f25/transformed/cxx-1.2.0/prefab/modules/cxx/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -arch armv7 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/pine.dir/trampoline/arch/thumb2.S.o -MF CMakeFiles/pine.dir/trampoline/arch/thumb2.S.o.d -o CMakeFiles/pine.dir/trampoline/arch/thumb2.S.o -c /data/audio/pine/core/src/main/cpp/trampoline/arch/thumb2.S
clang: warning: argument unused during compilation: '-arch armv7' [-Wunused-command-line-argument]
/data/audio/pine/core/src/main/cpp/trampoline/arch/thumb2.S:78:9: error: expected ')'
LDVAR(r0, pine_thumb_method_jump_trampoline_dest_method)
^
/data/audio/pine/core/src/main/cpp/trampoline/arch/thumb2.S:79:9: error: expected ')'
LDVAR(pc, pine_thumb_method_jump_trampoline_dest_entry)
^
ninja: build stopped: subcommand failed.
C++ build system [build] failed while executing:
/home/master/Android/Sdk/cmake/3.22.1/bin/ninja
-C
/data/audio/pine/core/.cxx/RelWithDebInfo/2n2v71n4/armeabi-v7a
pine
from /data/audio/pine/core
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
汇编看不懂 gpt说这个没定义 LDVAR