Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1319904pxm; Thu, 3 Mar 2022 15:08:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwzHwvRc5s5GOaDIKVCdvNtmweXVc4OAWGNaQQdK/y6vsCfxd2w988AQNsUjYc6VYKWOgI X-Received: by 2002:a05:6402:50ca:b0:413:2a27:6b63 with SMTP id h10-20020a05640250ca00b004132a276b63mr36378214edb.349.1646348936586; Thu, 03 Mar 2022 15:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646348936; cv=none; d=google.com; s=arc-20160816; b=OYGYjGBXU+pMGWN3lTXOdxwtNafkmHCIzVPyQ/d9Cmt4df6+jFc6q2dv36cXttV03k FB+JbRcbybEuVJlgfHYIbZmoLXerryMGbnJ1mMqRijhABsaKeXN9SKOGCose/b+d5XgM maxYc17TEdUi2QIx6tf2a7VpmErG1DWclqQO5jqYlsHnCTsX9ac+AO1h9K5EFg6JdAXS LuxAkywJlXr0+97skxCDPUBew+Oe3DzY7+87jhyfnnO5Rb0JBUcdy9dM9cVkDPcMf5jA d+YnDCE+9X+yMCKO2oN8vnoI0bYly9nlyLX8d5xaQIYhRCI42r4QBxeL0jUOC74C5Hba qi8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Uy2afJ9ZPvmmHWI6b6VB2HM3H9arIDEQAaJ8qNi/u4s=; b=q6lkheo4KwiOyNXfy8cwTN7bUYDpEohEBOO8KcwKw93RbYCchTYLitBdt9rHjF1Nbm kaDYu1NKLZQfM7PxXuQBnnwPA8IojFCbJ4hba/u17pUTYF5/bW+GyirC4DQsj0LgkjDx /StMAcPpeFzpCFwka5hvYseyzQzy6eYCK/I2YMyA+NUSgYuMzFnxce87BumzleDRK42Q hZF3afzBd3Jggv+5mP5itdHp7pTg3qn+1/U7enaAIV9roHHUnULddhFzW/liPgfmQWG7 YSDWgCg6+1i/32w1+Fehpa/l//B9VbcrYqBDb4gqpKgaXvfl1xvLR+xrbY6vkt4gImBb LzvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=AlMT6ljg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a170906770b00b006d1443da5c3si1920799ejm.810.2022.03.03.15.08.33; Thu, 03 Mar 2022 15:08:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=AlMT6ljg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236801AbiCCWUo (ORCPT + 99 others); Thu, 3 Mar 2022 17:20:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236729AbiCCWUn (ORCPT ); Thu, 3 Mar 2022 17:20:43 -0500 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC006396AB for ; Thu, 3 Mar 2022 14:19:57 -0800 (PST) Received: by mail-io1-xd31.google.com with SMTP id d62so7435130iog.13 for ; Thu, 03 Mar 2022 14:19:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Uy2afJ9ZPvmmHWI6b6VB2HM3H9arIDEQAaJ8qNi/u4s=; b=AlMT6ljgLpZMvzgD59xHREgkpKiwKbtEuapOcBDIpPtJKRqPOXV5oO+kmZCujKdnEM fD3joPO6+cvZ7l8OTW9lKXJOo2YStlCEYiRdIiJOCEnB7aHGVQhrJZTnpOunVg4cDg58 ncYE0pwb5SnXjTa6giQK3X4pbcCr1szj2cyHg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Uy2afJ9ZPvmmHWI6b6VB2HM3H9arIDEQAaJ8qNi/u4s=; b=XNz1Dd6Dl6TsHlywhpeWYTm3RzEkA8pGDO29aYXAC9xiCHKWQQPoLbOZ13EHe2UPip 2jY/wE0RqqJFyDEHVG+5K1kQLQ8STGlgy6E1eIqgDXLCjgGkeRMZGXsg+sQmhP+SW3fJ uMah3Eeyv1nyBlb15D2yGkxOvjft5bTnqJCHjTUXX1SsP7u55E5prGZwSYQ5CmlSk2pA 9V1vLj/XWB59SKzCMehfuQjw1HrWZMm7dMB+mAPNayW08T/kWZEQuIkuxp+LTZcrH/8Y PPv69MLVNDpuxB1sZB74AkpZwQS2NLZLJO/YMXfGv/NDLGE54CMZ448i7z/oqhCkexlZ byhA== X-Gm-Message-State: AOAM533hejnBDVSmUupBwASM0oROV+rxZFncGizCWELecAx0F/lBSyiR dj+OvVqX3CPw3fuFz/gYP1CcCw== X-Received: by 2002:a05:6602:242a:b0:640:746c:c2bd with SMTP id g10-20020a056602242a00b00640746cc2bdmr28851332iob.74.1646345997073; Thu, 03 Mar 2022 14:19:57 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id i14-20020a056e021d0e00b002c60beec66asm1878556ila.78.2022.03.03.14.19.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Mar 2022 14:19:56 -0800 (PST) Subject: Re: [PATCH V2] selftests: Fix build when $(O) points to a relative path To: Muhammad Usama Anjum , Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Cc: kernel@collabora.com, kernelci@groups.io, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Shuah Khan References: <20220216223817.1386745-1-usama.anjum@collabora.com> <46489cd9-fb7a-5a4b-7f36-1c9f6566bd93@collabora.com> <63870982-62ba-97f2-5ee2-d4457a7a5cdb@linuxfoundation.org> <9a643612-ea85-7b28-a792-770927836d43@linuxfoundation.org> From: Shuah Khan Message-ID: Date: Thu, 3 Mar 2022 15:19:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/26/22 12:32 AM, Muhammad Usama Anjum wrote: > On 2/26/22 2:13 AM, Shuah Khan wrote: >> On 2/25/22 11:01 AM, Shuah Khan wrote: >>> On 2/25/22 10:22 AM, Muhammad Usama Anjum wrote: >>>> Any thoughts about it? >>>> >>> >>> No to post please. >>> >>>> On 2/17/22 3:38 AM, Muhammad Usama Anjum wrote: >>>>> Build of bpf and tc-testing selftests fails when the relative path of >>>>> the build directory is specified. >>>>> >>>>> make -C tools/testing/selftests O=build0 >>>>> make[1]: Entering directory >>>>> '/linux_mainline/tools/testing/selftests/bpf' >>>>> ../../../scripts/Makefile.include:4: *** O=build0 does not exist. >>>>> Stop. >>>>> make[1]: Entering directory >>>>> '/linux_mainline/tools/testing/selftests/tc-testing' >>>>> ../../../scripts/Makefile.include:4: *** O=build0 does not exist. >>>>> Stop. >>>>> >>>>> Makefiles of bpf and tc-testing include scripts/Makefile.include file. >>>>> This file has sanity checking inside it which checks the output path. >>>>> The output path is not relative to the bpf or tc-testing. The sanity >>>>> check fails. Expand the output path to get rid of this error. The >>>>> fix is >>>>> the same as mentioned in commit 150a27328b68 ("bpf, preload: Fix build >>>>> when $(O) points to a relative path"). >>>>> >>>>> Signed-off-by: Muhammad Usama Anjum >>>>> --- >>>>> Changes in V2: >>>>> Add more explaination to the commit message. >>>>> Support make install as well. >>> >> >> Does the same happen when you use make kselftest-all? > No, this problem doesn't appear when using make kselftest-all. > > As separate output directory build was broken in kernel's top most > Makefile i.e., make kselftest-all O=dir. (I've sent separate patch to > fix this: > https://lore.kernel.org/lkml/20220223191016.1658728-1-usama.anjum@collabora.com/) > So people must have been using kselftest's internal Makefile directly to > keep object files in separate directory i.e., make -C > tools/testing/selftests O=dir and in this way the build of these tests > (bpf, tc-testing) fail. This patch is fixing those build errors. > >> >> I am unable to reproduce what you are seeing? > make -C tools/testing/selftests O=dir should reproduce this problem. > Applied to linux-kselftest next for Linux 5.18-rc1. thanks, -- Shuah