Skip to content

cargo ndk build adnroid error: --fix-cortex-a53-843419 #704

@exyoyou

Description

@exyoyou

Before reporting an issue, please first check
the troubleshooting guide. If the issue you're
encountering is not solved thereby please state the following in your bugreport:

  1. Operating system
    ubuntu 24.04.3

  2. The way you installed OpenCV: package, official binary distribution, manual compilation, etc.
    vcpkg opencv

  3. OpenCV version

  4. rustc version (rustc --version)
    rustc 1.90.0 (1159e78c4 2025-09-14)

  5. Cargo.toml
    [dependencies]
    opencv = { version = "0.97.2", features = ["clang-runtime"] }

  6. Attach the full output of the following command from your project directory: ```shell script
    RUST_BACKTRACE=full cargo build -vv

➜ ✗ cargo ndk --platform 21 --target aarch64-linux-android build --release --features flutter,hwcodec
[2025-12-02T19:39:44Z WARN cargo_ndk::cli] Environment variable ANDROID_NDK_HOME = "/home/youyou/Android/Sdk/ndk/android-ndk-r27d-linux/android-ndk-r27d" doesn't match ANDROID_NDK_ROOT = "/home/youyou/Android/Sdk/ndk/27.3.13750724"
[2025-12-02T19:39:44Z INFO cargo_ndk::cli] Using NDK at path: /home/youyou/Android/Sdk/ndk/android-ndk-r27d-linux/android-ndk-r27d (ANDROID_NDK_HOME)
[2025-12-02T19:39:44Z INFO cargo_ndk::cli] NDK API level: 21
[2025-12-02T19:39:44Z INFO cargo_ndk::cli] Building targets: arm64-v8a
[2025-12-02T19:39:44Z INFO cargo_ndk::cli] Building arm64-v8a (aarch64-linux-android)
Blocking waiting for file lock on package cache
Updating crates.io index
Blocking waiting for file lock on package cache
Locking 12 packages to latest compatible versions
Adding clang v2.0.0
Adding opencv v0.97.2
Adding opencv-binding-generator v0.99.0
Adding windows v0.62.2
Adding windows-collections v0.3.2
Adding windows-core v0.62.2
Adding windows-future v0.3.2
Adding windows-link v0.2.1
Adding windows-numerics v0.3.1
Adding windows-result v0.4.1
Adding windows-strings v0.5.1
Adding windows-threading v0.2.1
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
warning: unused variable: java_vm
--> libs/scrap/src/android/ffi.rs:380:13
|
380 | let java_vm = jvm.get_java_vm_pointer() as *mut c_void;
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: _java_vm
|
= note: #[warn(unused_variables)] on by default

warning: unused variable: env
--> libs/scrap/src/android/ffi.rs:649:15
|
649 | if let Ok(env) = vm.get_env() {
| ^^^ help: if this is intentional, prefix it with an underscore: _env

warning: unused variable: java_vm
--> libs/scrap/src/android/ffi.rs:668:17
|
668 | let java_vm = jvm.get_java_vm_pointer() as *mut c_void;
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: _java_vm

warning: variable does not need to be mutable
--> libs/scrap/src/common/record.rs:437:13
|
437 | ... let mut at: Option = Some(webm.add_audio_track(48_000, 2, No...
| ----^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default

warning: unused variable: finalize_ok
--> libs/scrap/src/common/record.rs:516:13
|
516 | let finalize_ok = std::mem::replace(&mut self.webm, None)
| ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _finalize_ok

warning: struct HwCodecConfig2 is never constructed
--> libs/scrap/src/common/hwcodec.rs:510:8
|
510 | struct HwCodecConfig2 {
| ^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: field camera_id is never read
--> libs/scrap/src/common/camera.rs:297:5
|
292 | struct AndroidCameraCapturer {
| --------------------- field in this struct
...
297 | camera_id: String,
| ^^^^^^^^^

warning: scrap (lib) generated 7 warnings (run cargo fix --lib -p scrap to apply 1 suggestion)
Compiling rustdesk v1.4.4 (/home/youyou/rustdesk)
warning: unused import: ColorType
--> src/monitor/save_image.rs:131:32
|
131 | use image::{ImageBuffer, Rgba, ColorType, DynamicImage, ImageOutputFormat};
| ^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: unused import: TraitPixelBuffer
--> src/monitor/mod.rs:5:20
|
5 | use scrap::{Frame, TraitPixelBuffer};
| ^^^^^^^^^^^^^^^^

warning: unused imports: keys and option2bool
--> src/server/clipboard_service.rs:19:26
|
19 | use hbb_common::config::{keys, option2bool};
| ^^^^ ^^^^^^^^^^^

warning: unused imports: RecvTimeoutError, channel, and io
--> src/server/clipboard_service.rs:23:5
|
23 | io,
| ^^
24 | sync::mpsc::{channel, RecvTimeoutError},
| ^^^^^^^ ^^^^^^^^^^^^^^^^

warning: unused import: RecvTimeoutError
--> src/client.rs:24:22
|
24 | mpsc::{self, RecvTimeoutError},
| ^^^^^^^^^^^^^^^^

warning: unused import: message_proto::*
--> src/client/screenshot.rs:3:18
|
3 | use hbb_common::{message_proto::*, ResultType};
| ^^^^^^^^^^^^^^^^

warning: unused imports: Duration and path::PathBuf
--> src/flutter_ffi.rs:26:5
|
26 | path::PathBuf,
| ^^^^^^^^^^^^^
...
31 | time::{Duration, SystemTime},
| ^^^^^^^^

warning: unused imports: Error as JniError, JObject, and Result as JniResult
--> src/flutter_ffi.rs:2795:18
|
2795 | errors::{Error as JniError, Result as JniResult},
| ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
2796 | objects::{JClass, JObject, JString},
| ^^^^^^^

warning: unused imports: ResultType, bail, and log
--> src/clipboard.rs:3:18
|
3 | use hbb_common::{bail, log, message_proto::*, ResultType};
| ^^^^ ^^^ ^^^^^^^^^^

warning: unused imports: Arc, Mutex, and time::Duration
--> src/clipboard.rs:5:12
|
5 | sync::{Arc, Mutex},
| ^^^ ^^^^^
6 | time::Duration,
| ^^^^^^^^^^^^^^

warning: unused import: decompress
--> src/clipboard.rs:540:47
|
540 | compress::{compress as compress_func, decompress},
| ^^^^^^^^^^

warning: unused imports: MOUSE_BUTTON_LEFT, MOUSE_TYPE_DOWN, MOUSE_TYPE_UP, and MOUSE_TYPE_WHEEL
--> src/ui_session_interface.rs:3:13
|
3 | input::{MOUSE_BUTTON_LEFT, MOUSE_TYPE_DOWN, MOUSE_TYPE_UP, MOUSE_TYPE_WHEEL},
| ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^

warning: use of deprecated function hbb_common::base64::encode: Use Engine::encode
--> src/hbbs_http/sync.rs:187:52
|
187 | hash = hbb_common::base64::encode(&res[..]);
| ^^^^^^
|
= note: #[warn(deprecated)] on by default

warning: unused variable: pos
--> src/server/connection.rs:818:61
|
818 | Some(message::Union::CursorPosition(pos)) => {
| ^^^ help: if this is intentional, prefix it with an underscore: _pos
|
= note: #[warn(unused_variables)] on by default

warning: unused variable: terminal
--> src/server/connection.rs:1498:17
|
1498 | let mut terminal = cfg!(not(any(target_os = "android", target_os = "i...
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: _terminal

warning: unused variable: action
--> src/server/connection.rs:3134:53
|
3134 | Some(message::Union::TerminalAction(action)) => {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: _action

warning: unused variable: buf
--> src/monitor/save_image.rs:44:24
|
44 | pub fn ai_detect_frame(buf: &[u8], width: u32, height: u32) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: _buf

warning: unused variable: width
--> src/monitor/save_image.rs:44:36
|
44 | pub fn ai_detect_frame(buf: &[u8], width: u32, height: u32) -> bool {
| ^^^^^ help: if this is intentional, prefix it with an underscore: _width

warning: unused variable: height
--> src/monitor/save_image.rs:44:48
|
44 | pub fn ai_detect_frame(buf: &[u8], width: u32, height: u32) -> bool {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: _height

warning: unused variable: pb
--> src/monitor/mod.rs:10:28
|
10 | Frame::PixelBuffer(pb) => {
| ^^ help: if this is intentional, prefix it with an underscore: _pb

warning: value assigned to buf is never read
--> src/server/audio_service.rs:88:17
|
88 | let mut buf = vec![];
| ^^^
|
= help: maybe it is overwritten before being read?
= note: #[warn(unused_assignments)] on by default

warning: unused variable: info
--> src/client.rs:1479:35
|
1479 | move |data: &mut [T], info: &cpal::OutputCallbackInfo| {
| ^^^^ help: if this is intentional, prefix it with an underscore: _info

warning: variable does not need to be mutable
--> src/client.rs:1486:21
|
1486 | let mut having = lock.occupied_len();
| ----^^^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default

warning: unused variable: session_id
--> src/flutter_ffi.rs:1208:30
|
1208 | pub fn main_set_input_source(session_id: SessionID, value: String) {
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _session_id

warning: unused variable: value
--> src/flutter_ffi.rs:1208:53
|
1208 | pub fn main_set_input_source(session_id: SessionID, value: String) {
| ^^^^^ help: if this is intentional, prefix it with an underscore: _value

warning: unused variable: env
--> src/flutter_ffi.rs:2873:9
|
2873 | env: JNIEnv,
| ^^^ help: if this is intentional, prefix it with an underscore: _env

warning: unused variable: pin
--> src/ui_interface.rs:1505:23
|
1505 | pub fn set_unlock_pin(pin: String) -> String {
| ^^^ help: if this is intentional, prefix it with an underscore: _pin

warning: function monitor_detect_stub is never used
--> src/monitor/mod.rs:7:8
|
7 | pub fn monitor_detect_stub(frame: &Frame) -> bool {
| ^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: function get_template_dir is never used
--> src/monitor/save_image.rs:10:4
|
10 | fn get_template_dir() -> std::path::PathBuf {
| ^^^^^^^^^^^^^^^^

warning: function fetch_keyboard_templates_from_network is never used
--> src/monitor/save_image.rs:15:8
|
15 | pub fn fetch_keyboard_templates_from_network() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: function save_monitor_frame_as_png is never used
--> src/monitor/save_image.rs:136:8
|
136 | pub fn save_monitor_frame_as_png(buf: &[u8], width: u32, height: u32) -> std::...
| ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: function start_grab_loop is never used
--> src/keyboard.rs:269:4
|
269 | fn start_grab_loop() {
| ^^^^^^^^^^^^^^^

warning: function try_fill_unicode is never used
--> src/keyboard.rs:961:4
|
961 | fn try_fill_unicode(_peer: &str, event: &Event, key_event: &KeyEvent, events: ...
| ^^^^^^^^^^^^^^^^

warning: function start_grab_loop is never used
--> src/keyboard.rs:65:12
|
65 | pub fn start_grab_loop() {
| ^^^^^^^^^^^^^^^

warning: field 0 is never read
--> src/platform/mod.rs:100:21
|
100 | pub struct WakeLock(Option<android_wakelock::WakeLock>);
| -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| field in this struct
|
= help: consider removing this field

warning: function get_audio_input is never used
--> src/server/audio_service.rs:62:4
|
62 | fn get_audio_input() -> String {
| ^^^^^^^^^^^^^^^

warning: struct InputMouse is never constructed
--> src/server/connection.rs:131:8
|
131 | struct InputMouse {
| ^^^^^^^^^^

warning: field follow_remote_cursor is never read
--> src/server/connection.rs:282:5
|
206 | pub struct Connection {
| ---------- field in this struct
...
282 | follow_remote_cursor: bool,
| ^^^^^^^^^^^^^^^^^^^^

warning: method auto_stop_voice_for_camera is never used
--> src/server/connection.rs:1820:8
|
342 | impl Connection {
| --------------- method in this implementation
...
1820 | fn auto_stop_voice_for_camera(&mut self) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: function is_capturer_mag_supported is never used
--> src/server/display_service.rs:155:4
|
155 | fn is_capturer_mag_supported() -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: function get_sync_displays is never used
--> src/server/display_service.rs:296:15
|
296 | pub(super) fn get_sync_displays() -> Vec {
| ^^^^^^^^^^^^^^^^^

warning: associated constant CLIENT_CLIPBOARD_NAME is never used
--> src/client.rs:185:11
|
184 | impl Client {
| ----------- associated constant in this implementation
185 | const CLIENT_CLIPBOARD_NAME: &'static str = "client-clipboard";
| ^^^^^^^^^^^^^^^^^^^^^

warning: constant MAX_REG_TIMEOUT is never used
--> src/rendezvous_mediator.rs:169:15
|
169 | const MAX_REG_TIMEOUT: i64 = 30_000;
| ^^^^^^^^^^^^^^^

warning: variant PixelBuffer is never constructed
--> src/flutter.rs:211:5
|
210 | enum RenderType {
| ---------- variant in this enum
211 | PixelBuffer,
| ^^^^^^^^^^^
|
= note: RenderType has derived impls for the traits Clone and Debug, but these are intentionally ignored during dead code analysis

warning: constant RUSTDESK_CLIPBOARD_OWNER_FORMAT is never used
--> src/clipboard.rs:15:7
|
15 | const RUSTDESK_CLIPBOARD_OWNER_FORMAT: &'static str = "dyn.com.rustdesk.owner";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant CLIPBOARD_FORMAT_EXCEL_XML_SPREADSHEET is never used
--> src/clipboard.rs:18:7
|
18 | const CLIPBOARD_FORMAT_EXCEL_XML_SPREADSHEET: &'static str = "XML Spreadsheet";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: enum ClipboardSide is never used
--> src/clipboard.rs:503:10
|
503 | pub enum ClipboardSide {
| ^^^^^^^^^^^^^

warning: methods get_owner_data and is_owner are never used
--> src/clipboard.rs:511:8
|
508 | impl ClipboardSide {
| ------------------ methods in this implementation
...
511 | fn get_owner_data(&self) -> Vec {
| ^^^^^^^^^^^^^^
...
518 | fn is_owner(&self, data: &[u8]) -> bool {
| ^^^^^^^^

warning: function plain_to_proto is never used
--> src/clipboard.rs:544:8
|
544 | fn plain_to_proto(s: String, format: ClipboardFormat) -> Clipboard {
| ^^^^^^^^^^^^^^

warning: function special_to_proto is never used
--> src/clipboard.rs:604:8
|
604 | fn special_to_proto(d: Vec, s: String) -> Clipboard {
| ^^^^^^^^^^^^^^^^

warning: struct CustomServer is never constructed
--> src/custom_server.rs:10:12
|
10 | pub struct CustomServer {
| ^^^^^^^^^^^^

warning: function get_custom_server_from_config_string is never used
--> src/custom_server.rs:21:4
|
21 | fn get_custom_server_from_config_string(s: &str) -> ResultType {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: function get_custom_server_from_string is never used
--> src/custom_server.rs:39:8
|
39 | pub fn get_custom_server_from_string(s: &str) -> ResultType {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: methods change_theme, change_language, show_elevation, and file_transfer_log are never used
--> src/ui_cm_interface.rs:104:8
|
97 | pub trait InvokeUiCM: Send + Clone + 'static + Sized {
| ---------- methods in this trait
...
104 | fn change_theme(&self, dark: String);
| ^^^^^^^^^^^^
105 |
106 | fn change_language(&self);
| ^^^^^^^^^^^^^^^
107 |
108 | fn show_elevation(&self, show: bool);
| ^^^^^^^^^^^^^^
...
112 | fn file_transfer_log(&self, action: &str, log: &str);
| ^^^^^^^^^^^^^^^^^

warning: struct UiStatus is never constructed
--> src/ui_interface.rs:38:12
|
38 | pub struct UiStatus {
| ^^^^^^^^

warning: struct SessionPermissionConfig is never constructed
--> src/ui_session_interface.rs:75:12
|
75 | pub struct SessionPermissionConfig {
| ^^^^^^^^^^^^^^^^^^^^^^^

warning: field finished is never read
--> src/hbbs_http/downloader.rs:45:5
|
38 | struct Downloader {
| ---------- field in this struct
...
45 | finished: bool,
| ^^^^^^^^

warning: function download_file is never used
--> src/hbbs_http/downloader.rs:50:8
|
50 | pub fn download_file(
| ^^^^^^^^^^^^^

warning: function do_download is never used
--> src/hbbs_http/downloader.rs:128:10
|
128 | async fn do_download(
| ^^^^^^^^^^^

warning: function create_http_client_async_with_url is never used
--> src/hbbs_http/http_client.rs:232:14
|
232 | pub async fn create_http_client_async_with_url(url: &str) -> AsyncClient {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: function create_http_client_async_with_url_ is never used
--> src/hbbs_http/http_client.rs:251:10
|
251 | async fn create_http_client_async_with_url_(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: linking with /home/youyou/Android/Sdk/ndk/android-ndk-r27d-linux/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang failed: exit status: 1
|
= note: "/home/youyou/Android/Sdk/ndk/android-ndk-r27d-linux/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" "-Wl,--version-script=/tmp/rustcoiMpxC/list" "-Wl,--no-undefined-version" "/tmp/rustcoiMpxC/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bdynamic" "-lndk_compat" "-loboe" "-lc++" "-lOpenSLES" "-Wl,-Bstatic" "/lib/rustlib/aarch64-linux-android/lib/libpanic_abort-.rlib" "/home/youyou/rustdesk/target/aarch64-linux-android/release/deps/{libwol-4b9ad8f2ab137147,libdefault_net-9f2c54035aa8663b,libdlopen2-ba4cf83c2cae16c4,libnetlink_sys-772756a2e259e63d,libnetlink_packet_route-b50d7d5064b93fe9,libnetlink_packet_core-d9e602f333f77d8a,libnetlink_packet_utils-6d874eccdeab25b5,liberrno-4caeaf217191b2d7,librepng-43fcfe4898aa2465,libshutdown_hooks-0f268a1a2294397f,libandroid_wakelock-92382b521a8fdf6b,libfon-c7f227bc1033731e,liblibm-3e036b9de159bc63,libkcp_sys-901ea2ae8d11401c,libzerocopy-c23594502b2170ed,libdashmap-1d66b45d67fb6e3e,libreqwest-e6af58fdc16f2baa,libhyper_rustls-1a5d2079597fc240,libhyper_tls-a0a95d3883fa2aac,libserde_urlencoded-da58c22952d8c627,libasync_compression-58e1acba76e498a4,libcompression_codecs-6cdc2bd0440762c1,libcompression_core-cd8ef6af279359db,libtower_http-8e43ac24f0334b30,libiri_string-82fc1b2d5dce5875,libtower-c63d29d4bf138ec5,libtower_layer-c4ec5e8a67ae2484,libhyper_util-1b9f273245407439,libipnet-caf67f7a49a49ad9,libtower_service-7165344897f28c41,libtracing-2eff406b67117b51,libtracing_core-390b6bfda610c826,libhyper-f5486a1e73889249,libwant-f6f813df5205ea7c,libtry_lock-a48cbe1ef1d2de99,libatomic_waker-17e65258e39372e9,libhttp_body_util-7e2314822edb2a68,libhttp_body-ff2b68e7ee210431,libsync_wrapper-1ab927aad4c462be,libtotp_rs-c87fea532cbfc4c4,liburlencoding-db0cf8cf09c4283a,libconstant_time_eq-70ab6d1f3603b22c,libbase32-ddd8c669fc0d8a2e,libflutter_rust_bridge-4e82fbd54df9b8bd,libthreadpool-d5724f9e18ad9550,liballo_isolate-00c23e188f244be2,libatomic-7d0b21f40e7f1418,libdart_sys-2092961a1aac02d0,libparity_tokio_ipc-9ff3f040ef682e45,libstunclient-0ff4adb45cc10e3a,libstun_codec-3beb0dfcb5af95f6,libmd5-47cc9332a7ca7c86,libcrc-a5963126692f6d08,libcrc_catalog-424cc1c57cf1212e,libhmac-45e75bf93c9b19ad,libbytecodec-92d9f8d1d9c2c5d8,libtrackable-3849331334795529,libtrackable-6855f9ab2451642e,libdasp-475548ab00c0824b,libdasp_window-a337ae831c52951f,libdasp_signal-104e650fa274b8c7,libdasp_ring_buffer-af8e7dea7dc843ee,libdasp_interpolate-df595a7f8029a20c,libdasp_frame-11d2b942e18786f9,libringbuf-55cd628842ad4a05,libcpal-7c6851dec5929d52,libdasp_sample-4524fe9ffdf151df,liboboe-81d01395b95fefe5,liboboe_sys-967ad59629bca770,libcidr_utils-cdff9fbfd9f799df,libdebug_helper-b05c8480099ffcb3,libnum_bigint-16514d2b71aee31b,libnum_integer-819b677c8af07139,libmagnum_opus-e866ae1f102cc5c9,librdev-f71446782597dafc,libstrum-6db39bb7c4dd48f7,libimage-8ae52cb9e473f979,libqoi-6e8571d534cc8c86,libbytemuck-f9d93fe9984510ab,libpng-51b232b9f167e692,libfdeflate-14a5c542db49b936,libbitflags-a04bc8cbf81aca9a,libexr-c7d59552a817d10a,libflume-1e77b4b2019bae16,libzune_inflate-2b005da736833f7f,libbit_field-1307a5b8c74a9824,liblebe-5d2eef974c4e8932,libhalf-ab20b7ebf3c73d82,libgif-f71836b5bc514544,libcolor_quant-46052e8730f7fccc,libbyteorder-09f97c62bc4ac7ff,libtiff-b3221de8793d37f6,libflate2-7c38c77ae7c6857f,libcrc32fast-d58b0c7fd418712a,libweezl-c5f6a0b8aae422b2,libjpeg_decoder-5ce80ebe909ebf5a,libscrap-10c6f912925e87fb,libnum_cpus-982ea53fc78ec738,libndk_context-1c02d0fe3f51f811,libwebm-e49d3ffc504d9a4a,libwebm_sys-427cd7c13c60ccba,libhwcodec-0c6eae4a69826b59,libhbb_common-efd46a2dd4ab4220,libwebpki_roots-f5fd7583a73375ed,libfiletime-463c96f088f4ec32,libconfy-93e86ba0e478e40e,libtoml-514c07b9373085f5,libbacktrace-17864360dcc60385,libminiz_oxide-e11484db1182db85,libsimd_adler32-6a743ea10df0966e,libobject-b7d1f0a6d15935c0,libaddr2line-a5390676161154c2,libgimli-9566141aee15580b,librustc_demangle-8b4a5a40871f6766,libwhoami-cdec0e65055d9d5c,librustls_platform_verifier-fc9207944cf16390,libjni-a491be5c28b8e7ec,libcesu8-120384381476b054,libcombine-f28a88d92756e278,libjni_sys-101efeec183f68f0,libtokio_tungstenite-698afd8570e033fe,libtungstenite-57a815670cafce72,libwebpki_roots-74884fd8cce6af2a,librustls_native_certs-3ad5ca1c4d5c5e89,libdata_encoding-c18e973781c522b4,librand-58d5d0378a5eba55,librand_chacha-a5ae53a889a4f6c0,libzerocopy-f2d9036183d09330,librand_core-c665e289fb3d6c3a,libutf8-6ca2bed991872163,libsha1-973a27d5ab9e002e,libhttp-64caee07d0db2eb4,libfnv-debdf7f068ced741,libflexi_logger-8d81fd4bac65e2d8,libglob-a890eb2ef30c18e5,libcrossbeam_queue-c0b9e2751ee7a25c,libcrossbeam_channel-17252608c49c6150,libis_terminal-1cf4339b11c8493e,libnu_ansi_term-d4eb71471d35baec,libuuid-5539af50fe1a923a,libgetrandom-1f10bc1d285238ef,libtoml-7eeac2265f226e61,libtoml_edit-f518ab6dcfe40bb7,libserde_spanned-33cc631ecab1c9d4,libindexmap-bbc48c4df98ce603,libequivalent-80933d7aa4aad598,libhashbrown-17d8cc46a4e16a62,libwinnow-cf8650c23607bd7a,libtoml_datetime-69729e11053579ac,libsysinfo-b17fb41dfafae6f2,librayon-0d90bdbd3cbfafe4,librayon_core-f683258fda7b82e2,libcrossbeam_deque-277744d605ae2e9f,libcrossbeam_epoch-1c110fddbc7c3594,libcrossbeam_utils-e509cf4ba57dbbed,libsha2-3900e7676570522e,libdigest-960b01d1c9dadff9,libblock_buffer-c30cb9b519e38b9e,libcrypto_common-5f61c5d3bb2c84b7,libgeneric_array-674d51da7016b197,libtypenum-f7e9537231ca7870,libdirectories_next-5f028e8e164227a9,libdirs_sys_next-9d72915298107839,liblazy_static-bf6056548dc146df,libserde_json-5684915ca4798f7c,libitoa-693b6461111b297c,libryu-2b0adebbd1fee2e9,librand-e88546d184313f9c,librand_chacha-128710d60b56c850,libppv_lite86-bffe34ce1e3a23f6,librand_core-79259983ac73cafb,libenv_logger-060a2cbe8b8594bf,libanstream-14c052be46f2677d,libanstyle_query-9634c32955923a21,libis_terminal_polyfill-d20b40c49fcd515a,libcolorchoice-ae7d60d94c642d32,libanstyle_parse-496a35a794855534,libutf8parse-ed68973d45bcb705,libenv_filter-658e3636468f0b62,libregex-6a78bbff1a51bc92,libregex_automata-0447e5d773abddb5,libaho_corasick-2217cc543a8b74b4,libregex_syntax-4de0eec1a9ea580d,libanstyle-a4f99ef44fee4510,libhumantime-a34610756fb3bb1e,libsocket2-cd56f80fa9c508a1,libsodiumoxide-d0f3ac9bbccdea66,libed25519-61e69ddf668377a2,libsignature-517dbac993b59f9a,liblibsodium_sys-9c0dfcea951a256b,liburl-f95d92c5436e3e7a,libidna-cb8aaf0aa4fe6700,libunicode_normalization-a572cfd9ea6add01,libtinyvec-5c6949e15cf1e4a2,libtinyvec_macros-5364d22ccd68761b,libunicode_bidi-7fe8ba19ae37dd23,libform_urlencoded-87703bf35c248052,libpercent_encoding-3b0ece1509bd3a15,libtokio_socks-4ea5ca3eb09fada5,libthiserror-2c7a445268a6683a,libpin_project-484fb0465dc9a25d,libeither-b133c276389c5510,libtokio_rustls-5184ab81b2844598,librustls-7e74271be7be0b33,libsubtle-ce529edb3a9f078c,libwebpki-6ba22e1c77be82f9,libring-d3c2491c45048014,libgetrandom-45d18b15121af708,libuntrusted-571c810ae3bd67b6,libzeroize-790f4b66c9cef7c6,librustls_pki_types-0a442bb2cd1cd037,libtokio_native_tls-31b1e1aa45fa6792,libnative_tls-3c5f81420ff081c8,libopenssl_probe-6d1ccfdd968951f6,libopenssl-323845bbee69c1ff,libbitflags-e01ed015a10fe24b,libforeign_types-d6f35ffc2078bbfa,libforeign_types_shared-2b798ced648fe007,libopenssl_sys-cfb805c5b2f0e599,liblog-3131188cd3a563fe,libhttparse-e9356be84e195ede,libbase64-b33cb64d71f30614,libanyhow-bf72617b5d1bc224,libtokio_util-a209b606e11d10ac,libtokio-2f82480929a3ca9d,libsignal_hook_registry-8a78aec033dcb174,libsocket2-2d35530b57fea3bf,libmio-43aeaa34d069055a,libparking_lot-597bcb1a82ccc735,libparking_lot_core-7a299494e13377fd,libsmallvec-24e05579f24ee395,liblock_api-069c85769470c492,libscopeguard-eb7b97e8b598a1a3,libprotobuf-adc41f9f17b19afb,libprotobuf_support-5f23eb564020e53e,libthiserror-10417624bdf020f4,libonce_cell-f7216177ddd37c88,libfutures-922a32cb71aa3aee,libfutures_executor-e7e41e25f6280a55,libfutures_util-4259e4b32728087f,libmemchr-1e96667c67dc1881,libfutures_io-b8e793180c859cfb,libslab-5b93a76b69c182c3,libfutures_channel-d6a6db186577c7d9,libpin_project_lite-f8e6910be2e45bab,libfutures_sink-1c6a8a839e572e0b,libfutures_task-3c5ced0c4b4e2951,libpin_utils-d5d9a592a31bcb24,libfutures_core-88261d0d51f9ab83,libbytes-1c1491b65ee05830,libserde-7dbc77d070e14ba5,libzstd-478e5b07c60470b6,libzstd_safe-d8acd13614d0bbfe,libzstd_sys-b28043545106aeaa,libcfg_if-de17647f377d572e,libchrono-b948bf6ad51db28f,libandroid_tzdata-15e2e7776bb329fa,libiana_time_zone-2ddff5648d0f1269,libandroid_system_properties-f10d47786dc781ba,liblibc-4760d318bc0802a2,libnum_traits-7d61559182518c41}.rlib" "/lib/rustlib/aarch64-linux-android/lib/{libstd-,libobject-,libmemchr-,libaddr2line-,libgimli-,librustc_demangle-,libstd_detect-,libhashbrown-,librustc_std_workspace_alloc-,libminiz_oxide-,libadler2-,libunwind-,libcfg_if-,liblibc-,librustc_std_workspace_core-,liballoc-,libcore-,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lc++_static" "-llog" "-lOpenSLES" "-lc++_shared" "-lz" "-lm" "-landroid" "-latomic" "-lmediandk" "-ldl" "-llog" "-lunwind" "-ldl" "-lm" "-lc" "-L" "/tmp/rustcoiMpxC/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/oboe-sys-b35b52bfac537e03/out/library" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/oboe-sys-b35b52bfac537e03/out/library" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/dart-sys-9ea10273d03b70a1/out" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/ring-f385e55e59b6dec3/out" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/libsodium-sys-2f8c2b21b013bb4d/out/installed/lib" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/openssl-sys-39b0102cc46cc1b6/out/openssl-build/install/lib" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/zstd-sys-7c5830b29ccfee21/out" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/kcp-sys-1aaa4c533da27626/out" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/opencv-c8ec5366354e7a0c/out" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/hwcodec-020e3396fee29077/out" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/webm-sys-1d439ea877e4b632/out" "-L" "/home/youyou/rustdesk/target/aarch64-linux-android/release/build/bzip2-sys-8acdeab75682f1fd/out/lib" "-L" "/home/youyou/vcpkg/installed/arm64-android/lib" "-L" "/home/youyou/.cargo/git/checkouts/kcp-sys-a97dc6603837a17f/32a6c09/kcp" "-L" "/home/youyou/vcpkg/installed/arm64-android/lib" "-L" "/home/youyou/vcpkg/installed/x64-linux/lib" "-L" "/home/youyou/vcpkg/installed/x64-linux/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/youyou/vcpkg/installed/arm64-android/lib" "-L" "/home/youyou/vcpkg/installed/arm64-android/lib" "-L" "/home/youyou/vcpkg/installed/arm64-android/lib" "-L" "/home/youyou/vcpkg/installed/arm64-android/lib" "-L" "/home/youyou/vcpkg/installed/arm64-android/lib" "-o" "/home/youyou/rustdesk/target/aarch64-linux-android/release/deps/liblibrustdesk.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-all" "-nodefaultlibs" "-Wl,-rpath,$ORIGIN/../../../../../.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-linux-android/lib,--enable-new-dtags,-z,origin"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: ld.lld: error: --fix-cortex-a53-843419 is only supported on AArch64 targets
clang: error: linker command failed with exit code 1 (use -v to see invocation)

warning: rustdesk (lib) generated 61 warnings
error: could not compile rustdesk (lib) due to 1 previous error; 61 warnings emitted
[2025-12-02T19:40:56Z INFO cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2025-12-02T19:40:56Z INFO cargo_ndk::cli]
[2025-12-02T19:40:56Z INFO cargo_ndk::cli] rustup target install aarch64-linux-android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions