Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6056399ybl; Sun, 22 Dec 2019 22:11:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwUB5e0x3bSNP7iGsZ6WawTs4xWjG0sJIrp7qg5E/6qOosSMA2UBBGY1+wC3oYYYgUj6BB0 X-Received: by 2002:a9d:6441:: with SMTP id m1mr12143786otl.310.1577081461491; Sun, 22 Dec 2019 22:11:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577081461; cv=none; d=google.com; s=arc-20160816; b=uhH4OG1Ut/WfEEk3Rv/84meRWX4JbPC+fq49Ws4SA4ZDdql529GfAoQF9VRYtp+cXH 6u1f9WIB+2vSozpNzNv0RFlmznOxiIZ0LMhJ3MykyUUE5M4proxuPkhoo0b2ocS8A9dA lAMxNAp35x9DxfwcrgpsbhQyi+oTKi2qrqOHycN4l9r+fyZdLPev7DLT3MXvi8hAqgdP DKS6tkqmKvNZ68Yoihk8yKsOEqH+DIkoQn5UBf5Ywm3OH5/SRlo9NGHtgO8CSgP6R3oi EanCE1d3vb8z16l+TOY5EKOLrLZgqDgvix/4tUh0aO9fvLEC4OSn1JvcO37/sMINcQSH aUJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=kBek2qMpkl76XzsVkCJQfX3XYSAhe9VKKtzp8ddYINw=; b=vRQlKYCsNRUcnXkT5OYhvJEy2vw9sjoWSUTI1ZcYcddy+/TOAbMW0jscos3tXrCO3k dO5L4tYixXf2XvnU8OCYCKu2MaYli/B8aN2a++oUaSQumgONh5VAZRAzWeIQ+MYT0lml GoNoE3NKHqqYk6pBSSPf+1e460On8+bjEbFZJnYrOWLPYFfa8SSyqiHG8GS3Gbp+cAe5 +JdRWP+h06VZnhVcETvIT4VFau/VXLZJvQ00wKveMdKu8VWHxsh7+W3ekGR7nARFSn0p pQT+A8rqbJ8vc37geag/1XT8xpkTpTxgb+beR/m4Pd6eP3bJ0a2eNPzMK5i1akCCqX/6 PyUw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n139si9195416oig.121.2019.12.22.22.10.50; Sun, 22 Dec 2019 22:11:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726777AbfLWGJh (ORCPT + 99 others); Mon, 23 Dec 2019 01:09:37 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38619 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbfLWGJh (ORCPT ); Mon, 23 Dec 2019 01:09:37 -0500 Received: by mail-wm1-f68.google.com with SMTP id u2so15088251wmc.3; Sun, 22 Dec 2019 22:09:35 -0800 (PST) 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; bh=kBek2qMpkl76XzsVkCJQfX3XYSAhe9VKKtzp8ddYINw=; b=QLqFEjkxit+AHR2YIaqlGQBzXeEdZNYEsnovuK8u1VnQuJ9YuuMu2HHVwyzXFH4Qaa iEsSAIdwrDakK5vffy94ciajrYMEqezGrO7jbn8M/3W6By2TxsumAwwN5cA60BUBvXvb Kl4FPZXm4U6/avPEal/PbEaSps8EXzsmVxT1E3j1bpI6AZACqQ0XTfnJ44Kyiz2qo08h rxyy4GKRyVsMLxM+U46w+f38Wfa620SD0MP4IhxPjXVRLCcLVi3Q89PNjQIt5A2+3tHp 63yDzFFHW+45pPCOMk7q/XQ/3rRVAZFB0fohk04ca13bW3LmN+F9W8uJ89fG2rQJoqcf Qh3w== X-Gm-Message-State: APjAAAXEpXNc+5xTrfVYn7xj98rRsMLwPSRLjazkcGqN0qIGZO0HmSj0 L2IXSNDYEl25nO0KmosF7ahO1oiFXn0VyU/PVlU= X-Received: by 2002:a7b:c5d8:: with SMTP id n24mr28455099wmk.124.1577081374906; Sun, 22 Dec 2019 22:09:34 -0800 (PST) MIME-Version: 1.0 References: <20191221162158.rw6xqqktubozg6fg@ast-mbp.dhcp.thefacebook.com> <20191223030530.725937-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Mon, 23 Dec 2019 15:09:23 +0900 Message-ID: Subject: Re: [PATCH bpf] libbpf: Fix build on read-only filesystems To: Andrii Nakryiko Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , bpf , Arnaldo Carvalho de Melo , Jiri Olsa , LKML , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , Networking , linux-perf-users Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Mon, Dec 23, 2019 at 2:55 PM Andrii Nakryiko wrote: > > On Sun, Dec 22, 2019 at 9:45 PM Andrii Nakryiko > wrote: > > > > On Sun, Dec 22, 2019 at 7:05 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 > > > --- > > > > Looks good, thanks! > > just one minor thing: bpf_helper_defs.h has to be added to .gitignore > under selftests/bpf now > > > > > Tested-by: Andrii Nakryiko > > Acked-by: Andrii Nakryiko Thanks a lot for the review, I'll send v3 soon Thanks Namhyung