Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3837384ybn; Fri, 27 Sep 2019 12:06:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdxc6gjes2Q8DPpwiWTrCRy4FMyqAB8uXl+E0MlSdpH/n9ZLiF4Yl1RY2+2JfKoLfC61tn X-Received: by 2002:a17:906:c82d:: with SMTP id dd13mr8996612ejb.169.1569611190430; Fri, 27 Sep 2019 12:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569611190; cv=none; d=google.com; s=arc-20160816; b=jcwMllOD6ryjobbyMdrQdvwF2jNOezqroH2wiZK/E9dyo/Y9VJbX6EEkhcgAHo0Wx7 Om5si7/Ut8xNgHymy9VmYNFxbVYwD0roTp3Jc3IpcDIN12sSiKGpUzRrT7x5LUjpjdIh wvXEw4YUyJmrOa5DcHQnOEegB7wx6uk0ugSPLU/YFsA6jR5xf+w9n4sSXfKENvqAMo9J aZbBvcixu/5CK6Pl5rTllSkast8lxoncXMBuCf0bZZmncjqlz6L2R1jefHkmHhG2kqmx Gqp7mjGfsKwlBWMIFKsnLSQJEBrP+emIAt+BVRWt+Y++c5sYCotvMWsJ8FLKV9OjZtDR ObSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=E+qSxd+B5mAgasMeWMwc/UaJE1Xo8BpaT5oY9Q4d4wI=; b=fdSNVUTlsDi1gX6V6tKlPvPEUSbxyI76K1pU/bBt8kgfkBuDdjCa0t6w1MvehApUTw no4hXbcEo3SdCEm3gK29pQEH+i7GD6XZVzc4pMfe+OQM1XYwY6VE8IfiXMbX96Gau4J3 W88W8YDWUtc67FTfhO7Z0pYV9DremUnmtkUNvjn8UeUflBW5nf6ARbBkbuBR1oTfxP0Q PuEFVVsToE75WL+I8L7OKAXS3Cy63QIbKpGaouz2C9mGcgF5+yPgAoXE/EaYt4aN0uG5 ravb4Ip2CKKZkvHrtk+MViIOa8FpDj2d7c5/FiHnoNnThDy9o4DHajs7ZCxQCmp4jhIS yhBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=M8LKNRgS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si3295408ejp.350.2019.09.27.12.06.05; Fri, 27 Sep 2019 12:06:30 -0700 (PDT) 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=@linuxfoundation.org header.s=google header.b=M8LKNRgS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726740AbfI0TD0 (ORCPT + 99 others); Fri, 27 Sep 2019 15:03:26 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:41606 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbfI0TD0 (ORCPT ); Fri, 27 Sep 2019 15:03:26 -0400 Received: by mail-io1-f67.google.com with SMTP id r26so19011133ioh.8 for ; Fri, 27 Sep 2019 12:03:26 -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=E+qSxd+B5mAgasMeWMwc/UaJE1Xo8BpaT5oY9Q4d4wI=; b=M8LKNRgSLYPUMGMl7I2w8aeFVONEoHT740JVrcttiLb0emgEnbPRGT4xrNWwgYTm37 OYNW6NeTPL8JAoxJiQp3ZD+GURM321crEPdivjuooi6+G0LevLZMWHea0ZcquoFLMi6X 7mQnLMIvY0JkTKn2G61mO5yjE9LrSYKzP5TsE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=E+qSxd+B5mAgasMeWMwc/UaJE1Xo8BpaT5oY9Q4d4wI=; b=RpKqKJvhJ1LbZRh5t7Xz2RNezlU5r247BZEL1gTGIFeTX92UM8h6R2H9492UBnSCfn dxDgSHHrzLpHbaPM6AFmCRe0tt6hDkhoGskwXlhoMt4xSX2H8nol+ku4taydNt34t38v l2/tHMvz9SpKH8LSDNI53wi3WVQu4wy+b2inpMSEUdsSbf8XwWXlX6B+7DfepsXVnNMZ 6WXyNqrE0IQePFUUy5b1yfmREsrO8kJp56uLCIPLNT/Pf3+U/pCZNOHI3aMWwLT04cOZ AVstbvgAh5A1XQ04pCw8NJTbE2dxS/f9DxUpi3c7Qa6rG8m3BBZ9fGjlUnWx5+SCocGT r4mA== X-Gm-Message-State: APjAAAVuXfwYT4Y1QlhWpncSVLhw+PpsWx297D4RVRQYmCuN35F0wmRi lo3iLCLIVZQB2H2ZyU1Z1CyzAA== X-Received: by 2002:a5d:89da:: with SMTP id a26mr9289421iot.61.1569611005604; Fri, 27 Sep 2019 12:03:25 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id t17sm2519972ioc.18.2019.09.27.12.03.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Sep 2019 12:03:24 -0700 (PDT) Subject: Re: [PATCH] tools: bpf: Use !building_out_of_srctree to determine srctree To: Song Liu Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Networking , bpf , open list , linux-kselftest@vger.kernel.org, Shuah Khan References: <20190927011344.4695-1-skhan@linuxfoundation.org> From: Shuah Khan Message-ID: <5ec40572-5df9-0e5b-5a85-eb53be48b87d@linuxfoundation.org> Date: Fri, 27 Sep 2019 13:03:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/27/19 12:44 PM, Song Liu wrote: > On Thu, Sep 26, 2019 at 6:14 PM Shuah Khan wrote: >> >> make TARGETS=bpf kselftest fails with: >> >> Makefile:127: tools/build/Makefile.include: No such file or directory >> >> When the bpf tool make is invoked from tools Makefile, srctree is >> cleared and the current logic check for srctree equals to empty >> string to determine srctree location from CURDIR. >> >> When the build in invoked from selftests/bpf Makefile, the srctree >> is set to "." and the same logic used for srctree equals to empty is >> needed to determine srctree. >> >> Check building_out_of_srctree undefined as the condition for both >> cases to fix "make TARGETS=bpf kselftest" build failure. >> >> Signed-off-by: Shuah Khan > > The fix looks reasonable. Thanks! > > However, I am still seeing some failure: > > make TARGETS=bpf kselftest > [...] > test_verifier.c > /data/users/songliubraving/kernel/linux-git/tools/testing/selftests/bpf/test_stub.o > /data/users/songliubraving/kernel/linux-git/tools/testing/selftests/bpf/libbpf.a > -lcap -lelf -lrt -lpthread -o > /data/users/songliubraving/kernel/linux-git/tools/testing/selftests/bpf/test_verifier > make[3]: test_verifier.c: Command not found > > Is this just a problem with my setup? > You are running into the second bpf failure because of the dependency on the latest llvm. This is known issue with bpf test and it doesn't compile on 5.4 and maybe even 5.3 You have upgrade to the bleeding edge llvm. thanks, -- Shuah