Hi, Now, it is possible to compile the rustdesk-server on the aarch64 architecture. I tested it on a Raspberry Pi 5 using FreeBSD-15.0. If possible, I hope the maintainer can remove the "BROKEN_aarch64= fails to build" label. Thank you very much for your work. Thanks. ------------------ root@ykla:~ # /usr/local/bin/hbbr -V hbbr 1.1.11-1 root@ykla:~ # /usr/local/bin/hbbs -V hbbs 1.1.11-1 root@ykla:~ # uname -a FreeBSD ykla 15.0-CURRENT FreeBSD 15.0-CURRENT main-n271593-d8a16b6a4c44 GENERIC arm64 -------------
And I test it, it seems works well. Thank you very much for your work. -------------- root@ykla:~ # /usr/local/bin/hbbs [2024-08-10 23:02:13.782550 +08:00] INFO [src/common.rs:122] Private key comes from id_ed25519 [2024-08-10 23:02:13.782587 +08:00] INFO [src/rendezvous_server.rs:1191] Key: mgRwOWJy9Vnz3LqQYjtNHwZQYg73uhdj9iCTMmIyoP4= #此处是 Key [2024-08-10 23:02:13.782655 +08:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3 [2024-08-10 23:02:13.786349 +08:00] INFO [src/rendezvous_server.rs:99] serial=0 [2024-08-10 23:02:13.786381 +08:00] INFO [src/common.rs:46] rendezvous-servers=[] [2024-08-10 23:02:13.786388 +08:00] INFO [src/rendezvous_server.rs:101] Listening on tcp/udp :21116 [2024-08-10 23:02:13.786391 +08:00] INFO [src/rendezvous_server.rs:102] Listening on tcp :21115, extra port for NAT test [2024-08-10 23:02:13.786395 +08:00] INFO [src/rendezvous_server.rs:103] Listening on websocket :21118 [2024-08-10 23:02:13.786430 +08:00] INFO [libs/hbb_common/src/udp.rs:35] Receive buf size of udp [::]:21116: Ok(42080) [2024-08-10 23:02:13.786581 +08:00] INFO [src/rendezvous_server.rs:138] mask: None [2024-08-10 23:02:13.786594 +08:00] INFO [src/rendezvous_server.rs:139] local-ip: "" [2024-08-10 23:02:13.786603 +08:00] INFO [src/common.rs:46] relay-servers=[] [2024-08-10 23:02:13.786703 +08:00] INFO [src/rendezvous_server.rs:153] ALWAYS_USE_RELAY=N [2024-08-10 23:02:13.786734 +08:00] INFO [src/rendezvous_server.rs:185] Start [2024-08-10 23:02:13.786793 +08:00] INFO [libs/hbb_common/src/udp.rs:35] Receive buf size of udp [::]:0: Ok(42080) [2024-08-10 23:09:11.043094 +08:00] INFO [src/peer.rs:102] update_pk 1101115918 [::ffff:192.168.31.90]:37057 b"\x ^C[2024-08-10 23:10:06.746255 +08:00] INFO [src/common.rs:176] signal interrupt ----------------- ----------------- root@ykla:~ # /usr/local/bin/hbbr [2024-08-10 22:58:26.593397 +08:00] INFO [src/relay_server.rs:61] #blacklist(blacklist.txt): 0 [2024-08-10 22:58:26.593439 +08:00] INFO [src/relay_server.rs:76] #blocklist(blocklist.txt): 0 [2024-08-10 22:58:26.593445 +08:00] INFO [src/relay_server.rs:82] Listening on tcp :21117 [2024-08-10 22:58:26.593449 +08:00] INFO [src/relay_server.rs:84] Listening on websocket :21119 [2024-08-10 22:58:26.593452 +08:00] INFO [src/relay_server.rs:87] Start [2024-08-10 22:58:26.593546 +08:00] INFO [src/relay_server.rs:105] DOWNGRADE_THRESHOLD: 0.66 [2024-08-10 22:58:26.593556 +08:00] INFO [src/relay_server.rs:115] DOWNGRADE_START_CHECK: 1800s [2024-08-10 22:58:26.593559 +08:00] INFO [src/relay_server.rs:125] LIMIT_SPEED: 4Mb/s [2024-08-10 22:58:26.593564 +08:00] INFO [src/relay_server.rs:136] TOTAL_BANDWIDTH: 1024Mb/s [2024-08-10 22:58:26.593567 +08:00] INFO [src/relay_server.rs:146] SINGLE_BANDWIDTH: 16Mb/s ^C[2024-08-10 23:10:04.393365 +08:00] INFO [src/common.rs:176] signal interrupt --------------------
Hi! Thanks for reporting this information. While I do use some raspberry and aarch64 VMs I do not often build ports myself for those, and when I do I do that via cross compiling, so I would not have noticed this. I'll be doing some testing about this, and will remove the restriction as soon as possible, please allow me a little time to perform some testing myself.
I'm unable to test this myself at present [1], so I'll remove the flag accepting your testing. I will revert the change in the improbable case I get failure messages from the cluster. [1] reason is mainly building rust does not work with qemu and I don't have any powerful enough aarch64 hardware to test on bare metal. Thanks again!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d22aa5d973a60328d7449380634ba14ba2240517 commit d22aa5d973a60328d7449380634ba14ba2240517 Author: Guido Falsi <madpilot@FreeBSD.org> AuthorDate: 2024-08-17 09:23:35 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2024-08-17 09:23:35 +0000 net/rustdesk-server: Enable build on aarch64 Reported as buiding and working correctly. PR: 280732 net/rustdesk-server/Makefile | 2 -- 1 file changed, 2 deletions(-)
Build enabled on aarch64. Thanks!