惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
MongoDB | Blog
MongoDB | Blog
V
V2EX
博客园 - 【当耐特】
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
B
Blog
V
Visual Studio Blog
D
DataBreaches.Net
C
Check Point Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
F
Fortinet All Blogs

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - libsignal-ffi
2026-06-16 · via AUR Newest Packages

Latest Comments

marcool04 commented on 2026-01-18 16:58 (UTC)

Right, so looking into a bit more, it does indeed look like the suggestions you made help the build succeed, however on my RPi4 a test then fails. So I'm not too sure how reliable this would actually be on aarch64.

At this stage, I feel like it would be more rigorous to remove aarch64 from the arch array altogether, as that is closer to what I am able to test... You'd still be able to use a modified version of the PKGBUILD if you like of course, although I realise that might be less convenient. But I'm not too sure why the test is failing and it does suggest that even with the native CPU settings to C and C++ it is not perfect. And the fact that the asm-hashes rust package is deprecated is not encouraging...

a2sc commented on 2026-01-18 13:05 (UTC) (edited on 2026-01-18 13:05 (UTC) by a2sc)

  if [[ "$CARCH" == "aarch64" ]]; then
    export RUSTFLAGS="-C target-cpu=native"
    export CFLAGS="-march=native"
    export CXXFLAGS="$CFLAGS"
    export LDFLAGS=""
  fi

CFLAGS is a flag for c compiler - it forces to use the native cpu crypto https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html

marcool04 commented on 2026-01-17 07:18 (UTC)

Hi a2sc. I see, indeed, that as it is the PKGBUILD fails to build the sha2-asm cargo dependency on an aarch64 with a bunch of:

warning: sha2-asm@0.6.4: src/sha256_aarch64.S:191: Error: selected processor does not support `sha256h2 q3,q4,v7.4s'

warnings then ultimately an error:

error: failed to run custom build command for `sha2-asm v0.6.4`

I'm unsure why this is though to be honest. I see that tulir has his CI building for this architecture with not much different really:

https://mau.dev/tulir/gomuks-build-docker/-/blob/master/.gitlab-ci.yml#L79

How did you arrive at the need to add those flags? I checked out the sha2-asm rust crate and that seems to not only have limited aarch64 support, but also to be on the way out: https://github.com/RustCrypto/asm-hashes and I found no special instructions for compiling on aarch64 there either. Would love to learn more from you if you don't mind explaining those flags please.

a2sc commented on 2026-01-15 22:57 (UTC)

if you want to build it on aarch64 raspi 5, you must replace the build function with:

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  if [[ "$CARCH" == "aarch64" ]]; then
    export RUSTFLAGS="-C target-cpu=native"
    export CFLAGS="-march=armv8-a+crypto"
    export CXXFLAGS="$CFLAGS"
    export LDFLAGS=""
  fi
  cargo clean
  cargo build -p libsignal-ffi --profile=release
}

marcool04 commented on 2024-07-18 06:38 (UTC) (edited on 2026-01-16 07:46 (UTC) by marcool04)

Thanks @BrainDamage Indeed I was going to try and see if 0.52.3 would work with mautrix-signal, but then got distracted and pushed this mixup. Thanks for you comment, should be fixed now.

BrainDamage commented on 2024-07-18 05:38 (UTC)

This package sets 0.52.3 pkgver, but the hash is for version 0.52.0 and the only reverse-dependency has version 0.52.0 pinned. Was it a typo?

shtrophic commented on 2024-03-20 21:23 (UTC)

This also compiles and works on aarch64