Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3637788ybl; Fri, 20 Dec 2019 12:50:16 -0800 (PST) X-Google-Smtp-Source: APXvYqz2elYd1xdLI/LmmT9KK2AQnuFaSzqOxoYL/K/Hjb7c1pAHQkcSkHVFcwD/h02Q5wjqzbAx X-Received: by 2002:a05:6830:1042:: with SMTP id b2mr17035930otp.306.1576875016396; Fri, 20 Dec 2019 12:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576875016; cv=none; d=google.com; s=arc-20160816; b=n1lvYVfj4doEPc7YSyx/Qv+ld4UgdPFW5ttRvXc1d+Dt/Q8fuCQC1JKkWDC3I7Rtsc Q1e5gR6iaTu90sAF+p6PL1v9Q3+q5gdlWikaPBFku29UFpz+jdpkDr495r14b/HDeVWo EksEk5fU20a2yQQJmmxksgC/NQpxxJokKdp+gRQ1OSpO7XjBZSng5KoMeleNv3S6CbzY ACmeaqnPTR8jZoLoJy7ps9aM6fXumEfJHR2+Winm2yxxH4jqd24Whhch96GMSMegPyzJ H6F8puwEm+/AgrL2ODMEteUby+n4ipoUangN4ZFwa0bV+xpDnTsU0LNseQ4xOEisMeUA qAjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=f40bQDy6bbmWGpJ8gtvPrGZ9k+HSSNNsGWV0KlBXr2I=; b=ppCCybJjphEISGIqbcTHSOgBSZZ73Jtxu9FWvv2uEuZ64TLUqjToQa3vPb+LvoU3cv HO4jC5f6VEldhqaRQrwPlEamjgT5DreaRxUZO7BgwxIG7/yBUpT7Zqvn1it0FA1ruwB3 IZEvcON9TNTzPRT8E6jv/xQ62gNj7jksIjjhXwS1F7VSJlBCBqjTTyrwW/sixX3UffRB cdupRvcWOWC80lqewSPYA6vzq19j00EYTUND0S9MygYqq3KMZvylFbnzGfjeRVtp94mt XpcIjMNyEm79pEcgjwaDQDb7gXEoP/9KSsA4us9quZcZ1R4nYlR70sBO5Mfm2vbHsZrD xqAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qNlfru8a; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a128si5372269oib.142.2019.12.20.12.50.00; Fri, 20 Dec 2019 12:50:16 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=qNlfru8a; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727478AbfLTUrx (ORCPT + 99 others); Fri, 20 Dec 2019 15:47:53 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:36071 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726525AbfLTUrx (ORCPT ); Fri, 20 Dec 2019 15:47:53 -0500 Received: by mail-pl1-f196.google.com with SMTP id a6so3864291plm.3; Fri, 20 Dec 2019 12:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=f40bQDy6bbmWGpJ8gtvPrGZ9k+HSSNNsGWV0KlBXr2I=; b=qNlfru8aAC0YrW0PRWN8jHhdu+gd8QS6FRn4zvgHAeHJUwv9LoteHyPBKG0GSRviXT W/2ShNQZW8LbkoyulPdei6LBZfKwrMGFMqu128TdvbRz7fpSnNWfqTKcYBRnnix/yOxx 0Fu2lm6drRBEC+dlGEEDqT5sQwG3uQj+3Hbjh7Hic+x+V7cGJf8lOjKx28lmC3L6QiVj Gs9fTd9zHj63pzMfRJJ+nz13E7VXg413UBcSL8oi4NPXX18dpBGytEnftyz9L8xzl9jk Aa3wQ+afCi6rMotTaIvWHwZWAcu5W48lq5+VZFgUUmfsDM9ISZSWO1K0sMRoUiGBqVXX 9VHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=f40bQDy6bbmWGpJ8gtvPrGZ9k+HSSNNsGWV0KlBXr2I=; b=evK6+PDSMjFmj9AfwDi//foTMUhAAc5yr8xbGHZWtjZCTCdJtqXKZkMzz4SABjkdlw NtAZxTDpyAVa4vhtIOyS1Y+U5Sb/xoruaEW7vrHuQ9QqVMmKcPVDwMtcIuOD7/gbbPH7 MDxwZEU2daIWmXYjQT0svLvaexm/FmNlnXk1okZSJB+IOwhgaSE7KzEyAHZ/0WJCFOKT gY6+/NSRn5dWrbpjamBrWQ3XrN8Gb4wemP07io3Tn9kjrixVwaV8pzNJjm7nslGf02Gp sM2V0uBOGpKFrBvkFYMMha/gUXbHhYHgxD2mEEIthfpc+1iCGYC9ZV+IKY8hXjMdhTXo W12g== X-Gm-Message-State: APjAAAXxDbFI51Qt0+2o3U4eae0JeIwcwZdZoX1TYuR4o3b7MZddMjVW WPVSXprGvu+wFnXaVhmwK00= X-Received: by 2002:a17:902:64:: with SMTP id 91mr17424583pla.307.1576874872336; Fri, 20 Dec 2019 12:47:52 -0800 (PST) Received: from quaco.ghostprotocols.net ([179.97.35.50]) by smtp.gmail.com with ESMTPSA id d2sm11461080pjv.18.2019.12.20.12.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 12:47:51 -0800 (PST) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id DCC4840CB9; Fri, 20 Dec 2019 17:47:48 -0300 (-03) Date: Fri, 20 Dec 2019 17:47:48 -0300 To: Andrii Nakryiko Cc: Namhyung Kim , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , bpf , Jiri Olsa , LKML Subject: Re: [PATCH] libbpf: Fix build on read-only filesystems Message-ID: <20191220204748.GA9076@kernel.org> References: <20191220032558.3259098-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Dec 20, 2019 at 12:29:36PM -0800, Andrii Nakryiko escreveu: > On Thu, Dec 19, 2019 at 7:26 PM Namhyung Kim wrote: > > I got the following error when I tried to build perf on a read-only > > filesystem with O=dir option. > > > > $ cd /some/where/ro/linux/tools/perf > > $ make O=$HOME/build/perf > > ... > > CC /home/namhyung/build/perf/lib.o > > /bin/sh: bpf_helper_defs.h: Read-only file system > > make[3]: *** [Makefile:184: bpf_helper_defs.h] Error 1 > > make[2]: *** [Makefile.perf:778: /home/namhyung/build/perf/libbpf.a] Error 2 > > make[2]: *** Waiting for unfinished jobs.... > > LD /home/namhyung/build/perf/libperf-in.o > > AR /home/namhyung/build/perf/libperf.a > > PERF_VERSION = 5.4.0 > > make[1]: *** [Makefile.perf:225: sub-make] Error 2 > > make: *** [Makefile:70: all] Error 2 > > > > It was becaused bpf_helper_defs.h was generated in current directory. > > Move it to OUTPUT directory. > > > > Signed-off-by: Namhyung Kim > > --- > > Overall nothing is obviously broken, except you need to fix up > selftests/bpf's Makefile as well. > > BTW, this patch doesn't apply cleanly to latest bpf-next, so please rebase. > > Also subject prefix should look like [PATCH bpf-next] if it's meant to > be applied against bpf-next. Shouldn't this be applied to the current merge window since a behaviour that people relied, i.e. using O= to generate the build in a separate directory, since its not possible to use the source dir tree as it is read-only is now broken, i.e. isn't this a regression? - Arnaldo > > tools/lib/bpf/Makefile | 14 +++++++------- > > 1 file changed, 7 insertions(+), 7 deletions(-) > > > > [...] -- - Arnaldo