Received: by 10.192.165.156 with SMTP id m28csp38750imm; Wed, 18 Apr 2018 16:54:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/p9oOuwfjsh0U6LTEi+tvpwOrQgSNbyObYc+Ln9vOcRUGDlx4QA1gkmfQX7XfHFJhX68m5 X-Received: by 2002:a17:902:8546:: with SMTP id d6-v6mr4016167plo.106.1524095695414; Wed, 18 Apr 2018 16:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524095695; cv=none; d=google.com; s=arc-20160816; b=vKWzkUtWJflqDNlDdM3HffpsXRDUjQ62gmDQ86cUQ79uePw9ZLqw+k2HltSZcB//jV cq0FtOzKNB0abq0o4OAicmtAxr5lSTRQFPkM3oKU6mVMRnCsVyydiaEBaMzBVJDTn2lN a/Yi52wwAYQK+v6cOo+NIyaXpjM0dBS5yR6m6ob6vIqIIVkmjc9QzCje5mNhuaUmo10+ PaqqQDbHeN1YKIVSJhAuZmSuNzIfmTfmTzI2oAgOxQTzPXM0e3DcodU0phk5qIaXWrfY UEGJC1WNucTbSWuIOrdxfTrI4zFnxvCpWq2A2zJCTDBlt2irmqTw11msK+iBHfi/SIUw DoaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=kS0ZxI4+1YPZFCmi2yAH012ovedARgu01fW5WWRk5pg=; b=tyIpoHE45eazGrUayJ32E14CWcXzkjmJkSf570oZMumNGqcn/LArbbEIBWVhFbzUwp t08d95xsu2PFwhpM453BFr7yVEeVPV41C+P3APFWvs7jpfK5DEjctQtZ8I+XGqgP0llX 6gLVdPQE6keCuomZghOs5NK/4LQBQyMZr3n3kO2uZRhyPuQg5HMaKBLE3+LO1ffoC+KT 62uMf7kKBUMnoUSvqfRwHuHvCP0W9t2TW8/VCVfp9htEUMoAL8EMSpUl8rzbesOvtNT4 IUA8Wibh8LaN8eD0LPl9OA4KLOGlTIdAPuDpZBy7OAJKv/AfhEs8Mtp9gyACOyzaQmor 48ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=OEHOclc8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si1941856pgc.224.2018.04.18.16.54.40; Wed, 18 Apr 2018 16:54:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=OEHOclc8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752732AbeDRXx3 (ORCPT + 99 others); Wed, 18 Apr 2018 19:53:29 -0400 Received: from ozlabs.org ([203.11.71.1]:58411 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752499AbeDRXx1 (ORCPT ); Wed, 18 Apr 2018 19:53:27 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40RJps1FYHz9s1w; Thu, 19 Apr 2018 09:53:23 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1524095605; bh=4JHtrDmGC5sm5G/NCRNrcS8qCkhhGcA+mGs6nfGxJCM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OEHOclc8tIdIZjcIyGLFSQPqnB7JjEOdQJK0a5rS4ktD2jHEtHzZ9dpszXiaQWDT2 A7RP5hvF93pjR40Mpk7vFt5hiU0OsV4Z3/7weqiIReH5QRYos0GWGoHyiTOjC+jBWg Ssc5Z4twgelf4Qn+xvBxvX2CTDW6A285Di5JGMCDo2XfUe5UIwDiBE97k7NhD1H7es TzWDetL2uMG+tQ4NkLJRQH2clgeC0GyMdS3Op9/g55AsEr8kM2Y8Nqf/ZEay4phmXW k6tfRDlnV81NfgZ7kA4lZbNNqnirV7/gKpNUsR2pIYcUQzI3fCfw+xReoNfUbdEg2B CYimSkZlXFE3w== Date: Thu, 19 Apr 2018 09:51:55 +1000 From: Stephen Rothwell To: Russell King Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Michael Ellerman Subject: Re: linux-next: build failure after merge of the arm-current tree Message-ID: <20180419095155.194217f5@canb.auug.org.au> In-Reply-To: <20180418181722.GA7852@flint.armlinux.org.uk> References: <20180418133155.0931baf7@canb.auug.org.au> <20180418175442.GA7234@flint.armlinux.org.uk> <20180418181722.GA7852@flint.armlinux.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/4=PHvLC0GIfZzkMd5bMVCQB"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/4=PHvLC0GIfZzkMd5bMVCQB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Russell, On Wed, 18 Apr 2018 19:17:23 +0100 Russell King wrote: > > Hmm, I guess it's a result of: >=20 > # echo $(( )) > dash: 4: arithmetic expression: expecting primary: " " >=20 > which points to the sed expression producing no output. If that's the > case, then something else went wrong with the build earlier - there > should be no case where the built vmlinux does not contain the > __bss_start and __bss_stop symbols on ARM, since every kernel contains > a .bss section. >=20 > Olof's autobuilder shows no errors, but that could be because it's > using bash - I don't know. kernelci.org also shows no failures. >=20 > I think more information is needed to debug this, such as: >=20 > - does nm of the vmlinux contain the __bss_start and __bss_stop > symbols, and are they formatted as one would expect (iow, marked > as a global BSS symbol?) $ /opt/cross/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-lin= ux-gnueabi-nm vmlinux | grep __bss_st 008af260 A __bss_start 008b4394 A __bss_stop so, that's our problem. Note we are building with gcc 4.6.3 and binutils 2= .22 > - does the nm | sed pipeline produce the expected output when run > outside of everything else? > - does dash evaluate the output correctly outside of the makefile? so dash returns the above error for 'echo $(( ))' and bash returns '0' I had to actually symlink /bin/sh to dash to get it to fail - running with in dash and setting SHELL to /bin/dash was not sufficient. So under bash, we don't get an error, but we use 0 as the bss length :-( I will this patch to linux-next today: From: Stephen Rothwell Date: Thu, 19 Apr 2018 09:46:22 +1000 Subject: [PATCH] arm: check for A as well as B type sybols when calculating= BSS size older compilers produce those Fixes: 429f7a062e3b ("ARM: decompressor: fix BSS size calculation") Signed-off-by: Stephen Rothwell --- arch/arm/boot/compressed/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/M= akefile index b0354dfc7055..6a4e7341ecd3 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -118,8 +118,8 @@ asflags-y :=3D -DZIMAGE =20 # Supply kernel BSS size to the decompressor via a linker symbol. KBSS_SZ =3D $(shell echo $$(($$($(CROSS_COMPILE)nm $(obj)/../../../../vmli= nux | \ - sed -n -e 's/^\([^ ]*\) B __bss_start$$/-0x\1/p' \ - -e 's/^\([^ ]*\) B __bss_stop$$/+0x\1/p') )) ) + sed -n -e 's/^\([^ ]*\) [AB] __bss_start$$/-0x\1/p' \ + -e 's/^\([^ ]*\) [AB] __bss_stop$$/+0x\1/p') )) ) LDFLAGS_vmlinux =3D --defsym _kernel_bss_size=3D$(KBSS_SZ) # Supply ZRELADDR to the decompressor via a linker symbol. ifneq ($(CONFIG_AUTO_ZRELADDR),y) --=20 2.17.0 --=20 Cheers, Stephen Rothwell --Sig_/4=PHvLC0GIfZzkMd5bMVCQB Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlrX2hsACgkQAVBC80lX 0GzYsQf/WTxeJVKQ5E/6ivajKOTbEb0YqdDNG2WIxHRkkTcQzR9129g3k7WYTzfV atM0QnnJWhGFLxyHQyOVpph+9o+bjupmFPnf/xj5Ya0jCQCBVIP3DmAE2VBbAPBX B6vv1C6IaxomJbbTiudxW7HwLFHjJcjbjIDXTn+z7F0c2qF/fylNviqXaixkeqAS SY5pZcV0vOfZqCcUfXUOJdgkeDyOaFT0+fueAyx/9JvOeMG/92IFTjktHKstOTKy ViI01hN1ngTTGUybzBAnCyhricYoM8axox2MSockoOImSAIiEY1wlZO5sYegIFZH yZ4oybECkZySjsnFKEaKWTQxptnFcQ== =6DMN -----END PGP SIGNATURE----- --Sig_/4=PHvLC0GIfZzkMd5bMVCQB--