Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp554814pxf; Wed, 17 Mar 2021 10:22:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrpb+2c+Lfx/Q0p8fbZE0udC5bPXn35Di5BTLlnX2ucA+5QVlikXUX4OrJcwuS7xTT/8S8 X-Received: by 2002:a17:907:9862:: with SMTP id ko2mr35659051ejc.222.1616001734542; Wed, 17 Mar 2021 10:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616001734; cv=none; d=google.com; s=arc-20160816; b=DbsemTn0WC3M2ZpH9eQTZqhSXtTaa+5xAdyXNkIUmfMK3Df+kXKx/T5GSO6ft4R4C/ 1zb685XuVgKY9wF5nmssaCUYd35Rghds8OeiIJ/mPzqgKCdf1iMkCBZ1KLTP4s806vQ6 kyZMtHfC9NZPy5AXB6O/CrMnJfg4ERi5U15mUxFoCRTDugpkLBxVdxlnLGh+XGAiLF3V Se69tDhlp+JrWcMrxlL55XLZVxaPyyfO4zVcnnFLJYIgDGcCXbI9gGf4V7qOXoNRlFz+ c29hDDgCHU2PMxk+4CEnoMH6b7n3bQEGubDMZDsXhuGQCzf5KBTB/ieE54JHZ8myySpk Epdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gSloqn/zPcb4my2AQhUlcF6toHtAZsAY6i+CcPAxeT0=; b=uBqACUCzI9F4zi/2TYRSzzY3tbZ33t7D+hzrGGcGlmI0gnkaQ56CjzPyHUayKoBXjD S+u1fOetJY6sVBQhgFI/aHBk1Nji1MHV7VrEqqICnJoEw/sp488upzGwtfv+kZIVBlGT WH/4UffwcY8MTx2oOw3pwz7rar80lSIpfp2gqF2w43OaTcEPB5iHB7dURi+e/LjS4gxk xe65YX86yKfO+4N3K0u+Rw2sww/g3102TYtIb+2haw4DK44q8Nrep6gR+gjfAatw76pq ilL9xY3IpejwgIaG1tNutVF0fI0N1U+CN/UYD6Yip2NFgFQ9WtrNFNHLeRjseVMkQyVg iHXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iId9NZei; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs37si4823272ejc.198.2021.03.17.10.21.50; Wed, 17 Mar 2021 10:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iId9NZei; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232316AbhCQQWk (ORCPT + 99 others); Wed, 17 Mar 2021 12:22:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbhCQQW2 (ORCPT ); Wed, 17 Mar 2021 12:22:28 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FE1CC06174A for ; Wed, 17 Mar 2021 09:22:28 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id y133so2651324ybe.12 for ; Wed, 17 Mar 2021 09:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gSloqn/zPcb4my2AQhUlcF6toHtAZsAY6i+CcPAxeT0=; b=iId9NZeiIVnUAr1BvdTvUnpyUEVZfJ/+4+x+3ugboCmh7R6o/KzWC2YlYXMhIZWKx/ qhepSJ9VyzQBQ2WrwLPSsdlYPHlpN5OFCK7/OKPLKmoC9BJC+9id1IDrBOS7i3f+Wu7G Fkfyk4TeDuVUPmxcPz0d2TovbVyIUO71WC8UXItQnzIVn+qYg8f9xNyLNkCGgC3yniDA DF7js65BSPGbi3DVFeJTHiZWzGUO8JEWXvS8J3VS+mdo6EB1Hzyya6UWmkpsrDXTP+xG umysdZWdfQiwxBiXgfXolNYMba0uIVB3mdxe8cE5lno/Jyizy9d+1pzveNguohhAeIOT ROmw== 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=gSloqn/zPcb4my2AQhUlcF6toHtAZsAY6i+CcPAxeT0=; b=UjMZVOi0NJ09DjC18uoqHimVfhC5w38IKl6YTuJm4XqPePaK+rYErxXtK6+ty0GLlV IZ4Rk74SVccA1RtkN3GljfsyMo5rrHQ/yiscm56vHfTSybFcKG3ZBjSQkeIu7ZV79ZJQ ga1oRdb+YH6RKz0EAk2plhzjF6DIzbD8gWLHvC4hR6Oe0jvlBAFy/WoV6kJUahAyVmy8 GzHVH+KtdJ+Cz5Ek88P25hXr+8n7eqyJzZN+x+eiwPzj2fYEpdXxgbcltry0gD8k9U/+ BtARUPfX5QpU8vVd68REDiXnSI6XdtAOsX1PlHAaZlAWw/iPwX7HZovo5gY2y0RVKJIy rcpw== X-Gm-Message-State: AOAM532IW35Wi6lt7Bd7hMMCDmoztdM/Uf99Ak9euPl3a4gfTKTBJ8V8 +MxLm7kiLFrpQl6y+E6vB7UPHYtNa6cIotTrBiVkRQ== X-Received: by 2002:a25:e4c4:: with SMTP id b187mr5508166ybh.92.1615998147092; Wed, 17 Mar 2021 09:22:27 -0700 (PDT) MIME-Version: 1.0 References: <20210317150858.02b1bbc8@canb.auug.org.au> <20210317105432.GA32135@zn.tnic> In-Reply-To: <20210317105432.GA32135@zn.tnic> From: Ian Rogers Date: Wed, 17 Mar 2021 09:22:15 -0700 Message-ID: Subject: Re: linux-next: build failure after merge of the tip tree To: Borislav Petkov Cc: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 3:54 AM Borislav Petkov wrote: > > + Ian. > > On Wed, Mar 17, 2021 at 03:08:58PM +1100, Stephen Rothwell wrote: > > Hi all, > > > > After merging the tip tree, today's linux-next build (native perf) > > failed like this: > > > > In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:15: > > util/intel-pt-decoder/../../../arch/x86/lib/insn.c:14:10: fatal error: = asm/inat.h: No such file or directory > > 14 | #include /*__ignore_sync_check__ */ > > | ^~~~~~~~~~~~ > > > > This is a powerpc build of perf. I can't see what caused this failure, > > so I have used the version of the tip tree from next-20210316 for today= . > > Yah, this has come up in the past during review but the wrong version > somehow snuck in, sorry. ;-\ > > Can you guys verify this fixes the build issue? I don't have a ppc build > setup. > > Thx. The path also needs fixing. With the following I was able to build for arm64 and powerpc. Thanks, Ian diff --git a/tools/arch/x86/lib/insn.c b/tools/arch/x86/lib/insn.c index cd4dedde3265..968360bf2150 100644 --- a/tools/arch/x86/lib/insn.c +++ b/tools/arch/x86/lib/insn.c @@ -11,13 +11,13 @@ #else #include #endif -#include /*__ignore_sync_check__ */ -#include /* __ignore_sync_check__ */ +#include "../include/asm/inat.h" /*__ignore_sync_check__ */ +#include "../include/asm/insn.h" /* __ignore_sync_check__ */ #include #include -#include /* __ignore_sync_check__ */ +#include "../include/asm/emulate_prefix.h" /* __ignore_sync_check__ */ #define leXX_to_cpu(t, r) \ ({ \ > --- > From 50d91054fc421e2a90923706d5ca79e941e28300 Mon Sep 17 00:00:00 2001 > From: Borislav Petkov > Date: Wed, 17 Mar 2021 11:33:04 +0100 > Subject: [PATCH] tools/insn: Restore the relative include paths for cross > building > > Building perf on ppc causes: > > In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:15: > util/intel-pt-decoder/../../../arch/x86/lib/insn.c:14:10: fatal error: = asm/inat.h: No such file or directory > 14 | #include /*__ignore_sync_check__ */ > | ^~~~~~~~~~~~ > > Restore the relative include paths so that the compiler can find the > headers. > > Fixes: 93281c4a9657 ("x86/insn: Add an insn_decode() API") > Reported-by: Ian Rogers > Reported-by: Stephen Rothwell > NOT-Signed-off-by: Borislav Petkov > --- > tools/arch/x86/lib/insn.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/arch/x86/lib/insn.c b/tools/arch/x86/lib/insn.c > index cd4dedde3265..999fbd4c9bea 100644 > --- a/tools/arch/x86/lib/insn.c > +++ b/tools/arch/x86/lib/insn.c > @@ -11,8 +11,8 @@ > #else > #include > #endif > -#include /*__ignore_sync_check__ */ > -#include /* __ignore_sync_check__ */ > +#include "../include/asm/inat.h" /* __ignore_sync_check__ */ > +#include "../include/asm/insn.h" /* __ignore_sync_check__ */ > > #include > #include > -- > 2.29.2 > > -- > Regards/Gruss, > Boris. > > SUSE Software Solutions Germany GmbH, GF: Felix Imend=C3=B6rffer, HRB 368= 09, AG N=C3=BCrnberg