Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp834384pxb; Thu, 17 Feb 2022 16:07:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRDCG8BYCw4NcpoVbw9uZLyqCXZSCVBD0uSp6AHjB7oL3PL8K72A/r0BDzcwzgLY7Rsr2f X-Received: by 2002:a17:902:8548:b0:14e:e968:9703 with SMTP id d8-20020a170902854800b0014ee9689703mr4980847plo.148.1645142869453; Thu, 17 Feb 2022 16:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645142869; cv=none; d=google.com; s=arc-20160816; b=W+zVtbtxkIMS1RQqIzBTR6fObVLJlh5zbG0Qz5OWukOs5kEZaxJBnbR8UpKKu6Lfpg U37zGtW49A9RTZ475YqZk00C5RT18PS9I150O073bDCYsHpj41oO6MmVrve586EGeEJe JhMm6wMaBAOxJE6phCL+X/MdLwnzfKaTxWbtULmFPDUgrhwyZ5LKpvV0LcUah7y3ZKhR 3BKLot7CJ1Y7ndDRKYPE3CwUz+/nazQfIoCmSznXWtKhpYWmsJosGk9SqoU8Yi6lHY1W jRxl/kAsjPNMvMJPaD0aQ1xIcTFhPgWs9J2SPKqVBQ/pT5K5jbC4uqvLEA9J2UdTpVTw LCmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vMCCs5X2EwhUfDC/TH9V7RnzKoVERhaa5uatnAHoEKA=; b=nXQIbJh7a2587etkgyW8mTt9E9MCWsfelWQYnkX7Oh3A4yUTFwloD6W5Rw5dyGmEuX U5Bi7JpwUIQN4uWc+1TZIZBGShwf4+X0usZ7FWAFg/S0czx7aXFDLkeMfTHgyxE+b/5z 3ZsrxulTryBY94mik+SKiPAux9MCIW0zRtE5eR/GyNEwWz/XfqyCMEKKSAmT7Uxy5yF5 wsayjJ9zcD7FQR7dQmnMp5qVGgJkZfhRowRclt0BzKOnuQDFEyEw3gzQMzsEg0Cdgh64 7FYo8pa8UpECOdcqgUAPBEQqdx9jkkdY3IHH25pbkBZ591z6hBUnbwPQAC3vx6U7NRD+ sSEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l6si26772491pls.571.2022.02.17.16.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:07:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C3F952DE7BB; Thu, 17 Feb 2022 15:34:09 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239988AbiBQNmA (ORCPT + 99 others); Thu, 17 Feb 2022 08:42:00 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241160AbiBQNl6 (ORCPT ); Thu, 17 Feb 2022 08:41:58 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27C9C21A2 for ; Thu, 17 Feb 2022 05:41:30 -0800 (PST) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <797f79cb-3b9b-e8b1-b2c3-5f9aba270ae7@gmx.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.