On Mon, Nov 17, 2025 at 06:00:55PM +0100, Max Krummenacher wrote:
Hi Sasha
On Mon, Nov 17, 2025 at 5:27 PM Sasha Levin sashal@kernel.org wrote:
On Mon, Nov 17, 2025 at 05:00:39PM +0100, Max Krummenacher wrote:
Hi
Our CI found a regression when cross-compiling perf from the 6.1.159-rc1 sources in a yocto setup for a arm64 based machine.
In file included from .../tools/include/linux/bitmap.h:6, from util/pmu.h:5, from builtin-list.c:14: .../tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h 14 | #error Inconsistent word size. Check asm/bitsperlong.h | ^~~~~
I could reproduce this as follows in a simpler setup:
git clone -b linux-6.1.y https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git cd linux-stable-rc/ export ARCH=arm64 export CROSS_COMPILE=aarch64-none-linux-gnu- make defconfig make -j$(nproc) cd tools/perf make
Reverting commit 4d99bf5f8f74 ("tools bitmap: Add missing asm-generic/bitsperlong.h include") fixed the build in my setup however I think that the issue the commit addresses would then reappear, so I don't know what would be a good way forward.
Thanks for the report! I could reproduce this issue localy.
Could you please try cherry-picking commit 8386f58f8deda on top and seeing if it solves the issue and your CI passes?
Cherry-picking commit 8386f58f8deda makes both my local build in the linux source tree and the CI setup work as expected.
Thanks for the pointer and fix.
Great, I'll queue it up.
Thanks for reporting and testing!