Re: [PATCH v3 11/11] selftests: error out if kernel header files are not yet built
From: Muhammad Usama Anjum
Date: Tue Jun 06 2023 - 03:38:21 EST
On 6/6/23 12:16 PM, John Hubbard wrote:
> As per a discussion with Muhammad Usama Anjum [1], the following is how
> one is supposed to build selftests:
>
> make headers && make -C tools/testing/selftests/mm
>
> Change the selftest build system's lib.mk to fail out with a helpful
> message if that prerequisite "make headers" has not been done yet.
>
> [1] https://lore.kernel.org/all/bf910fa5-0c96-3707-cce4-5bcc656b6274@xxxxxxxxxxxxx/
>
> Cc: David Hildenbrand <david@xxxxxxxxxx>
> Cc: Peter Xu <peterx@xxxxxxxxxx>
> Cc: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>
> Cc: Jonathan Corbet <corbet@xxxxxxx>
> Cc: linux-doc@xxxxxxxxxxxxxxx
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
> ---
> tools/testing/selftests/lib.mk | 36 +++++++++++++++++++++++++++++++---
> 1 file changed, 33 insertions(+), 3 deletions(-)
>
> diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
> index 05400462c779..b8ea03b9a015 100644
> --- a/tools/testing/selftests/lib.mk
> +++ b/tools/testing/selftests/lib.mk
> @@ -44,10 +44,22 @@ endif
> selfdir = $(realpath $(dir $(filter %/lib.mk,$(MAKEFILE_LIST))))
> top_srcdir = $(selfdir)/../../..
>
> -ifeq ($(KHDR_INCLUDES),)
> -KHDR_INCLUDES := -isystem $(top_srcdir)/usr/include
> +ifneq ($(KBUILD_OUTPUT),)
> + # Make's built-in functions such as $(abspath ...), $(realpath ...) cannot
> + # expand a shell special character '~'. We use a somewhat tedious way here.
> + abs_objtree := $(shell cd $(top_srcdir) && mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) && pwd)
> + $(if $(abs_objtree),, \
> + $(error failed to create output directory "$(KBUILD_OUTPUT)"))
> + # $(realpath ...) resolves symlinks
> + abs_objtree := $(realpath $(abs_objtree))
> + KHDR_DIR := ${abs_objtree}/usr/include
> +else
> + abs_srctree := $(shell cd $(top_srcdir) && pwd)
> + KHDR_DIR := ${abs_srctree}/usr/include
> endif
>
> +KHDR_INCLUDES := -isystem $(KHDR_DIR)
> +
> # The following are built by lib.mk common compile rules.
> # TEST_CUSTOM_PROGS should be used by tests that require
> # custom build rule and prevent common build rule use.
> @@ -58,7 +70,25 @@ TEST_GEN_PROGS := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS))
> TEST_GEN_PROGS_EXTENDED := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS_EXTENDED))
> TEST_GEN_FILES := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_FILES))
>
> -all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES)
> +all: kernel_header_files $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) \
> + $(TEST_GEN_FILES)
> +
> +kernel_header_files:
> + @ls $(KHDR_DIR)/linux/*.h >/dev/null 2>/dev/null; \
> + if [ $$? -ne 0 ]; then \
> + RED='\033[1;31m'; \
> + NOCOLOR='\033[0m'; \
> + echo; \
> + echo -e "$${RED}error$${NOCOLOR}: missing kernel header files."; \
> + echo "Please run this and try again:"; \
> + echo; \
> + echo " cd $(top_srcdir)"; \
> + echo " make headers"; \
> + echo; \
> + exit 1; \
> + fi
Thank you for adding this. This is outputting error for every selftest
directory. We should try to make it even better by just aborting the
Make-ing process the first time headers aren't detected. We can do this now
or later, fine by me.
make[1]: Entering directory
'/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/futex'
-e error: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: *** [../lib.mk:77: kernel_header_files] Error 1
make[1]: Leaving directory
'/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/futex'
make[1]: Entering directory
'/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/gpio'
-e error: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: *** [../lib.mk:77: kernel_header_files] Error 1
make[1]: Leaving directory
'/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/gpio'
m
Complete error log file is attached.
> +
> +.PHONY: kernel_header_files
>
> define RUN_TESTS
> BASE_DIR="$(selfdir)"; \
--
BR,
Muhammad Usama Anjummake: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/alsa'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/alsa'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/amd-pstate'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/amd-pstate'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/arm64'
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/arm64'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/breakpoints'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/breakpoints'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/cachestat'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/cachestat'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/capabilities'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/capabilities'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/cgroup'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/cgroup'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/clone3'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/clone3'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/core'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/core'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/cpufreq'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/cpufreq'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/cpu-hotplug'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/cpu-hotplug'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/damon'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/damon'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/drivers/dma-buf'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/drivers/dma-buf'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/drivers/s390x/uvdevice'
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/drivers/s390x/uvdevice'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/drivers/net/bonding'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/drivers/net/bonding'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/drivers/net/team'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/drivers/net/team'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/efivarfs'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/efivarfs'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/exec'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/exec'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/filesystems'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/filesystems'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/filesystems/binderfs'
make[1]: 'binderfs_test' is up to date.
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/filesystems/binderfs'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/filesystems/epoll'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/filesystems/epoll'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/filesystems/fat'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/filesystems/fat'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/firmware'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/firmware'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/fpu'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/fpu'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/ftrace'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/ftrace'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/futex'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/futex'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/gpio'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/gpio'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/hid'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/hid'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/intel_pstate'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/intel_pstate'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/iommu'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/iommu'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/ipc'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/ipc'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/ir'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/ir'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/kcmp'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/kcmp'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/kexec'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/kexec'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/kvm'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/kvm'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/landlock'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/landlock'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/lib'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/lib'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/livepatch'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/livepatch'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/lkdtm'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/lkdtm'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/membarrier'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/membarrier'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/memfd'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/memfd'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/memory-hotplug'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/memory-hotplug'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mincore'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mincore'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mount'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mount'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mount_setattr'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mount_setattr'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/move_mount_set_group'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/move_mount_set_group'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mqueue'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mqueue'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/nci'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/nci'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/af_unix'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/af_unix'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/forwarding'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/forwarding'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/hsr'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/hsr'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/mptcp'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/mptcp'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/openvswitch'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/net/openvswitch'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/netfilter'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/netfilter'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/nsfs'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/nsfs'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/pidfd'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/pidfd'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/pid_namespace'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/pid_namespace'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/powerpc'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/powerpc'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/prctl'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/prctl'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/proc'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/proc'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/pstore'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/pstore'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/ptrace'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/ptrace'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/openat2'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/openat2'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/resctrl'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/resctrl'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/riscv'
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/riscv'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/rlimits'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/rlimits'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/rseq'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/rseq'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/rtc'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/rtc'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/seccomp'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/seccomp'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sgx'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sgx'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sigaltstack'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sigaltstack'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/size'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/size'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sparc64'
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sparc64'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/splice'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/splice'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/static_keys'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/static_keys'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sync'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sync'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/syscall_user_dispatch'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/syscall_user_dispatch'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sysctl'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/sysctl'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/tc-testing'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/tc-testing'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/tdx'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/tdx'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/timens'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/timens'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/timers'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/timers'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/tmpfs'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/tmpfs'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/tpm2'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/tpm2'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/user'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/user'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/vDSO'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/vDSO'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mm'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/mm'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/x86'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/x86'
make[1]: Entering directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/zram'
-e [1;31merror[0m: missing kernel header files.
Please run this and try again:
cd /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/../../..
make headers
make[1]: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests/zram'
make: Leaving directory '/home/usama/repos/kernel/linux_mainline/tools/testing/selftests'