Received: by 10.192.165.156 with SMTP id m28csp1543607imm; Wed, 18 Apr 2018 11:20:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ngI+YY7f0vo9YQnyxji1rYQ8gKCS+E9Fz0MEEQv2fYpZV9ZlDK9lyO/lMR3OPq4derPUE X-Received: by 10.99.0.4 with SMTP id 4mr2523551pga.107.1524075615145; Wed, 18 Apr 2018 11:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524075615; cv=none; d=google.com; s=arc-20160816; b=ZrA0F50yrBR6Q3AsoBaxeytcHr+XwexWF/kEjGLQOcfaip+17m9sJQdkVjX4jxumuF Y7D4aV1K99fT3MQWR+iba+imNg1W9+c/u6PHqXZD2kZoUgV+v6vojwAXVdOGkIraZrWk QArhCRfDPN0l+w/54S1WCNHUYgAcLnaSvoxarfZWjwyoJXzjM3z64ewviF1dGbXM6kDM nxq4VL0ZvtRwWubQI6+78z8fhEyS1kTvsta97XDhaDUxi3rQc2idCo5AnlrVM4sGz4sQ oi06eaAgWh1h3qZmN7HM+TvKuVBTjoiqCxRtkZq0LbgcpApnmkKm0rbBzVncmcwUc3is 0GWg== 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:arc-authentication-results; bh=tAy/fcmQ0I2yUJBVqbGNF2ce6ghaDO95X69xa93G8a8=; b=qe6cP6tFP2E/BHnEP833psZ1HRCSb6r3EDQ3IlVScqVZl7IHif6Le1cAk96CN9ZL36 DU/BDMpHvSmEpKIvPrRrqX4QrDiR6ZGrkAdVfVkt4pRZd2lNaIXhyr7tBPgvj5s8ihNg f2+QVpUtjFepsPFNjlPci3p/K1b3q0tb5syBlUjnBckk8S5j6NM4p3hpp8yuAkrL80Je 7Jx5G9FFIC8JhuVWH6PB0hV56YpjsjC5XQPoLZOQA1SzvSz5D4+oS7OFa8HQaaiFR3sK 4zho8alo5PEAzJK6GmB3byBV0w6K7MN9o8bpNabv3KY3dJkxLsVBDJvAbuNSW/CMU0hm AeFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=dmoFDrvk; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e127si1555547pfc.315.2018.04.18.11.20.01; Wed, 18 Apr 2018 11:20:15 -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=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=dmoFDrvk; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752848AbeDRSRi (ORCPT + 99 others); Wed, 18 Apr 2018 14:17:38 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:46160 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752705AbeDRSRe (ORCPT ); Wed, 18 Apr 2018 14:17:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tAy/fcmQ0I2yUJBVqbGNF2ce6ghaDO95X69xa93G8a8=; b=dmoFDrvkPtWnRAOTdx5U2Cqo5 4DB2xqnMR5gYMvQYLPO7DFpAoh3AMwLogcBMXthOaBd6fmXwx2NsUuphG7FtcFqJGpzPEzRJuHd3N cSrGzDZEDUAB0l/HzZ5AedNBhzaGzIG33CgiHzt0nRRI1vfVkpVZfxpCOcvv/Qr8rA3ZI=; Received: from flint.armlinux.org.uk ([2001:4d48:ad52:3201:201:2ff:fe14:8fad]:38086) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1f8re6-0003Xg-1i; Wed, 18 Apr 2018 19:17:30 +0100 Received: from rmk by flint.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1f8re1-00026B-P0; Wed, 18 Apr 2018 19:17:25 +0100 Date: Wed, 18 Apr 2018 19:17:23 +0100 From: Russell King To: Stephen Rothwell 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: <20180418181722.GA7852@flint.armlinux.org.uk> References: <20180418133155.0931baf7@canb.auug.org.au> <20180418175442.GA7234@flint.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180418175442.GA7234@flint.armlinux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 18, 2018 at 06:54:42PM +0100, Russell King wrote: > On Wed, Apr 18, 2018 at 01:31:55PM +1000, Stephen Rothwell wrote: > > Hi Russell, > > > > After merging the arm-current tree, today's linux-next build > > (lots of configs) failed like this: > > > > /bin/sh: 1: arithmetic expression: expecting primary: " " > > (lots of these) > > > > Caused by commit > > > > fe680ca02c1e ("ARM: replace unnecessary perl with sed and the shell $(( )) operator") > > > > (pointed out by Michael Ellerman) > > > > Our /bin/sh is dash not bash ... > > I tested this on 32-bit ARM with dash: > > foo# dash > # echo $(($(nm /boot/vmlinux-4.16.0+ | sed -n -e 's/^\([^ ]*\) B __bss_start$/-0x\1/p' -e 's/^\([^ ]*\) B __bss_stop$/+0x\1/p') )) > 6409680 > # > > Any clues what '/bin/sh: 1: arithmetic expression: expecting primary: " "' > actually means in reality? > > I don't see why you should end up with lots of them either, unless maybe > the sed expression isn't working for you. > > The sed expression should end up producing output such as: > > -0xc09138c4 > +0xc0f30694 > > and that's it, two values, one preceded by a + and the other by a -. Hmm, I guess it's a result of: # echo $(( )) dash: 4: arithmetic expression: expecting primary: " " 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. 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. I think more information is needed to debug this, such as: - 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?) - 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? As I'm not currently aware of a failing environment that I have access to, I'm not able to debug this myself, sorry. -- Russell King ARM architecture Linux Kernel maintainer