Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3508413imm; Tue, 17 Jul 2018 06:06:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpddkrPeFfryLvw7L9Q+xr+0UfPrXWW3/bbPOYw7ZK526n7w4msmY9aCkViiRXHzJbw7HPSd X-Received: by 2002:a63:1c13:: with SMTP id c19-v6mr1548149pgc.332.1531832796938; Tue, 17 Jul 2018 06:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531832796; cv=none; d=google.com; s=arc-20160816; b=NX+wBAX3LPmVgLIUdugox5u5AmnjUZEX3ehlYdzLKQLI1QF2cemCPXlj4kdB8Nu/q8 wh70DXJlZyoFMRBXBI8PQg5vjDJNtR2xqZtp8jOd+RGoZ4eHkDR1waEXQY+V9KzMPbpL Lblpj5IPyrVsFCcELZDU0vdSk//j/nCMZefkEFiq/WC7Io1iMRVZ7TudOsPtVP5OAVoF csJGkT1tKTYNlmi8g8rk9cfr08tJ44y//2E/QWXO/2nMqEJQY1XPLRbNtybxOViZ9G+1 xTePWy9Ws1nRZrHEn9rbDIdRWacjwgmod+Og5H+HuDB2iaer07BRoxhXTKgre8r8Vvvn 1jIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=hCzr5Fc1NkK14H05sX/7KhvSsgVtWNllE17bLsN/ZHU=; b=esjVWG7YTFnzp2aOutYzX8pYyvGgKGEce4QVT1oDM276+lvasgJRbkWYFyPGfKyOVr oiRST6LVapZfvtfvydIFOH9qpQN7mUv+los4JnYF/QVgdWhHI4WzN8T2CglYxwBqsOEV WpxiNm/XJbqktTW+lcnOEi8SwnbWeVoya/r7sXtcGkVHcO4ak8aBW83d+x9YVxFBRtK7 GZuCBWm3K8Wv+9f9OZD/b/50AvAYHVzaxiJEdipOXJg8sE6wDPIOSWuGK/RKKruJ9dVq dkUoJbrA2ALFzcvQh4JwXCbE1bO4WdC2V6R/3Ocr7HCOfoVkme5xdWAXbCwievm4zeAy RHyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=pKxTcUuM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2-v6si848669pfb.365.2018.07.17.06.06.21; Tue, 17 Jul 2018 06:06:36 -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=@yandex-team.ru header.s=default header.b=pKxTcUuM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731523AbeGQNiO (ORCPT + 99 others); Tue, 17 Jul 2018 09:38:14 -0400 Received: from forwardcorp1g.cmail.yandex.net ([87.250.241.190]:52697 "EHLO forwardcorp1g.cmail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729664AbeGQNiO (ORCPT ); Tue, 17 Jul 2018 09:38:14 -0400 X-Greylist: delayed 494 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Jul 2018 09:38:11 EDT Received: from smtpcorp1o.mail.yandex.net (smtpcorp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::30]) by forwardcorp1g.cmail.yandex.net (Yandex) with ESMTP id 2A85421787; Tue, 17 Jul 2018 15:57:22 +0300 (MSK) Received: from smtpcorp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtpcorp1o.mail.yandex.net (Yandex) with ESMTP id 2208F2440DFC; Tue, 17 Jul 2018 15:57:22 +0300 (MSK) Received: from dynamic-red.dhcp.yndx.net (dynamic-red.dhcp.yndx.net [2a02:6b8:0:40c:854c:7dcd:9203:76a5]) by smtpcorp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id yHIX3QnRFv-vL5eP9o4; Tue, 17 Jul 2018 15:57:22 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1531832242; bh=hCzr5Fc1NkK14H05sX/7KhvSsgVtWNllE17bLsN/ZHU=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=pKxTcUuMEV0jeN+YPI1nrRgBPJLXP58KzIt/zbXGlDn2RohK0l9wXeeTkf0U3a3E+ 3pTI6Rc5ZtEfpdvJ136Uk3P/LxfBlERlh5h1TsiNcV0X8kP5MfuNK7kq5eSpFYtJo/ pyupJLjtaha/TUSpjABZQzzewu2bODKR0QSDlZJA= Authentication-Results: smtpcorp1o.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Subject: Re: [PATCH 4.4 14/43] tools build: fix # escaping in .cmd files for future Make To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Randy Dunlap , Rasmus Villemoes , Paul Menzel , Masahiro Yamada References: <20180716073511.796555857@linuxfoundation.org> <20180716073513.350026232@linuxfoundation.org> From: Konstantin Khlebnikov Message-ID: Date: Tue, 17 Jul 2018 15:57:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180716073513.350026232@linuxfoundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit depends on commit 9564a8cf422d7b58f6e857e3546d346fa970191e "Kbuild: fix # escaping in .cmd files for future Make" which is missing in 4.4.141 this breaks compilation of tools/perf for me make -C tools/perf V=1 JOBS=24 WERROR=0 NO_GTK2=1 LDFLAGS=-static all make[1]: Entering directory `/tmp/buildd/linux-yandex-4.4.141/tools/perf' BUILD: Doing 'make -j24' parallel build Auto-detecting system features: ... dwarf: [ on ] ... dwarf_getlocations: [ OFF ] ... glibc: [ on ] ... gtk2: [ OFF ] ... libaudit: [ on ] ... libbfd: [ on ] ... libelf: [ on ] ... libnuma: [ on ] ... numa_num_possible_cpus: [ on ] ... libperl: [ OFF ] ... libpython: [ OFF ] ... libslang: [ on ] ... libunwind: [ on ] ... libdw-dwarf-unwind: [ OFF ] ... zlib: [ on ] ... lzma: [ on ] ... get_cpuid: [ on ] ... bpf: [ on ] config/Makefile:274: No libdw DWARF unwind found, Please install elfutils-devel/libdw-dev >= 0.158 and/or set LIBDW_DIR config/Makefile:282: Old libdw.h, finding variables at given 'perf probe' point will not work, install elfutils-devel/libdw-dev >= 0.157 config/Makefile:458: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev config/Makefile:501: No 'Python.h' (for Python 2.x support) was found: disables Python support - please install python-devel/python-dev $(:) make -C /tmp/buildd/linux-yandex-4.4.141/tools/build fixdep /bin/sh util/PERF-VERSION-GEN make -f /tmp/buildd/linux-yandex-4.4.141/tools/build/Makefile.build dir=. obj=fixdep . util/generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h .fixdep.o.cmd:1: *** missing separator. Stop. make[3]: *** [fixdep-in.o] Error 2 make[2]: *** [fixdep] Error 2 On 16.07.2018 10:36, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Paul Menzel > > commit 9feeb638cde083c737e295c0547f1b4f28e99583 upstream. > > In 2016 GNU Make made a backwards incompatible change to the way '#' > characters were handled in Makefiles when used inside functions or > macros: > > http://git.savannah.gnu.org/cgit/make.git/commit/?id=c6966b323811c37acedff05b57 > > Due to this change, when attempting to run `make prepare' I get a > spurious make syntax error: > > /home/earnest/linux/tools/objtool/.fixdep.o.cmd:1: *** missing separator. Stop. > > When inspecting `.fixdep.o.cmd' it includes two lines which use > unescaped comment characters at the top: > > \# cannot find fixdep (/home/earnest/linux/tools/objtool//fixdep) > \# using basic dep data > > This is because `tools/build/Build.include' prints these '\#' > characters: > > printf '\# cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ > printf '\# using basic dep data\n\n' >> $(dot-target).cmd; \ > > This completes commit 9564a8cf422d ("Kbuild: fix # escaping in .cmd files > for future Make"). > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=197847 > Cc: Randy Dunlap > Cc: Rasmus Villemoes > Cc: stable@vger.kernel.org > Signed-off-by: Paul Menzel > Signed-off-by: Masahiro Yamada > Signed-off-by: Greg Kroah-Hartman > > --- > tools/build/Build.include | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > --- a/tools/build/Build.include > +++ b/tools/build/Build.include > @@ -62,8 +62,8 @@ dep-cmd = $(if $(wildcard $(fixdep)), > $(fixdep) $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp; \ > rm -f $(depfile); \ > mv -f $(dot-target).tmp $(dot-target).cmd, \ > - printf '\# cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ > - printf '\# using basic dep data\n\n' >> $(dot-target).cmd; \ > + printf '$(pound) cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ > + printf '$(pound) using basic dep data\n\n' >> $(dot-target).cmd; \ > cat $(depfile) >> $(dot-target).cmd; \ > printf '%s\n' 'cmd_$@ := $(make-cmd)' >> $(dot-target).cmd) > > > >