On Wed, 14 May 2025 07:59:06 +0000, Jing Luo wrote:
> linux's tools fail to cross sbuild from source when
> using "--host=riscv64" on an amd64 machine:
>
> [...]
>
> In file included from 
> /build/reproducible-path/linux-6.12.27/tools/include/asm/barrier.h:12,
>                  from ringbuf.c:16:
> /build/reproducible-path/linux-6.12.27/tools/include/asm/../../arch/riscv/include/asm/barrier.h:13:10:
>  fatal error: asm/fence.h: No such file or directory
>    13 | #include <asm/fence.h>
>       |          ^~~~~~~~~~~~~
> compilation terminated.

I tested the riscv64 cross-build of linux-kbuild on amd64 with
6.12.27-1 and 7.2.6-1. The old version still fails with the missing
asm/fence.h error, while the new version builds successfully.

I suspect commit 9d2a04763e4f [1] is related, since it adds
HOSTARCH=$(KERNEL_ARCH) to the resolve_btfids build.

Could this be closed as fixed in 7.2.6-1? If the stable 6.12
packaging branch is still affected, would it be worth backporting
this change?

[1] 
https://salsa.debian.org/kernel-team/linux/-/commit/9d2a04763e4fa81562b090cab0cc0eb3cba40e41

                                            - Troy

Reply via email to