Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3447068ybz; Mon, 4 May 2020 03:11:31 -0700 (PDT) X-Google-Smtp-Source: APiQypIGzrqQZ3v7WnIEkSAbUjomzqXj9+agtfME9UMZ/n+iEHK8KlWavnFn0r8+KAKqUSc25aJ6 X-Received: by 2002:aa7:d306:: with SMTP id p6mr13564289edq.35.1588587091395; Mon, 04 May 2020 03:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588587091; cv=none; d=google.com; s=arc-20160816; b=aYBNNd398Oj4dLkNVaI4NjI34HVHY9sUhQWSI+GQK8RUXIs7bvB+sGXPfsC4fvbA/B nstnVQ/r+vfi8cnXxLHLlEK9eMHXi5wiXhG26UuGvij+jM8g0qMgVBgg/mXjghBiu8hd lz35HZxMzojLir0t4MeHp6J76F44YmdifRaSj0aklWS3eaL48UQH/qUq/BlhABBJFuzW ECzt3is+h3NN7r6XU9Sfu/wfjX8LfmSnMND4Z8bfm+jYYtjSTnWIaYRyff//5Q58z7/d enU6DI33cqIvMy+YJapmQvlx0ydFW/D0kDiXBzOTYBZY0s0GTO8D1YSi7EYAI56fpzfh 6hvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d/hYdPvB8olM8xf+kLKZYp6t7Ac6IDsr+UJQ/eAvBHk=; b=UTF3LdTrv/gghoFm0UKTLnIWlRMxWqTgjm75E+tmTv3E4trgFWj9/6GHXrzdQNQdrH BI8gFiYK4GzBjNkLRM1MzBp9RA7oBrVI2irPFjoh2g9NP62Rd672aQc+nQDWYIJqUFDl KNl/kyXJ8t0FmMte3UvdVFPpUCIccvp7VdS4ER0moNrcUIxjsVdE1QPAxIOgOcBhVNHh Z8lwfYEHsReUII+AYqD+lFnM4Mn84TUMpXUJL1dbaO8TzFUn6JkKzRG84DioM0z2qghH 9grksdObXuwAnKL8bUgv6/+ZfKMC2ibU2XnylPeV/xd/o02mqe3CMibGFBglxxDeJEJE 7pTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jb1at5d1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si6077270edl.600.2020.05.04.03.11.08; Mon, 04 May 2020 03:11:31 -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=@kernel.org header.s=default header.b=jb1at5d1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728176AbgEDIG5 (ORCPT + 99 others); Mon, 4 May 2020 04:06:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:45194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728037AbgEDIG5 (ORCPT ); Mon, 4 May 2020 04:06:57 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5D2C820643; Mon, 4 May 2020 08:06:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588579616; bh=KgviiHqJtQABngYsmhCiq91FZpqHvsAXcKF9Kb/EwCM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jb1at5d1Qv8MMYWePegEsCXL7rZtgdRj05fhGJtZaZmRZYIIspbjIMPHtedVpdygU HQQ1kD02SGdgoVMXAEmzPqc7U07gVYZs+t7JIYVm8iQmz9kD7yUwn+cSfFRCcKR8at JkElzRrlbPloa/HIxhpbkzKevFMpvXXi3UNuVsX4= Date: Mon, 4 May 2020 09:06:51 +0100 From: Will Deacon To: Geert Uytterhoeven Cc: Amit Daniel Kachhap , Linux ARM , Catalin Marinas , Vincenzo Frascino , Linux Kernel Mailing List , Michael Ellerman Subject: Re: [PATCH v2 1/2] init/kconfig: Add LD_VERSION Kconfig Message-ID: <20200504080651.GA2621@willie-the-truck> References: <1585568499-21585-1-git-send-email-amit.kachhap@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"). On a 32-bit host architecture, the awk expression ends up printing the version using exponential notation, but even on a 64-bit arch the number would still be bogus. Will