From: John Hubbard <jhubbard@nvidia.com>
To: Mark Brown <broonie@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Anders Roxell <anders.roxell@linaro.org>,
Muhammad Usama Anjum <usama.anjum@collabora.com>,
<linux-kselftest@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] selftests: Fix arm64 test installation
Date: Mon, 10 Jul 2023 14:31:56 -0700 [thread overview]
Message-ID: <ec86c0eb-5c6d-48a2-c216-ec4f40710ca1@nvidia.com> (raw)
In-Reply-To: <ZKx17G7ULaQox7Xo@finisterre.sirena.org.uk>
On 7/10/23 14:20, Mark Brown wrote:
> On Mon, Jul 10, 2023 at 01:22:41PM -0700, John Hubbard wrote:
>
>> There are 30 or 50 other pre-existing arm64 selftest build failures which were
>> quite misleading at first, until I got into the "right" selftests mindset of,
>> "massive swaths of selftests are broken, deal with it". :)
>
> There are no such thing as far as I am aware - the arm64 selftests are
> *very* actively used by a range of people and CI systems, I certainly
> build them pretty consistently and am aware of no build failures with
> either GCC or clang. You do need to install the headers to get the
> current APIs but until your commit everything was building cleanly.
>
> If you are seeing any problems please report them.
oh wow, yes, I am! It's on a slightly older installation (gcc version
8.5.0 20210514 (Red Hat 8.5.0-18)), but there are a lot of basic build
failures, I'll get them together and send out a note.
Meanwhile, if you would like to try a quick fix, I have one that fixes
the problem on my system. I'm inclined to dress it up with a comment
that explains it (with a "TODO: stop using recursive Make here"), and
send it out as an actual fix:
diff --git a/tools/testing/selftests/arm64/Makefile b/tools/testing/selftests/arm64/Makefile
index 9460cbe81bcc..ace8b67fb22d 100644
--- a/tools/testing/selftests/arm64/Makefile
+++ b/tools/testing/selftests/arm64/Makefile
@@ -42,7 +42,7 @@ run_tests: all
done
# Avoid any output on non arm64 on emit_tests
-emit_tests: all
+emit_tests:
@for DIR in $(ARM64_SUBTARGETS); do \
BUILD_TARGET=$(OUTPUT)/$$DIR; \
make OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
<blueforge> arm64 (master)$
thanks,
--
John Hubbard
NVIDIA
next prev parent reply other threads:[~2023-07-10 21:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 14:04 [PATCH] selftests: Fix arm64 test installation Mark Brown
2023-07-10 20:22 ` John Hubbard
2023-07-10 21:20 ` Mark Brown
2023-07-10 21:31 ` John Hubbard [this message]
2023-07-10 22:30 ` Mark Brown
2023-07-10 23:10 ` John Hubbard
2023-07-11 14:00 ` Mark Brown
2023-07-13 20:02 ` Shuah Khan
2023-07-13 20:16 ` John Hubbard
2023-07-14 17:48 ` Shuah Khan
2023-07-14 18:09 ` Mark Brown
2023-07-14 18:19 ` John Hubbard
2023-07-14 18:26 ` Andrew Morton
2023-07-14 18:32 ` Shuah Khan
2023-07-14 18:36 ` John Hubbard
2023-07-14 19:11 ` Shuah Khan
2023-07-14 19:39 ` John Hubbard
2023-07-18 14:54 ` Mark Brown
2023-07-18 14:56 ` Shuah Khan
2023-07-18 14:57 ` Mark Brown
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=ec86c0eb-5c6d-48a2-c216-ec4f40710ca1@nvidia.com \
--to=jhubbard@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=anders.roxell@linaro.org \
--cc=broonie@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=usama.anjum@collabora.com \
/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