[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202210081618.754a77db-yujie.liu@intel.com>
Date: Sat, 8 Oct 2022 16:57:43 +0800
From: kernel test robot <yujie.liu@...el.com>
To: Willy Tarreau <w@....eu>
CC: <lkp@...ts.01.org>, <lkp@...el.com>,
"Paul E. McKenney" <paulmck@...nel.org>,
<linux-kernel@...r.kernel.org>, <linux-kselftest@...r.kernel.org>
Subject: [selftests/nolibc] 362aecb2d8: kernel-selftests.nolibc.make_fail
Greeting,
FYI, we noticed the following commit:
commit: 362aecb2d8cfad0268d6c0ae5f448e9b6eee7ffb ("selftests/nolibc: add basic infrastructure to ease creation of nolibc tests")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
in testcase: kernel-selftests
version: kernel-selftests-x86_64-700a8991-1_20220823
with following parameters:
group: group-02
test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: 4 threads Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz (Skylake) with 16G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
2022-10-02 10:04:53 make TARGETS=nolibc
make[1]: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-362aecb2d8cfad0268d6c0ae5f448e9b6eee7ffb/tools/testing/selftests/nolibc'
CC nolibc-test
/usr/bin/ld: /tmp/cccOWbdp.o: in function `printf':
nolibc-test.c:(.text+0x369): undefined reference to `strlen'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:31: nolibc-test] Error 1
make[1]: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-362aecb2d8cfad0268d6c0ae5f448e9b6eee7ffb/tools/testing/selftests/nolibc'
make: *** [Makefile:155: all] Error 2
2022-10-02 10:04:53 make -C nolibc
make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-362aecb2d8cfad0268d6c0ae5f448e9b6eee7ffb/tools/testing/selftests/nolibc'
CC nolibc-test
/usr/bin/ld: /tmp/lkp/ccP4fovP.o: in function `printf':
nolibc-test.c:(.text+0x369): undefined reference to `strlen'
collect2: error: ld returned 1 exit status
make: *** [Makefile:31: nolibc-test] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-362aecb2d8cfad0268d6c0ae5f448e9b6eee7ffb/tools/testing/selftests/nolibc'
2022-10-02 10:04:54 make quicktest=1 run_tests -C nolibc
make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-362aecb2d8cfad0268d6c0ae5f448e9b6eee7ffb/tools/testing/selftests/nolibc'
make: *** No rule to make target 'run_tests'. Stop.
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-362aecb2d8cfad0268d6c0ae5f448e9b6eee7ffb/tools/testing/selftests/nolibc'
This error only happens when build with gcc-12, while gcc-11 and gcc-9
build fine. We are not sure whether this is a compiler issue or a kernel
code issue, so we send this report FYI. Below link may be helpful for
analysis:
https://www.spinics.net/lists/fedora-devel/msg296395.html
If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <yujie.liu@...el.com>
| Link: https://lore.kernel.org/r/202210081618.754a77db-yujie.liu@intel.com
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
sudo bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
sudo bin/lkp run generated-yaml-file
# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config-6.0.0-rc1-00004-g362aecb2d8cf" of type "text/plain" (168276 bytes)
View attachment "job-script" of type "text/plain" (6975 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (64256 bytes)
View attachment "kernel-selftests" of type "text/plain" (74116 bytes)
View attachment "job.yaml" of type "text/plain" (5851 bytes)
View attachment "reproduce" of type "text/plain" (1359 bytes)
Powered by blists - more mailing lists