From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 964DAC433DF for ; Tue, 28 Jul 2020 21:12:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C6A820714 for ; Tue, 28 Jul 2020 21:12:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729259AbgG1VMi (ORCPT ); Tue, 28 Jul 2020 17:12:38 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39340 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728728AbgG1VMh (ORCPT ); Tue, 28 Jul 2020 17:12:37 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06SL2UqH172967; Tue, 28 Jul 2020 17:12:25 -0400 Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0b-001b2d01.pphosted.com with ESMTP id 32j0a693fy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jul 2020 17:12:25 -0400 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06SL6lxC000831; Tue, 28 Jul 2020 21:12:23 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma02fra.de.ibm.com with ESMTP id 32gcq0tkdn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jul 2020 21:12:23 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06SLCKCI11141490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Jul 2020 21:12:20 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B1FF652054; Tue, 28 Jul 2020 21:12:20 +0000 (GMT) Received: from sig-9-145-173-62.de.ibm.com (unknown [9.145.173.62]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 5096652057; Tue, 28 Jul 2020 21:12:20 +0000 (GMT) Message-ID: <561d45c27df34a412aed676293078bcac5c1d91a.camel@linux.ibm.com> Subject: Re: [PATCH bpf-next 1/3] samples/bpf: Fix building out of srctree From: Ilya Leoshkevich To: Song Liu Cc: Alexei Starovoitov , Daniel Borkmann , bpf , Heiko Carstens , Vasily Gorbik Date: Tue, 28 Jul 2020 23:12:19 +0200 In-Reply-To: References: <20200728120059.132256-1-iii@linux.ibm.com> <20200728120059.132256-2-iii@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-28_16:2020-07-28,2020-07-28 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=3 bulkscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 clxscore=1011 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007280146 Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Tue, 2020-07-28 at 13:48 -0700, Song Liu wrote: > On Tue, Jul 28, 2020 at 5:15 AM Ilya Leoshkevich > wrote: > > Building BPF samples out of srctree fails, because the output > > directory > > for progs shared with selftests (CGROUP_HELPERS, TRACE_HELPERS) is > > missing and the compiler cannot create output files. > > > > Fix by creating the output directory in Makefile. > > What is the make command line we use here? I am trying: > > make M=samples/bpf O=./xxx > > w/o this patch, make created ./xxx/samples/bpf. > > Did I miss something? I'm using make O=$HOME/linux-build 'CC=ccache gcc' M=samples/bpf -j12 My make version is GNU Make 4.2.1. Best regards, Ilya