New comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/pull/25702#issuecomment-711362321 Comment: Thanks @jnbr now it built for `aarch64` with the following additional patch: ```bash diff --git a/srcpkgs/linux5.9/template b/srcpkgs/linux5.9/template index a23078bf9c..f0dcb1228d 100644 --- a/srcpkgs/linux5.9/template +++ b/srcpkgs/linux5.9/template @@ -13,7 +13,7 @@ python_version=3 patch_args="-Np1" # XXX Restrict archs until a proper -dotconfig is available in FILESDIR. -archs="x86_64* i686* aarch64*" +archs="x86_64* i686* aarch64* mips*" nodebug=yes # -dbg package is generated below manually nostrip=yes @@ -60,6 +60,12 @@ do_configure() { ppc*) arch=powerpc;; mips*) arch=mips;; esac + case "$XBPS_TARGET_MACHINE" in + aarch64*) # Avoid error for logging floating point values + grep -rwl -- -mgeneral-regs-only | xargs sed -i -e "s;-mgeneral-regs-only;;" + vsed -i scripts/link-vmlinux.sh -e's;${PAHOLE} -J;& --btf_encode_force;' + ;; + esac if [ "$CROSS_BUILD" ]; then _args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-" ``` Not sure whether it's feasible to remove the `-mgeneral-regs-only` switch, though.