From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D80CFC4332F for ; Wed, 14 Dec 2022 20:10:23 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4NXRLQ1cGGz3f5W for ; Thu, 15 Dec 2022 07:10:22 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.crashing.org (client-ip=63.228.1.57; helo=gate.crashing.org; envelope-from=segher@kernel.crashing.org; receiver=) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lists.ozlabs.org (Postfix) with ESMTP id 4NXRKj3DZHz3bZk for ; Thu, 15 Dec 2022 07:09:44 +1100 (AEDT) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 2BEK8gVw016969; Wed, 14 Dec 2022 14:08:42 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 2BEK8gVq016968; Wed, 14 Dec 2022 14:08:42 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 14 Dec 2022 14:08:42 -0600 From: Segher Boessenkool To: Jan-Benedict Glaw Subject: Re: Mass-building defconfigs: many fail with assembler errors Message-ID: <20221214200842.GP25951@gate.crashing.org> References: <20221212215117.aa7255t7qd6yefk4@lug-owl.de> <20221213002613.GG25951@gate.crashing.org> <20221213100045.xebrbdcniwpopbnq@lug-owl.de> <20221214090025.f3k3juinxfhhnr6u@lug-owl.de> <20221214183632.reqfqdhtatog2vmu@lug-owl.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214183632.reqfqdhtatog2vmu@lug-owl.de> User-Agent: Mutt/1.4.2.3i X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi! On Wed, Dec 14, 2022 at 07:36:32PM +0100, Jan-Benedict Glaw wrote: > So we have these remaining build issues: > > linux-powerpc-cell_defconfig bad asm (arch/powerpc/boot/pseries-head.S) > linux-powerpc-mvme5100_defconfig bad asm (arch/powerpc/kernel/epapr_hcalls.S) > linux-powerpc-asp8347_defconfig bad asm (arch/powerpc/kernel/pmc.c) > linux-powerpc-ppc6xx_defconfig bad asm (arch/powerpc/kernel/pmc.c) > linux-powerpc-ppc64e_defconfig bad asm (arch/powerpc/kernel/vdso/gettimeofday.S) > linux-powerpc-corenet64_smp_defconfig bad asm (arch/powerpc/kernel/vdso/gettimeofday.S) > > I do *not* have CROSS32_COMPILE=... set for my builds. Maybe that > could cure at least the issues within the ./boot and ./kernel/vdso > directories? I never set that, -m32 does the trick, every powerpc compiler is biarch :-) > Let's try that... But I guess that won't help for the > other two remaining files (arch/powerpc/kernel/{epapr_hcalls.S,pmc.c). Not likely no. Can you show the error of those again? > linux-powerpc-pseries_defconfig sstep (out of array bounds) > linux-powerpc-powernv_defconfig sstep > linux-powerpc-ppc64_defconfig sstep > linux-powerpc-pseries_le_defconfig sstep > linux-powerpc-ppc64le_defconfig sstep > linux-powerpc-ppc64le_guest_defconfig sstep > linux-powerpc-ppc64_guest_defconfig sstep > linux-powerpc-powernv_be_defconfig sstep > > My first guess on these is that it's a wrong warning. The union's > `u8 b[2 * sizeof(double)]` seems to be large enough. A false positive, yes. Which is *not* wrong. What is wrong is using -Werror in any unknown environment. I have a stack of patches I use for all my kernel builds, and half of those are eradicating harmful -Werror instances. > linux-powerpc-akebono_defconfig ahci (BUILD_BUG_ON failed: sizeof(_s) > sizeof(long)) > linux-powerpc-xes_mpc85xx_defconfig ahci > linux-powerpc-ge_imp3a_defconfig ahci > linux-powerpc-mpc85xx_defconfig ahci > linux-powerpc-mpc85xx_smp_defconfig ahci > linux-powerpc-corenet32_smp_defconfig ahci > linux-powerpc-mpc86xx_defconfig ahci > linux-powerpc-mpc86xx_smp_defconfig ahci > > I've seen the AHCI issue on other (non-powerpc) builds as well, > haven't looked into this so I won't guess about whether this is a real > bug or a compiler issue. It is a real bug afaics. Segher