Rust library build is failing for target armv7-linux-androideabi

381 views
Skip to first unread message

shashank admane

unread,
Oct 12, 2023, 3:07:52 PM10/12/23
to android-ndk
Hello Folks,

I am trying to compile Rust library using NDK 24.0.8215888 for target  armv7-linux-androideabi. The build is failing with following error - 

--- stderr
  CMake Error at /home/Android/Sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine.cmake:375 (message):
    Android: Unknown processor CMAKE_SYSTEM_PROCESSOR='arm'.
  Call Stack (most recent call first):
    /home/Android/Sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:160 (include)
    CMakeLists.txt:39 (project)


The linker is set as follows in ~/.cargo/config: 
[target.armv7-linux-androideabi]
ar = "${NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
linker = "${NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi32-clang"

cmake version 3.22.1-g37088a8

(Note - Same is the error for target arm-linux-androideabi)

I am blocked and dont see any solution for this. Any help will be appreciated. Thanks.

Shashank

shashank admane

unread,
Oct 31, 2023, 11:29:34 AM10/31/23
to andro...@googlegroups.com
Can anyone help me here...

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/197afbdc-fe37-4ca8-bfdf-cb505047121an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages