Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp734320ybj; Tue, 5 May 2020 06:53:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJMK5hyowuXq+IgosTCNmH8+WID+9Id9Keh6u9pNYOH5AIaLORfH6an/v/zqlK5Lm23r10G X-Received: by 2002:a17:906:b2c2:: with SMTP id cf2mr2687130ejb.262.1588686783563; Tue, 05 May 2020 06:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588686783; cv=none; d=google.com; s=arc-20160816; b=HKyNHty3wXg5t8fZztPhqrF5yX4+zVQBoF2thjQcrRuj4pBeX8LCCN0lI30epzDSvi NtN8I7sVc7Ma2a1ci8EgJTHqguWVQe+us+UBCOolRX3ZGsXk6lFngrMjAbOYrYRWilx1 hAyeGemb4danGHmV31I8/T2UK0sptAIq9WTkS8gplv9qFbs2D21J1Y2fDZxqJYc4B9u9 1spz+rtYvuwT3QH9SY62V8vSTVbp1VkfstaLZzigLL/Ah5fi0XNq/DaBdV3tc/8Fiw0a QDdON0Jk7zMje09vA5t75F5SozJkpuz525W4F2QRkOS1qnnAscaSEz3ooyAKSBlQeJVr fCxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=RqbdOvb0Fv9kpXOmP7eSrKstU2BozR/qEJZXkWwq6hw=; b=wRryS3/JHlehObh8D/fw0Vj5mUwoLT1opX8zPkr+qLX9POuScf0lPzM5hl54o57+Fo icffXfVNP4qyBiFnvdXqTMfTuhlelJ9tk0Ae4GMniJPv+Vo4mVSi9SHshCjqUan2SgkR Tk5u56L7Tadq3wUzvRtej+NP3gERxQj4EFS4l3WeIqVJM/Y1UM462k4gXcv1Hd2gmvMD PO4CsCyyoNQvrLsEM6MkxC+sVX2Tkrq3ViGoFhsfy4yjkG+BTzXkErvWwxk4VNvprDoC XdsOvsIROmn8twzo4fX3oRLpcs984hE6A9AvMoWHod9IEk2phrols9dYS9o56pikDbAF aBAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=KZyNHydN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p25si1172770eji.408.2020.05.05.06.52.40; Tue, 05 May 2020 06:53:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=KZyNHydN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729065AbgEENvQ (ORCPT + 99 others); Tue, 5 May 2020 09:51:16 -0400 Received: from ozlabs.org ([203.11.71.1]:53215 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728512AbgEENvP (ORCPT ); Tue, 5 May 2020 09:51:15 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49Gh2m6PfNz9sP7; Tue, 5 May 2020 23:51:12 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1588686673; bh=5CkKOVUVokCv024MIkwREMwys8odQ5q3YBvid1ysFyA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KZyNHydNPFL4k4SUu0Q55R5VfRyP86hefH3T8UE+z5+SeGJhfmewbmNqkE/wNDyg7 gbW0tCAdH0C0/9v8azV+BbS5YmAZZxINF60wEBHFlBS9TPTRqInTG8d6kGaqMLoSr5 QdjGlboAaG/Hbh/QfAv2xttdOptlaW1gX8ZFadoZoKM1+az+qq6J+CuVQXPQWpyE8O 9Ud4pUqqy25KoLk+FV7qOf7OOqqwlZG2jvhaF8mRT8f7m/DDlLrTlbjkkxCC52pNHn 0NxuegEpzmcy8DlKsPPpBkgjL45lUsxrDPfhla86drNkelndsz/apV+gOQPjR3YvV+ DbzrKtO5YXSLQ== From: Michael Ellerman To: Will Deacon , Geert Uytterhoeven Cc: Amit Daniel Kachhap , Linux ARM , Catalin Marinas , Vincenzo Frascino , Linux Kernel Mailing List Subject: Re: [PATCH v2 1/2] init/kconfig: Add LD_VERSION Kconfig In-Reply-To: <20200504080651.GA2621@willie-the-truck> References: <1585568499-21585-1-git-send-email-amit.kachhap@arm.com> <20200504080651.GA2621@willie-the-truck> Date: Tue, 05 May 2020 23:51:27 +1000 Message-ID: <87v9lacwww.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Will Deacon writes: > On Mon, May 04, 2020 at 09:11:12AM +0200, Geert Uytterhoeven wrote: >> On Mon, Mar 30, 2020 at 1:42 PM Amit Daniel Kachhap >> wrote: >> > This option can be used in Kconfig files to compare the ld version >> > and enable/disable incompatible config options if required. >> > >> > This option is used in the subsequent patch along with GCC_VERSION to >> > filter out an incompatible feature. >> > >> > Signed-off-by: Amit Daniel Kachhap >> >> > --- a/init/Kconfig >> > +++ b/init/Kconfig >> > @@ -17,6 +17,10 @@ config GCC_VERSION >> > default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC >> > default 0 >> > >> > +config LD_VERSION >> > + int >> > + default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh) >> > + >> > config CC_IS_CLANG >> > def_bool $(success,$(CC) --version | head -n 1 | grep -q clang) >> >> .config: warning: symbol value '2.01827e+11' invalid for LD_VERSION >> >> Seen with the or32 compiler on kisskb, e.g. >> http://kisskb.ellerman.id.au/kisskb/buildresult/14226173/ > > Hmm. The binutils version there is '2.26.20160125', but I think > scripts/ld-version.sh is expecting that to be '2.26.0.20160125' as it would > then ignore the date suffix as of commit 0d61ed17dd30 ("ld-version: Drop > the 4th and 5th version components"). I updated the or32 compiler on kisskb to gcc 9.3.0, thanks to Arnd for building it. It has binutils 2.34. cheers