Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6046247ybl; Sun, 22 Dec 2019 21:55:51 -0800 (PST) X-Google-Smtp-Source: APXvYqy60yDzPC007VePK5t8iiZ9lbaZHAUdljL9vXB9OaCDxjyAprTQiDdPKJuY+TMbF5gHST2s X-Received: by 2002:a9d:67ce:: with SMTP id c14mr6700478otn.106.1577080551607; Sun, 22 Dec 2019 21:55:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577080551; cv=none; d=google.com; s=arc-20160816; b=eue/OgOPvWUd7Ki1vU6or4yYiv7vO8SMcIGG2od017DgZ4QQdX2E9OMIqGm9nm1yhR OWE5WE7D+bP3bsPbAD0Ww2Eyvrh19yNz0b7fczeJJCDTV0Bg8AkpqVrwDBlIF4EdjTZ9 aW4zwgtjnIAS3rAW08bccoKk89bixDVE+F7xLFBnNmOt8EAHw32APkcsoWrjcFOMHIoc cGVqVx/O+JJPySFlTsHLmEiWwdyc20lDBhK/1Lj/xbPCR8K+Sme0GPN0gFPECstA+uQi E6+LpEOgjjWsu/gnlG+V2Swb57VucAqD/gEe4KQpURxr0sBqQHSzTbSR5cDM9jHQhJ2S BOvg== 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:dkim-signature; bh=Vph61GXxgq9yRNojZ2R+RFipBj5KccaiwjndF8mVX3A=; b=dBmSlMNuX+kuz1fIzRHTZQuBsCkff40TVLKomvBnqG0Y27FDegtkdle7JGXFxt3fA0 3GEOFupgfpjkwpwuYEv+9UDVoNuL1Bj/574o///970yl0OEWkAtET502FPJekemd1GQ7 mHetrOWU8YvR0XzoTnxGjJcymza5ly6c/gVSk4ptKkiUSApjgUpIOodFJ7IYASHuZCZD n0jSg6DFtu5sOhYtCEGyetS6beup/s3fnZRVPe4MvTeBJruxnzlC3UcycrmEkrjcb522 hlUOofyRfemiTXYrYOAlvrQs97fKHdTXSYJlWUb3WxmU8zF87hgb/vr1OsSfcggvy4kS BlAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MTHsW6nd; 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 g25si9760396otp.20.2019.12.22.21.55.39; Sun, 22 Dec 2019 21:55:51 -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=MTHsW6nd; 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 S1726067AbfLWFzA (ORCPT + 99 others); Mon, 23 Dec 2019 00:55:00 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:43382 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725822AbfLWFzA (ORCPT ); Mon, 23 Dec 2019 00:55:00 -0500 Received: by mail-qt1-f196.google.com with SMTP id d18so11840670qtj.10; Sun, 22 Dec 2019 21:54:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vph61GXxgq9yRNojZ2R+RFipBj5KccaiwjndF8mVX3A=; b=MTHsW6ndC+oNo3Y60zjCvmsV9KuBN3uLi8gitEvPiudJAk4AFpVZCwGzi8zIW3YTCf 1ugWbHHXZNTxN39dyshH4wT+ToGKRQqrj95wQ3UKuL+UMMfH06nMfrH7wivRUqFMVhze KQ5BaM6P9MuWJi9szZOxXyfTVT33g0N26jCRcZg4cycFw+Orig9bGo9GUiRLdST19pyx WSHNDAYdEX6AMZGGSZN1E3NizcCq/C/l43sknj0UM05btT5x+CFpfWLoVHRhznwS1Wm8 f4csQdaBQdEkEZQekaisetCSxH8SOUOqAYnligo1PwHNnp8nvRFxJCYfF22ax2gaCQrM 6/Gg== 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=Vph61GXxgq9yRNojZ2R+RFipBj5KccaiwjndF8mVX3A=; b=DNCc0d293e1RLB0ewl4P5ZPXughdIvxZBb/i8SzWSE1oQZimZX5mUKK89OoMmukDPX CP/pf5AgfYifMZrq/YFwV+vH6S2hnY43C9wAEH5MM/WLe654nTe0D3E6PV5qc9iyI6td UcDHklYJl1X0+f1dLBrzo7+VteqeJmWbASv5MUeHF952eiGI1RoCMIg0LoCqKyWnrQwF 7Kisfifn+1YqlSZgy4gq4FdKy4Wp85V8JAs4yYwKUho9vxXcX1JsxxHbEVLcc66b+McP gYyB+KRMZ+QyQCu4rO35nkQV4kzwcPoetpjNbUZXqxC/zFKZLQZW8IB6JhasyqKgMmUt sItw== X-Gm-Message-State: APjAAAXLe9ukkn9DxbVzTsxJp/n7J3Ln3SqaMyJUL/6iZw8a9EJivuTG Iaezks0ht2fb4kHdjb5UJyZpPAN7w2mjAiEGhMwho++e X-Received: by 2002:ac8:140c:: with SMTP id k12mr21635681qtj.117.1577080498692; Sun, 22 Dec 2019 21:54:58 -0800 (PST) MIME-Version: 1.0 References: <20191221162158.rw6xqqktubozg6fg@ast-mbp.dhcp.thefacebook.com> <20191223030530.725937-1-namhyung@kernel.org> In-Reply-To: From: Andrii Nakryiko Date: Sun, 22 Dec 2019 21:54:47 -0800 Message-ID: Subject: Re: [PATCH bpf] libbpf: Fix build on read-only filesystems To: Namhyung Kim 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@vger.kernel.org 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 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 > > > tools/lib/bpf/Makefile | 15 ++++++++------- > > tools/testing/selftests/bpf/Makefile | 6 +++--- > > 2 files changed, 11 insertions(+), 10 deletions(-) > > > > [...]