Re: [PATCH] tools: bpf: Use !building_out_of_srctree to determine srctree
From: Shuah Khan <skhan@linuxfoundation.org>
Date: 2019-09-27 19:03:27
Also in:
bpf, linux-kselftest, lkml
From: Shuah Khan <skhan@linuxfoundation.org>
Date: 2019-09-27 19:03:27
Also in:
bpf, linux-kselftest, lkml
On 9/27/19 12:44 PM, Song Liu wrote:
On Thu, Sep 26, 2019 at 6:14 PM Shuah Khan [off-list ref] wrote:quoted
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 <skhan@linuxfoundation.org>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