Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5010719pxb; Sun, 7 Nov 2021 03:20:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtMVh3wYkHpiCoeEA7Us4qkKaKHVZ+9dz95xeQ3itl1MIrnQj9FsDBqVnxuDDH+0+pnyuX X-Received: by 2002:a05:6e02:1d84:: with SMTP id h4mr48667688ila.265.1636284015213; Sun, 07 Nov 2021 03:20:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636284015; cv=none; d=google.com; s=arc-20160816; b=Wd7OFcjjeCboHqZDyCOhrEuFat46BsDNFAECI9MWPSGucYvjl5TpQT/ZFACsYFzJsW 1OIUv/gm1P/GS/UquOYeiHn/nIeXytfcCMg//koOvu4l+qKFVsvU7b0UaSCLSkF9nJiu 2MBqojNlP+s6G/op/fZGd1izy7/vkJu5TyoiDtTd0yx/W6YtA2HPBsAvvcrNHfur/IW7 a27zTbpC231zaJA2EujQbfctQYwpQ4/QxMwj/zP1+KdOKF+sLpzm02cX7V7FeQkea2PI vSFF4ol8NStAYfypup3VHte3GA1UyCWULB1cVu4qpAzwUJ+1j4i+1icGJfrZcb8xE69l NWNg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PFNHfs4yImVohfFYQ586m2sREMLOgnPEvO0dIUjJ4jE=; b=Cbc2SL5ecwzNPPRA4YkHuqubiXOK1kZ+CosdPqXyLeywZV/PJsdLCxwByipD3uxVC7 HtGO55GTPiddkl3ylklvE9doXuSVFiP2j/LSFjz5DO1DJq1Aq7cNy4YjG0NJUXoeD7Bf +zpynYhg5RD0+gdjwjPL+v5CvKaHJj1GrC9/yiWSafHyuF9KRU66j31lEJEWoQdEispN c2aSLlmckFLCafTSesm1jmvljrzNy5VHiFutoZ3zu5f3GNahoftLbEVCI/VmWE1kQjvg OEyEi8K/hB84IrPU5OZyUZRC6xKp4PE6LrXJMT/UBHBnOKK2Kp+UhBlNAI4pZcaLfsn/ OcCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hi9WmbL6; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si27870964jat.117.2021.11.07.03.19.40; Sun, 07 Nov 2021 03:20:15 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=Hi9WmbL6; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234427AbhKFVHx (ORCPT + 99 others); Sat, 6 Nov 2021 17:07:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:47362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbhKFVHw (ORCPT ); Sat, 6 Nov 2021 17:07:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4563D60F5A; Sat, 6 Nov 2021 21:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636232710; bh=ht5vrMRW1RhwK9J7i/LROmAao1Mup5jxGSlEXgIYSGQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hi9WmbL6b12J7RmC6gZIwWKIFk2i6+SeU220ykgTMX8r+5hZCSUhvmDu4/5MTjlO2 jwdo+MDabm8yelIzlNg810Gr9SfYFU4hx2B+cGLKzxnLqfuOImlYXcGPBurA6WU0Ef +VJwlhvlwcQuCk/ToHUoppc9vhyHxzUcvfF2MTYqqhREt00n22o20lfmOTtpFn/b46 XkvNbgCChkafumHvG1TgdTerNinPuhyX2XRy+00qK9bLuLa+hMUlNw7uZaMMu4HfVF jzy55VAfhQ4lfnMBaX8tDGby9HRY7hDAdK8DEiIdYYzCtM1nRxnYwOpew2tO4yrd+x ViB4/V+HA3QBw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id C367B410A1; Sat, 6 Nov 2021 18:05:07 -0300 (-03) Date: Sat, 6 Nov 2021 18:05:07 -0300 From: Arnaldo Carvalho de Melo To: Quentin Monnet Cc: Andrii Nakryiko , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Networking , bpf , Song Liu , Jiri Olsa , Namhyung Kim , Linux Kernel Mailing List Subject: [BUG] Re: [PATCH bpf-next] perf build: Install libbpf headers locally when building Message-ID: References: <20211105020244.6869-1-quentin@isovalent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, Nov 06, 2021 at 05:12:48PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Sat, Nov 06, 2021 at 04:29:16PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Nov 05, 2021 at 11:38:50AM -0700, Andrii Nakryiko escreveu: > > > On Thu, Nov 4, 2021 at 7:02 PM Quentin Monnet wrote: > > > > > > > > API headers from libbpf should not be accessed directly from the > > > > library's source directory. Instead, they should be exported with "make > > > > install_headers". Let's adjust perf's Makefile to install those headers > > > > locally when building libbpf. > > > > > > > > Signed-off-by: Quentin Monnet > > > > --- > > > > Note: Sending to bpf-next because it's directly related to libbpf, and > > > > to similar patches merged through bpf-next, but maybe Arnaldo prefers to > > > > take it? > > > > > > Arnaldo would know better how to thoroughly test it, so I'd prefer to > > > route this through perf tree. Any objections, Arnaldo? > > > > Preliminary testing passed for 'BUILD_BPF_SKEL=1' with without > > LIBBPF_DYNAMIC=1 (using the system's libbpf-devel to build perf), so far > > so good, so I tentatively applied it, will see with the full set of > > containers. > > Because all the preliminary tests used O= to have that OUTPUT variable > set, when we do simply: > > make -C tools/perf So I'll have to remove it now as my container builds test both O= and in-place builds (make -C tools/perf), I know many people (Jiri for instance) don't use O=. I tried to fix this but run out of time today, visits arriving soon, so I'll try to come back to this tomorrow early morning, to push what I have in to Linus, that is blocked by this now :-\ - Arnaldo > it breaks: > > ⬢[acme@toolbox perf]$ make -C tools clean > /dev/null 2>&1 > ⬢[acme@toolbox perf]$ make JOBS=1 -C tools/perf > make: Entering directory '/var/home/acme/git/perf/tools/perf' > BUILD: Doing 'make -j1' parallel build > HOSTCC fixdep.o > HOSTLD fixdep-in.o > LINK fixdep > > > Auto-detecting system features: > ... dwarf: [ on ] > ... dwarf_getlocations: [ on ] > ... glibc: [ on ] > ... libbfd: [ on ] > ... libbfd-buildid: [ on ] > ... libcap: [ on ] > ... libelf: [ on ] > ... libnuma: [ on ] > ... numa_num_possible_cpus: [ on ] > ... libperl: [ on ] > ... libpython: [ on ] > ... libcrypto: [ on ] > ... libunwind: [ on ] > ... libdw-dwarf-unwind: [ on ] > ... zlib: [ on ] > ... lzma: [ on ] > ... get_cpuid: [ on ] > ... bpf: [ on ] > ... libaio: [ on ] > ... libzstd: [ on ] > ... disassembler-four-args: [ on ] > > > CC fd/array.o > LD fd/libapi-in.o > CC fs/fs.o > CC fs/tracing_path.o > CC fs/cgroup.o > LD fs/libapi-in.o > CC cpu.o > CC debug.o > CC str_error_r.o > LD libapi-in.o > AR libapi.a > CC exec-cmd.o > CC help.o > CC pager.o > CC parse-options.o > CC run-command.o > CC sigchain.o > CC subcmd-config.o > LD libsubcmd-in.o > AR libsubcmd.a > CC core.o > CC cpumap.o > CC threadmap.o > CC evsel.o > CC evlist.o > CC mmap.o > CC zalloc.o > CC xyarray.o > CC lib.o > LD libperf-in.o > AR libperf.a > make[2]: *** No rule to make target 'libbpf', needed by 'libbpf/libbpf.a'. Stop. > make[1]: *** [Makefile.perf:240: sub-make] Error 2 > make: *** [Makefile:70: all] Error 2 > make: Leaving directory '/var/home/acme/git/perf/tools/perf' > ⬢[acme@toolbox perf]$ > > Trying to fix... > > - Arnaldo -- - Arnaldo