Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1026322rdh; Fri, 24 Nov 2023 03:49:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHe4P1MFi4Yb71NmMuDeOkd6ww0rjr8SLwcmPwz6+cxzef6u7IovJfZwzc2XRFHOTq3+ITz X-Received: by 2002:a17:902:e806:b0:1cf:6768:59fd with SMTP id u6-20020a170902e80600b001cf676859fdmr2607970plg.59.1700826550847; Fri, 24 Nov 2023 03:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700826550; cv=none; d=google.com; s=arc-20160816; b=i5w2yCQP13vMv3Mx0HbDPRtu5QtiV3PtprTyEDrobYVZpVXvmxyF8kO7YgLX9fUkzu vJFn6uHgsX/FderLJwdr4X2/ejsy4sstrIkn+tjv0g12YBO/6056Zh1RTdw5yA/QDYc4 yGojgroSitiHKhK5b6mBaWtkU6jkJLw+t9YMU6B0EvY950u0mgYAP+S7DRHw7o9fXfB1 RNrI10XkpjuUppwvfvu4BzQoaTjAAdV6XBS0+awbR4QioOH7RkblljvfNQ2eL6mpHOKv dnJDLcw6Ted2P+rdwq6kdyYST4kOE2sx3S96rJwoMyqe3hZ3oVVuMDmXGwSWhFAQypW2 nN9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZfC/lLGhVNxPerem6Vb9RwxvkDDsQG+VRa9uJuuEkU0=; fh=ijBsZH0Okz0eQfELoybROlzX6fOO3DuMR53oGpc2V3s=; b=I2BHlJ++AHuJ1Z5as33AJ5HfWrVOn3t+LMnpRoDuerqyjl/wNfVCSau81HOcoUZMKc M4YhDI5I3pL9j8ZaqZ5Crgpc1HbMY8DKT4ekLpDWCuyDpT6VMPhKoaMH8HnhfZkxA+mU moh+q81LSeZYYbRAxL4jp2siMS09AfTkK+Bwhj7iYqraCXzWUyvHTmaQXCGuPnvtkYuD slMI90dmJZoFAWsInu/eaYSs9fVQyfoKt0l/MC9U9tsaO2FB8IQ6Q7QE3UMbJhU3TM2h egPSq1e6QPefa/lcrgVDIEoYvg2skn3SVh3WxWF3PTkdJ+e3MQONMV/SFU651WZFpF+s dNOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gmuo1cfM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id v11-20020a170902b7cb00b001cf8d17cad2si3063086plz.458.2023.11.24.03.49.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 03:49:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gmuo1cfM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9FDC08049128; Fri, 24 Nov 2023 03:49:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230303AbjKXLsr (ORCPT + 99 others); Fri, 24 Nov 2023 06:48:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbjKXLsp (ORCPT ); Fri, 24 Nov 2023 06:48:45 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFA63D5A; Fri, 24 Nov 2023 03:48:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700826531; x=1732362531; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NWTZKPB6947/lzmM2oYhnJ+7TJUw4xxaIF4D9FZKFiY=; b=Gmuo1cfMaaVnDT/WjcuqmVQiagM01X0VvcPOUcfnz7EoQk6DXPOMTpk5 3hXyfw9uGOhxmUZuSi9W4KX9H6Add8r3bhJjH1B8O4ETB+GCfBzw5lACg C7s/UrY7hB/cM5DyKxRsWg9s1PE9ZjNaZhHzHafOhg4FS9vIQ7icT9JOJ 4NRWnFS8yzb5GX+9Bb0QMHXda3VamScgRxZmwY4rZrt9CCnIbFTpEMIrG gFCmTyvVYoEa415sy7G4GiPZI0xG7dgxVKPh9fhRfdXqB7FdeNsbC2zri bemJ25Ht51gsgrGxOAYBG/8Df1h97z/DBDTMhjiH40hgCOvw8tt6vdUXG w==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="377449233" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="377449233" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 03:48:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="1014884517" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="1014884517" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 24 Nov 2023 03:48:46 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r6Ufr-0002iG-2D; Fri, 24 Nov 2023 11:48:43 +0000 Date: Fri, 24 Nov 2023 19:47:52 +0800 From: kernel test robot To: Paran Lee , Namhyung Kim , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Sean Christopherson , Li Dong , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: oe-kbuild-all@lists.linux.dev, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, shjy180909@gmail.com, austindh.kim@gmail.com, honggyu.kp@gmail.com, tegongkang@gmail.com, Paran Lee Subject: Re: [PATCH] perf callchain: Support riscv cross-platform Message-ID: <202311241453.S2nsKqhx-lkp@intel.com> References: <20231122155548.2449-1-p4ranlee@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122155548.2449-1-p4ranlee@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 24 Nov 2023 03:49:07 -0800 (PST) Hi Paran, kernel test robot noticed the following build errors: [auto build test ERROR on perf-tools-next/perf-tools-next] [also build test ERROR on tip/perf/core perf-tools/perf-tools linus/master acme/perf/core v6.7-rc2 next-20231124] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Paran-Lee/perf-callchain-Support-riscv-cross-platform/20231123-000232 base: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git perf-tools-next patch link: https://lore.kernel.org/r/20231122155548.2449-1-p4ranlee%40gmail.com patch subject: [PATCH] perf callchain: Support riscv cross-platform compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241453.S2nsKqhx-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311241453.S2nsKqhx-lkp@intel.com/ All errors (new ones prefixed by >>): Makefile.config:1176: libpfm4 not found, disables libpfm4 support. Please install libpfm4-dev PERF_VERSION = 6.6.rc1.g1f4d296e5f76 util/unwind-libunwind.c: In function 'unwind__prepare_access': >> util/unwind-libunwind.c:43:17: error: label 'out_register' used but not defined 43 | goto out_register; | ^~~~ >> util/unwind-libunwind.c:28:13: error: unused variable 'err' [-Werror=unused-variable] 28 | int err; | ^~~ >> util/unwind-libunwind.c:25:38: error: variable 'ops' set but not used [-Werror=unused-but-set-variable] 25 | struct unwind_libunwind_ops *ops = local_unwind_libunwind_ops; | ^~~ util/unwind-libunwind.c: At top level: >> util/unwind-libunwind.c:58:11: error: expected identifier or '(' before 'else' 58 | } else if (!strcmp(arch, "riscv64") || !strcmp(arch, "riscv")) { | ^~~~ >> util/unwind-libunwind.c:63:9: error: expected identifier or '(' before 'if' 63 | if (!ops) { | ^~ >> util/unwind-libunwind.c:67:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token 67 | out_register: | ^ >> util/unwind-libunwind.c:70:9: error: data definition has no type or storage class [-Werror] 70 | err = maps__unwind_libunwind_ops(maps)->prepare_access(maps); | ^~~ >> util/unwind-libunwind.c:70:9: error: type defaults to 'int' in declaration of 'err' [-Werror=implicit-int] >> util/unwind-libunwind.c:70:42: error: 'maps' undeclared here (not in a function) 70 | err = maps__unwind_libunwind_ops(maps)->prepare_access(maps); | ^~~~ util/unwind-libunwind.c:71:9: error: expected identifier or '(' before 'if' 71 | if (initialized) | ^~ >> util/unwind-libunwind.c:73:9: error: expected identifier or '(' before 'return' 73 | return err; | ^~~~~~ >> util/unwind-libunwind.c:74:1: error: expected identifier or '(' before '}' token 74 | } | ^ util/unwind-libunwind.c: In function 'unwind__flush_access': >> util/unwind-libunwind.c:76:40: error: declaration of 'maps' shadows previous non-variable [-Werror=shadow] 76 | void unwind__flush_access(struct maps *maps) | ~~~~~~~~~~~~~^~~~ util/unwind-libunwind.c: In function 'unwind__finish_access': util/unwind-libunwind.c:84:41: error: declaration of 'maps' shadows previous non-variable [-Werror=shadow] 84 | void unwind__finish_access(struct maps *maps) | ~~~~~~~~~~~~~^~~~ util/unwind-libunwind.c: In function 'unwind__prepare_access': >> util/unwind-libunwind.c:58:9: error: control reaches end of non-void function [-Werror=return-type] 58 | } else if (!strcmp(arch, "riscv64") || !strcmp(arch, "riscv")) { | ^ util/unwind-libunwind.c: At top level: >> util/unwind-libunwind.c:16:13: error: 'unwind__register_ops' defined but not used [-Werror=unused-function] 16 | static void unwind__register_ops(struct maps *maps, struct unwind_libunwind_ops *ops) | ^~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[7]: *** [tools/build/Makefile.build:105: tools/perf/util/unwind-libunwind.o] Error 1 make[7]: *** Waiting for unfinished jobs.... make[6]: *** [tools/build/Makefile.build:158: util] Error 2 make[5]: *** [Makefile.perf:669: tools/perf/perf-in.o] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [Makefile.perf:242: sub-make] Error 2 make[3]: *** [Makefile:70: all] Error 2 -- >> diff: tools/arch/riscv/include/uapi/asm/kvm.h: No such file or directory diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h diff -u tools/include/uapi/linux/mount.h include/uapi/linux/mount.h diff -u tools/include/uapi/linux/perf_event.h include/uapi/linux/perf_event.h diff -u tools/arch/x86/include/asm/disabled-features.h arch/x86/include/asm/disabled-features.h diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h diff -u tools/arch/x86/include/uapi/asm/prctl.h arch/x86/include/uapi/asm/prctl.h diff -u tools/arch/arm64/include/uapi/asm/perf_regs.h arch/arm64/include/uapi/asm/perf_regs.h diff -u tools/arch/s390/include/uapi/asm/kvm.h arch/s390/include/uapi/asm/kvm.h diff -u tools/arch/riscv/include/uapi/asm/kvm.h arch/riscv/include/uapi/asm/kvm.h diff -u tools/arch/riscv/include/uapi/asm/unistd.h arch/riscv/include/uapi/asm/unistd.h -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki