mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Muhammad Usama Anjum <usama.anjum@collabora.com>
To: Naresh Kamboju <naresh.kamboju@linaro.org>,
	Linux-Next Mailing List <linux-next@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:KERNEL SELFTEST FRAMEWORK" 
	<linux-kselftest@vger.kernel.org>,
	lkft-triage@lists.linaro.org
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>,
	Shuah Khan <shuah@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>,
	John Hubbard <jhubbard@nvidia.com>,
	David Hildenbrand <david@redhat.com>,
	Jonathan Corbet <corbet@lwn.net>, Peter Xu <peterx@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Anders Roxell <anders.roxell@linaro.org>
Subject: Re: selftests: -e error: missing kernel header files. Please run this and try again
Date: Thu, 8 Jun 2023 13:39:11 +0500	[thread overview]
Message-ID: <11b94ce7-d7e3-1935-307b-5a0a0f32739f@collabora.com> (raw)
In-Reply-To: <CA+G9fYueMV2gFF0sYR4Lf3btcEoxMpOy0_YvpjvS26WFZ2pcBA@mail.gmail.com>

On 6/8/23 1:21 PM, Naresh Kamboju wrote:
> The make kselftest-install failed on Linux next 20230608.
> 
> make --silent --keep-going --jobs=8
> O=/home/tuxbuild/.cache/tuxmake/builds/1/build
> INSTALL_PATH=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest_install
> ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- 'HOSTCC=sccache clang'
> 'CC=sccache clang' LLVM=1 LLVM_IAS=1 kselftest-install
Around 6-8 months ago, selftests used to build kernel headers from the
source tree automatically and were using those to build all applications.
But this behavior got changed where user need to build header manually
first before building kselftest because auto header build was in-consistent
in some cases.

So from several months people, who were unaware of this are building
kselftests with installed kernel headers in their distro. This was creating
failure for some newer tests for people. They didn't know that selftests
are supposed to build with kernel headers from source instead from locally
installed headers in distro. So a patch has been introduced which spits
error if kernel headers aren't built already:
https://lore.kernel.org/all/20230606071637.267103-12-jhubbard@nvidia.com

To fix things for your case, please build kernel headers by `make headers
...` and then build kselftests. The error is trying to say the same thing.

> 
> make[3]: Entering directory '/builds/linux/tools/testing/selftests/alsa'
> 
> -e error: missing kernel header files.
> Please run this and try again:
> 
>     cd /builds/linux/tools/testing/selftests/../../..
>     make headers
> 
> make[3]: Leaving directory '/builds/linux/tools/testing/selftests/alsa'
> make[3]: *** [../lib.mk:77: kernel_header_files] Error 1
> 
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> 
> Links,
> ===
> https://storage.tuxsuite.com/public/linaro/lkft/builds/2QsWmEgSFF9iwodTUrWsdopV4Qp/
> 
> --
> Linaro LKFT
> https://lkft.linaro.org

-- 
BR,
Muhammad Usama Anjum

      reply	other threads:[~2023-06-08  8:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-08  8:21 Naresh Kamboju
2023-06-08  8:39 ` Muhammad Usama Anjum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11b94ce7-d7e3-1935-307b-5a0a0f32739f@collabora.com \
    --to=usama.anjum@collabora.com \
    --cc=akpm@linux-foundation.org \
    --cc=anders.roxell@linaro.org \
    --cc=corbet@lwn.net \
    --cc=david@redhat.com \
    --cc=jhubbard@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=lkft-triage@lists.linaro.org \
    --cc=naresh.kamboju@linaro.org \
    --cc=nathan@kernel.org \
    --cc=peterx@redhat.com \
    --cc=shuah@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®