Cross compilation issue (x86_64 → aarch64) with a WIP new package (build_style: cargo) #57775
Unanswered
dvergeylen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I would like to enrich the support of the Matrix ecosystem in void-linux, alongside the (always up to date)
synapsepackage. I am thus preparing a few template files, namely for:This question is about matrix-authentication-service packaging, where a draft template can be found here.
The template file compiles correctly on native x86_64 and when chrooting to aarch64 (
./xbps-src -A aarch64 pkg mas-cli), but doesn't work when cross-compiling to aarch64 (./xbps-src -a aarch64 pkg mas-cli).The
aws-lc-syscrates doesn't compile, for some reason (see error below).Cross-compiling the rust part (x86_64 → aarch64) manually works (see below, from an ArchLinux distribution).
My understanding is that the rust target seems to be ignored because some CFLAGS are being passed (see this comment) but I don't get why.
I would be more than happy to get some help making the cross-compilation work. I detected
aws-lc-rsrecently submitted a new release affecting cross compilation to Armv8, so I forked matrix-authentication-service here, updated the crates in Cargo.lock and made a release but this didn't change anything. (I added two commented lines in the template file for anyone willing to test the fork).Does anyone have any clue on how to solve the issue?
Error when cross compiling from x86_64 → aarch64
Manual cross compilation commands
Beta Was this translation helpful? Give feedback.
All reactions