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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 00EEBC433FE for ; Thu, 17 Feb 2022 13:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=audVzvpmOYKBLxq60t4Ul9gourS8e0/maS/whv/YGcE=; b=lQzqOzH4BzN0np TDoW4gn2L1/xIryNlJo+GilT7avju4PXcIF/l43JOSCykgm7SYwvM4RreeP9999r1mJ3GXWaYA/db 6/5O8StCra7/hazSaPALF4TynSl2fExoqSTEqJq6/+oHOPOw1MZ4kjdSDIvEHu1NTi+Eu9Skgp0ax kyEQjoa+SET7+67n1hLvOO+rlzZ0VmizsVHt1bscFzzdpk2imBqyc5oOWcE0P+OaZ37ZJTMonuoNR QwJAaTqS1NE2SZUALlDhSmX/RJPa/jk7XKc+Ui1py7LrKiu5syvvoiy2SUGR/AMmUPit11N2ckrij mkboYWMLISi92kbyritw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKh5v-00AiBK-MW; Thu, 17 Feb 2022 13:45:16 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKh2J-00Afu8-LF for linux-arm-kernel@lists.infradead.org; Thu, 17 Feb 2022 13:41:33 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 42F0812FC; Thu, 17 Feb 2022 05:41:30 -0800 (PST) Received: from lakrids (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 64E553F66F; Thu, 17 Feb 2022 05:41:29 -0800 (PST) Date: Thu, 17 Feb 2022 13:41:26 +0000 From: Mark Rutland To: Qu Wenruo Cc: Linux Kernel Mailing List , Nick Terrell , linux-arm-kernel@lists.infradead.org Subject: Re: v5.17-rc3 compile failure on aarch64 Message-ID: References: <85bfe02c-9432-c5b0-04e0-8096adf37b93@gmx.com> <797f79cb-3b9b-e8b1-b2c3-5f9aba270ae7@gmx.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <797f79cb-3b9b-e8b1-b2c3-5f9aba270ae7@gmx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220217_054131_785020_BBBDDE48 X-CRM114-Status: GOOD ( 28.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Feb 17, 2022 at 07:59:10PM +0800, Qu Wenruo wrote: > > > On 2022/2/17 19:50, Mark Rutland wrote: > > On Thu, Feb 17, 2022 at 04:37:49PM +0800, Qu Wenruo wrote: > > > Hi, > > > > Hi, > > > > [adding LAKML so other arm/arm64 folk can chime in] > > > > > Recently I found v5.17-rc3 kernel failed to compile on my aarch64 setup, > > > it failed with the following error messages: > > > > > > AR lib/zstd/built-in.a > > > LD [M] lib/zstd/zstd_compress.o > > > ld: __patchable_function_entries has both ordered > > > [`__patchable_function_entries' in lib/zstd/common/entropy_common.o] and > > > unordered [`__patchable_function_entries' in > > > lib/zstd/common/error_private.o] sections > > > ld: final link failed: bad value > > > make[2]: *** [scripts/Makefile.build:484: lib/zstd/zstd_compress.o] Error 1 > > > make[1]: *** [scripts/Makefile.build:550: lib/zstd] Error 2 > > > make: *** [Makefile:1831: lib] Error 2 > > > make: *** Waiting for unfinished jobs.... > > > > Uh-oh; that doesn't look good. > > > > In case this is configuration-dependent, could you share your .config? > > Sure, attached. Thanks! > > > But the same code base compiles fine inside my x86_64 VM. > > > > > > The aarch64 environment is an VM running on RockPro64 or RPI CM4. > > > > > > With a little older gcc (v10.2.0) and bintuils (2.35). > > > > Is this a custom-built toolchain, or one shipped by a distribution? > > Shipped by distro (ArchlinuxARM), native, no cross chain. > > And it's mostly upstream, or very lightly backported. > > > If possible, can you see if you can reproduce this with one of the > > kernel.org cross toolchains: > > > > https://mirrors.edge.kernel.org/pub/tools/crosstool/ > > > > ... because if you can, that will be much easier for someone else to > > reproduce and analyse. > > > > The closest builds are 9.3.0 and 10.3.0, for both arm64 and x86_64. > > Sorry, not cross tool chain but native toolchain. I understood that; the page has builds for arm64 hosts. :) > > FWIW, I had a go building v5.17-rc3 defconfig with ftrace and zstd bits > > eanbled with both GCC 9.3.0 and GCC 10.3.0, and I could not reproduce > > the problem. > > After the incident, I tried the following things, and got it solved: > > - Upgrade to gcc 11.1.0 and binutils 2.36.1 > The same kernel base, no "make clean" > > And got the same error. > > - "make clean" for the kernel and recompile > Now the failure is gone. > > Thus I guess it's mostly some old .o is being re-used... > > Sorry for the inconvenience, I should just re-compile (even it's super > time-consuming) before reporting... No worries; thanks for confirming! Thanks, Mark. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel