From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14F9C2550A4 for ; Mon, 17 Nov 2025 18:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763405982; cv=none; b=cSRkpybZ4m2P4INo8XHOAmgKZh9zdYKhY0+0ok4nSGQ3jfMJjQzYjMhr3vqrTDLMo7BMdTlFJOMWoAdD2X/+lUppOlYW8SRmuuigytq55N2veozINsUhdXej9j2EVCrMelZkuBIqQNMbz4fcb4lHVl2HB9LBfbQm6AvWpN9Q0S8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763405982; c=relaxed/simple; bh=ovGHTyh6FEdilTLhYvIvmWX52Bd8hxRE8L/+VkjnO5k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hU71Ou0nu9nRwkdNS9IWT63xVwQEjwL/yY6hm8VR7mksdITTvZXViqtsuibblap4Ioh+uvFJ1E4e1onIy1GoC+S+eCVoja+hV9uOGJYoesvNaRoPZNuD3x/LEAxru9FPQdjQTyXLN04cSXVtv/BxSU+F4qLVIk5sMlOUMY2HTPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gIazuP7Z; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gIazuP7Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91F6BC2BCB7; Mon, 17 Nov 2025 18:59:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763405980; bh=ovGHTyh6FEdilTLhYvIvmWX52Bd8hxRE8L/+VkjnO5k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gIazuP7ZsZRYAztL4gmDFxwm0cR/iH0dd5BnElpFkRmK1o+T6zO0q65vo3e/MrRKz SYD54sZwHPsXdn8qy3ZTxh9R0EfxA87utFdxkA3hkbcLBHQye/3ABdbdpp/M97ItTW kdKilB1oLTkUdUde16CD8N+yY6mHE8kqeEQNOUIhvTit2v+bsrLqWHhcSYQRsHsYjj uZplI5TYylpFEXCVoH82cGgcgcYaShbYH/wVCb7PNyKoaVYVKWdFiZ2ae1zCEn98lg T2WFkjtK7aIZpSMEIdbkSj3jNu5geqFvpqPdis/QA6x/gB20WQin1bQdwTyhKkKydN tzpFAJL3cV0VA== Date: Mon, 17 Nov 2025 13:59:38 -0500 From: Sasha Levin To: Max Krummenacher Cc: Max Krummenacher , Ian Rogers , Greg Kroah-Hartman , stable@vger.kernel.org Subject: Re: 6.1.159-rc1 regression on building perf Message-ID: References: Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 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! -- Thanks, Sasha