Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2207402iof; Tue, 7 Jun 2022 23:13:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbH02xTZWTXVAnLymX3rwCr1EwH1hSrtEjoHBcn3nK5q4j8CiM9NyY8lD6OvwXWAk3DktF X-Received: by 2002:a63:2:0:b0:3fe:2558:545 with SMTP id 2-20020a630002000000b003fe25580545mr2951181pga.580.1654668792488; Tue, 07 Jun 2022 23:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668792; cv=none; d=google.com; s=arc-20160816; b=twebjqW9hZhwvMZWxgqXljyZP/SneoI39jAwYS7oXHvPZ4qScttTXld6Juv/8XvH6c s1Yo2xbJ/GZA1s8JViFi0GNqhhHmGoDsQ6O1su37y9DydeCc/7wzh/s/f0Raxa6j9vSB 85nFIlCaaEx4R6GcnvUlp4jRV1pmgU/iqqU4f8abPAUtvaCM6mJ6MoT7TeEFZYoGr6Bz rVYOmFq6DbLmBqY1xFnWMZhwICfwwpxNkpqpYEkIIf+u6srLeM0f4/iedhHrufnTgpne 0gaj5CMG96b4yUlwF+Bzs4ZRzv0/MA8xCCUYZMT2IBUIqjajs/fTATwFvBsfGyQkG2WC rB5Q== 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=DMYMqyjnC+Pa1f9t3aRd7d9q29f2hRwNi8wYEpJotmk=; b=c2/qhRcs3+AlbLVktiELmquMHxsMEsqbuAO/SFceCh/HMp7AlBYET2yTx2SIt1IlDj BI1zmieT2fu7xIaYNsT3PYZqMIi0KzY+SLNBNPbsE5ZCHee6LRjhHhl8BHucjfswfTkM HZ9Qnie0JqHOFeqPY30hYj+1DFjQQpoeauyH9PNK33E9+aAHiZsBsaSxHQPN9EX/TNtI c3BY5HcGf3D+t/ollP5Zaj+b7/gzwXcMHbxt43Su+WF0Mg4LKs36s0/ozZBIDpwZTcJA mt/7a8/XxPHCRFcgP1cSYvm+YdMP+9ZPMq0sByoQYah3eI9WlAW4x/jX+0rqaMGZN+Wq OfSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=h4EOnSJW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k19-20020a170902761300b001623b7ba910si26503927pll.29.2022.06.07.23.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:13:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=h4EOnSJW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5F4F535639C; Tue, 7 Jun 2022 22:35:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233563AbiFHBs5 (ORCPT + 99 others); Tue, 7 Jun 2022 21:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1575397AbiFGX1G (ORCPT ); Tue, 7 Jun 2022 19:27:06 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D39840BA6C for ; Tue, 7 Jun 2022 14:39:25 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id y85so6619710iof.2 for ; Tue, 07 Jun 2022 14:39:25 -0700 (PDT) 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=DMYMqyjnC+Pa1f9t3aRd7d9q29f2hRwNi8wYEpJotmk=; b=h4EOnSJW5qlumjyDRpOGgdjQoOyB4Q+O6l59N39UQahjkhxDl4VSySl01hMTwc9zRT EfuDzgEVqg/pBp3s4lQPkvko7HQkMiBmLEgZ1AEo0N7Phwb0v+fDY90LCrvAPcCNaH2r O3L623yMARWhJhFoBgQ8IewDspFlSDu0Jp5ag= 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=DMYMqyjnC+Pa1f9t3aRd7d9q29f2hRwNi8wYEpJotmk=; b=TQOfrQNt6BIVCAefIxOM9uAYyJaAq2Z2820hJbCcHB+8vcYm3pjM6zu/wolANk8sRi pw7LFfPNIHCyhAwbCBMZMKVqdQFua0hzdZL70XsM97797T53sp0BtJTvWl9jKPsR+uqz nbVl9/fzOI+hU/Rdjd4pk0Rc25wb3pO3R7MVxI4zZnFEykznHBCJgjrh7EWdNvUhTcwd ViXv0bOujRp3rqmX6HF3MoIwkDvFJF55BNgasBeJino8aW0NaEkp++kgn0PAJNPxrI6l 18GbQjNsJWvzJVKgd7jhmi2Vh7qrGvfsHfck/+l4GrDAVQoBrN0oqZ+w4KhlcBhlPfX0 PHTw== X-Gm-Message-State: AOAM531XWd47azGJAjnPpoirOc/R/AdHMRb98CrqrzqX4MeaEI7SN8AT wG+7YSRUMzGchXDWFUV/o3q2Zw== X-Received: by 2002:a05:6638:1495:b0:331:c58a:301 with SMTP id j21-20020a056638149500b00331c58a0301mr4212898jak.134.1654637962472; Tue, 07 Jun 2022 14:39:22 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id e1-20020a022101000000b0032b3a78179csm7086269jaa.96.2022.06.07.14.39.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jun 2022 14:39:22 -0700 (PDT) Subject: Re: [Bug Report] - kselftest build fails if output directory is first level sub-directory To: Masahiro Yamada , Muhammad Usama Anjum Cc: Michal Marek , Nick Desaulniers , Shuah Khan , KERNEL SELFTEST FRAMEWORK , Linux Kbuild mailing list , LKML , "kernelci@groups.io" , Shuah Khan References: From: Shuah Khan Message-ID: Date: Tue, 7 Jun 2022 15:39:20 -0600 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=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/22/22 11:15 AM, Masahiro Yamada wrote: > On Sat, May 21, 2022 at 3:44 PM Muhammad Usama Anjum > wrote: >> >> Hello, >> >> kselftest can be built using the kernel's top most Makefile without >> using kselftest's Makefile directly. But there is bug in the top most >> Makefile. The build fails if the specified output directory is first >> level sub-directory. Here is a example to reproduce this bug: >> >> make kselftest-all O=build >> >> "The Make is working in a wrong directory, that is why the relative path >> does not work." Masahiro Yamada. Feel free to fix it if someone pin the bug. >> >> It should be noted that the build works in some other combinations: >> make kselftest-all (works) >> make kselftest-all O=/tmp (works) >> make kselftest-all O=build/build2 (works) >> >> My unsuccessful attempt to fix this bug can be found here: >> https://lore.kernel.org/lkml/20220223191016.1658728-1-usama.anjum@collabora.com/ >> >> Thanks, >> Muhammad Usama Anjum > > > This problem starts from the bad design of the kselftest framework. > I did some research before. I think I can fix the root cause but > currently I do not have enough time to do it. > > > KBUILD_ABS_SRCTREE is a user-interface to request > Kbuild to use the absolute path. > If it is forced in the top Makefile, users have no way to > negate it. > It is true that using the absolute path is a quick work-around > because you do not need to care about the current working directory. > > If you insist on it, just go ahead. It is just two line changes. > Once the issue is fixed in a better way, your patch can be reverted easily. > > > Why don't we work on fixing it the wright way? I would rather go that route than using short rem fixes. Usama, would you be interested in working on a proper fix as recommended by Masahiro? thanks, -- Shuah