Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp29810ybb; Tue, 31 Mar 2020 16:23:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJiMhr8CEqI1mB5NaLotCPst2ckz7XokJXAVdYdrW/r6yU0sLpCMy6g8qrjG9bLSJT06TY6 X-Received: by 2002:aca:a98a:: with SMTP id s132mr969406oie.75.1585697018494; Tue, 31 Mar 2020 16:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585697018; cv=none; d=google.com; s=arc-20160816; b=M20SToqnNMQtmKyTw/DRkAMKG7LBvga+JTaS0yqG/5DDrRygxq/j6aPxX73spmM4uI 7OHYNLHMpjxQrt9P2yVCsgKAQiqwdfLQRg/IFvSWG0Di0tfcUrAPmJ53sDU7bPGK0GZl cBL+hluXvkVdi1dsYFnyvYtuZgyDl7Crh9PdeLvoeAgsGhvYdgzcC5/GJrFmKtGH1ynJ HKLL+joKN0LQO+PE1BvkUR1Q6n41dgUw8/jbrnz2xLGqg8PPmllweGq18Mtrlr1ntUSm hAgIa4UTc0M5VBnDRdUDxeKbxPlkgcCxv8abwUlpjGnboms0XI/M4xF5o5lbDJX0dEy8 tckA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DNZLvGPKS7ifGuavc6HxXaBrmBaYInXs47Z6xKmXacc=; b=ofE18b/E5YSZIQ9zQxxWTctue8ItBnHsZzU8mXYGZARgN3fZJyLZKBUU7ImzYppFB/ GswoLyYBAAulMssbWB0tK21f2x7by3PplTOTDqCLBERrZq7lKigHucF5z/eEutUHpd8z Mq56zp5CkGgCtjVrtUa2pVjBMEVr3hwkBeUD8+djK9L/9qfZPyoWOCu15nH7V7QM1Bhe UN+1h/aPCDjTNunpc++J1GS6EmPcHRGhPw551uRIvhXlN8O1M8nAAnPjdo7WoqPbx6GT A3vTD3lr8N7byZF65V3w2aym59pMQbIqWihiC9CiARyAAvxhbIOQ1nbjGXOQZ17ZDNh9 348w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VOIY9W9y; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g129si24373oob.1.2020.03.31.16.23.26; Tue, 31 Mar 2020 16:23:38 -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=@linaro.org header.s=google header.b=VOIY9W9y; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731427AbgCaXTN (ORCPT + 99 others); Tue, 31 Mar 2020 19:19:13 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40053 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731259AbgCaXTM (ORCPT ); Tue, 31 Mar 2020 19:19:12 -0400 Received: by mail-lj1-f196.google.com with SMTP id 19so23784509ljj.7 for ; Tue, 31 Mar 2020 16:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DNZLvGPKS7ifGuavc6HxXaBrmBaYInXs47Z6xKmXacc=; b=VOIY9W9yz7aKp8dPnogI0Y+SRXVPfbBixuGZxyza7lb4oloPNrQYB3RHynO7AIh3LS 1fv7jv3qUfyUt67cnhH5Ql1JTxuZHfpuZi6iueB3w0e+PKBfIg3FP2EFd2YbVEgdJBWF A/Dsu42vzRwa63ALNlmrOa1zpmk1EKCy5qbAGGBaW/TNdqYW3hLwyDjxM+6b5uPzARPA 20TDwJpuyiRXupt8Heso9aokoomFq+0knjX6E+1s7/ck2sZ1fLi752RZ6nXMaaZR/KSU 5hdmVJq46CEJIxbar0uPv5bznP7FdsoK3DQR1F1nWZvA4DM4YWJWWjd4I38PJE1EjooG 8tSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DNZLvGPKS7ifGuavc6HxXaBrmBaYInXs47Z6xKmXacc=; b=r1sTnOsKlC563e3hv+5fnrjdZPsvzR2P7hyCDl29dxhbmFqD1I41wKc8Zk+hVZ7Z0E In4egq8XkHYGQFmPYrN0MVH5NswQHEq/z2mytvVObTn32xbRfokcCIPUPN7BOqCte/iB wEDNC27jyRIfzOQPbOKiU9JNoHVQUrSvdSvX0Lg+DttD9O67hYpta4uoKFocAHXp9NNb s6bSnftf45IY5jqfcp18hIDvnUluu6NN9LbNPW8Pgek1jNVP+x08eroiLEPAdvuM+V4M kq5bBafS9YJMr2QomfPk+zCNj0ObZvyJRONB/27ZJHJIKrybCvRj8iv3kz/GAlrtuekG Imzw== X-Gm-Message-State: AGi0PuZhA6Ro9ekNF97hccipYFmcVU3JIRnIxgy39wrCkevxrej7/A0g nMoWL69Uo3ue9SpHRVcw8uTaUmXrxaXBcF8pumjcgv/WcNc= X-Received: by 2002:a2e:700e:: with SMTP id l14mr10496920ljc.51.1585696748342; Tue, 31 Mar 2020 16:19:08 -0700 (PDT) MIME-Version: 1.0 References: <20200331085308.098696461@linuxfoundation.org> <20200331192949.GN9917@kernel.org> In-Reply-To: <20200331192949.GN9917@kernel.org> From: =?UTF-8?B?RGFuaWVsIETDrWF6?= Date: Tue, 31 Mar 2020 17:18:57 -0600 Message-ID: Subject: Re: [PATCH 5.6 00/23] 5.6.1-rc1 review To: Arnaldo Carvalho de Melo Cc: Linus Torvalds , Naresh Kamboju , Greg Kroah-Hartman , open list , Andrew Morton , Guenter Roeck , Shuah Khan , patches@kernelci.org, Ben Hutchings , lkft-triage@lists.linaro.org, linux- stable Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On Tue, 31 Mar 2020 at 13:29, Arnaldo Carvalho de Melo wrote: > > Em Tue, Mar 31, 2020 at 11:20:37AM -0700, Linus Torvalds escreveu: > > On Tue, Mar 31, 2020 at 11:08 AM Naresh Kamboju > > wrote: > > > > > > Perf build broken on Linux next and mainline and now on stable-rc-5.6= branch. > > > > Strange. What is it that triggers the problem for you? It works fine > > here.. The error looks like some kind of command line quoting error, > > but I don't see the direct cause. > > > > Have you bisected the failure? Build failures should be particularly > > easy and quick to bisect. > > Naresh, can you try with the patch below? There was some back and forth > about a second patch in a series and this fell thru the cracks. I tried that patch, did not help. Bisection led to the expected merge, "perf-urgent-for-linus", so I went one by one and found this commit: a7ffd416d804 ("perf python: Fix clang detection when using CC=3Dclang-version"). Specifically, the line that fails is: cc_is_clang =3D b"clang version" in Popen([cc, "-v"], stderr=3DPIPE).stderr.readline() with: Traceback (most recent call last): File "util/setup.py", line 6, in cc_is_clang =3D b"clang version" in Popen([cc, "-v"], stderr=3DPIPE).stderr.readline() File "/oe/build/tmp/work/juno-linaro-linux/perf/1.0-r9/recipe-sysroot-n= ative/usr/lib/python2.7/subprocess.py", line 394, in __init__ errread, errwrite) File "/oe/build/tmp/work/juno-linaro-linux/perf/1.0-r9/recipe-sysroot-n= ative/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory There, the value for CC is "aarch64-linaro-linux-gcc --sysroot=3D/oe/build/tmp/work/juno-linaro-linux/perf/1.0-r9/recipe-sysroot= ". > And also, BTW, can you please send me instructions on how to get hold of > the toolchain you use to crossbuild perf, so that I can add it to my set > of test build containers? It's an OE build, so it's bound to take quite a bit of space. I'll try to get something dockerized so that it's easier to replicate. Thanks and greetings! Daniel D=C3=ADaz daniel.diaz@linaro.org > - Arnaldo > > --- > > From: He Zhe > > The $(CC) passed to arch_errno_names.sh may include a series of parameter= s > along with gcc itself. To avoid overwriting the following parameters of > arch_errno_names.sh and break the build like below, we just pick up the > first word of the $(CC). > > find: unknown predicate `-m64/arch' > x86_64-wrs-linux-gcc: warning: '-x c' after last input file has no effect > x86_64-wrs-linux-gcc: error: unrecognized command line option '-m64/inclu= de/uapi/asm-generic/errno.h' > x86_64-wrs-linux-gcc: fatal error: no input files > > Signed-off-by: He Zhe > --- > tools/perf/Makefile.perf | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf > index 3eda9d4..7114c11 100644 > --- a/tools/perf/Makefile.perf > +++ b/tools/perf/Makefile.perf > @@ -573,7 +573,7 @@ arch_errno_hdr_dir :=3D $(srctree)/tools > arch_errno_tbl :=3D $(srctree)/tools/perf/trace/beauty/arch_errno_names.= sh > > $(arch_errno_name_array): $(arch_errno_tbl) > - $(Q)$(SHELL) '$(arch_errno_tbl)' $(CC) $(arch_errno_hdr_dir) > $@ > + $(Q)$(SHELL) '$(arch_errno_tbl)' $(firstword $(CC)) $(arch_errno_= hdr_dir) > $@ > > sync_file_range_arrays :=3D $(beauty_outdir)/sync_file_range_arrays.c > sync_file_range_tbls :=3D $(srctree)/tools/perf/trace/beauty/sync_file_r= ange.sh > -- > 2.7.4 >