Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp307897ybe; Tue, 3 Sep 2019 23:22:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqypii95Rgcf7r5EclvEMbkd5Dv4XdT3plluKmlKxtig/l16ej3P/9Fj3F3p5rGaoNvojEZ7 X-Received: by 2002:a17:902:7483:: with SMTP id h3mr35783713pll.163.1567578123822; Tue, 03 Sep 2019 23:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567578123; cv=none; d=google.com; s=arc-20160816; b=BtLlECnWg5Qop+gLPZis7AWkxQLmDp1i8Dps1Y1PJLcyt78bA30E8off0kn2ywoi1i XxxwCmJyE4PiygPk7R+bQ3QvfrdepY7wxVRaLLUzmBfDzwqQ9D6Ns9WOoL8gM8i3PoZE T58fHm4pfOVfUZ2AxBwtsl2UxqOwSqnFFSVQZN0uDU8yV7RHgm1YHKwjQSq5L3vURo0D EMqZI3dHtQQFn9nvs/1+0ww8kgAJZSH5uDvRMDdhnKFqt8gUbEejbbgsoStE61cVg3J4 SOKUopHphK6BNcNGbOJTv6jCeJYKQWFevaRIaUyx+CYsvLN59H9u+sdDy95m+lV6zbdh y+Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=KcfNyd0d6qNZe5po5Im8NYxMh43Vdsb11cvHEmcz+PU=; b=NbI0agVV6pwk0kDHX8KYHBdARYmVECuMeuJ0hzSVJET8VPRQLznABjTGwo1l3dc912 bKpnxo2G9hI1PMvE+QaHTZklJJNbhWgrsF879wa7bWw4BDjqHMNEv2zkhP/N7+imi1ZJ S4mm72JO0kNITA5yNGitpEPh2L4i6PdcNKmxcTYzXzYa418KNtLLGCky06N3yqWmMDwf mHfbrspbnSitEahDRQqLeq7pP5XfBxf8na6vYAghIaMFbh2vR5Ei6FomU17GUUbWDPMC VK7AFeSeYV8T3rB2TZvJA9JSrsYwAhctvKZml1k8X8DMHegRIBW1I+MUnxKSlbpxBjtl Kn2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=NFYOBONJ; 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 16si2214360pfw.253.2019.09.03.23.21.48; Tue, 03 Sep 2019 23:22:03 -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=@nifty.com header.s=dec2015msa header.b=NFYOBONJ; 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 S1728724AbfIDGTm (ORCPT + 99 others); Wed, 4 Sep 2019 02:19:42 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:55575 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfIDGTl (ORCPT ); Wed, 4 Sep 2019 02:19:41 -0400 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x846JWTl031934; Wed, 4 Sep 2019 15:19:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x846JWTl031934 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567577973; bh=KcfNyd0d6qNZe5po5Im8NYxMh43Vdsb11cvHEmcz+PU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NFYOBONJGnDm89krh6tmh/c8NV0RUljxr598tyzlAbpSSOaVDb87+GVW4MsSfaON6 S4QKPqIosZT1KHKY8MdVlNwS55LxMR4DCI90fCS0H5aarqAFr0yAmBST3cp9kY9eHb Xa3g6vPXnjryY96J0APPuerVKK1/HpwmCHvAJteKQb6SkTfFVRmYe24DG5K3lyDNhN 9/vTU0ppedz8raShu8Klo827RW2HKq98AZSReapijmt+7sXBRm9Pn4+aaCVYStEh88 TCVcGZYg+2emGCBdK24mzGhgjQeWKeJUo3GSIb7h3f5Al12Na2feckj29W9/6+ScKH fZaxPHjZLqSaw== X-Nifty-SrcIP: [209.85.222.46] Received: by mail-ua1-f46.google.com with SMTP id w16so561374uap.9; Tue, 03 Sep 2019 23:19:32 -0700 (PDT) X-Gm-Message-State: APjAAAVpRN4eZF+ZbilvY3pw16/WlpqiL48VzgqOeZc421+9uaaJV9Nd ej0kqy3jBnZ7+s6Yx53neFMs47WPFDdP5Vd6Sz0= X-Received: by 2002:ab0:32d8:: with SMTP id f24mr18756941uao.121.1567577971564; Tue, 03 Sep 2019 23:19:31 -0700 (PDT) MIME-Version: 1.0 References: <20190904160021.72d104f1@canb.auug.org.au> In-Reply-To: <20190904160021.72d104f1@canb.auug.org.au> From: Masahiro Yamada Date: Wed, 4 Sep 2019 15:18:55 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: build failure after merge of the net-next tree To: Stephen Rothwell Cc: David Miller , Networking , Linux Next Mailing List , Linux Kernel Mailing List , Andrii Nakryiko , Daniel Borkmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 4, 2019 at 3:00 PM Stephen Rothwell wrote: > > Hi all, > > After merging the net-next tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > scripts/link-vmlinux.sh: 74: Bad substitution > > Caused by commit > > 341dfcf8d78e ("btf: expose BTF info through sysfs") > > interacting with commit > > 1267f9d3047d ("kbuild: add $(BASH) to run scripts with bash-extension") > > from the kbuild tree. I knew that they were using bash-extension in the #!/bin/sh script. :-D In fact, I wrote my patch in order to break their code and make btf people realize that they were doing wrong. > The change in the net-next tree turned link-vmlinux.sh into a bash script > (I think). > > I have applied the following patch for today: But, this is a temporary fix only for linux-next. scripts/link-vmlinux.sh does not need to use the bash-extension ${@:2} in the first place. I hope btf people will write the correct code. Thanks. > From: Stephen Rothwell > Date: Wed, 4 Sep 2019 15:43:41 +1000 > Subject: [PATCH] link-vmlinux.sh is now a bash script > > Signed-off-by: Stephen Rothwell > --- > Makefile | 4 ++-- > scripts/link-vmlinux.sh | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/Makefile b/Makefile > index ac97fb282d99..523d12c5cebe 100644 > --- a/Makefile > +++ b/Makefile > @@ -1087,7 +1087,7 @@ ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink) > > # Final link of vmlinux with optional arch pass after final link > cmd_link-vmlinux = \ > - $(CONFIG_SHELL) $< $(LD) $(KBUILD_LDFLAGS) $(LDFLAGS_vmlinux) ; \ > + $(BASH) $< $(LD) $(KBUILD_LDFLAGS) $(LDFLAGS_vmlinux) ; \ > $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) > > vmlinux: scripts/link-vmlinux.sh autoksyms_recursive $(vmlinux-deps) FORCE > @@ -1403,7 +1403,7 @@ clean: rm-files := $(CLEAN_FILES) > PHONY += archclean vmlinuxclean > > vmlinuxclean: > - $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean > + $(Q)$(BASH) $(srctree)/scripts/link-vmlinux.sh clean > $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean) > > clean: archclean vmlinuxclean > diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh > index f7edb75f9806..ea1f8673869d 100755 > --- a/scripts/link-vmlinux.sh > +++ b/scripts/link-vmlinux.sh > @@ -1,4 +1,4 @@ > -#!/bin/sh > +#!/bin/bash > # SPDX-License-Identifier: GPL-2.0 > # > # link vmlinux > -- > 2.23.0.rc1 > > -- > Cheers, > Stephen Rothwell -- Best Regards Masahiro Yamada