2022-03-31 10:29:54

by kernel test robot

[permalink] [raw]
Subject: [tools] 206374ed03: perf-sanity-tests.perf.make_fail



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 206374ed03fc512c6addffe56faaece2428c3831 ("tools: bitmap: sync bitmap_weight")
https://github.com/norov/linux bitmap

in testcase: perf-sanity-tests
version: perf-x86_64-f443e374ae13-1_20220321
with following parameters:

perf_compiler: gcc
ucode: 0xec



on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz with 32G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):




If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>


/usr/src/perf_selftests-x86_64-rhel-8.3-func-206374ed03fc512c6addffe56faaece2428c3831/tools/perf/../lib/bitmap.c:21:5: error: conflicting types for ‘__bitmap_weight_c
mp’
int __bitmap_weight_cmp(const unsigned long *bitmap, unsigned int bits, int num)
^~~~~~~~~~~~~~~~~~~
In file included from /usr/src/perf_selftests-x86_64-rhel-8.3-func-206374ed03fc512c6addffe56faaece2428c3831/tools/perf/../lib/bitmap.c:6:
/usr/src/perf_selftests-x86_64-rhel-8.3-func-206374ed03fc512c6addffe56faaece2428c3831/tools/include/linux/bitmap.h:15:5: note: previous declaration of ‘__bitmap_weigh
t_cmp’ was here
int __bitmap_weight_cmp(const unsigned long *bitmap, unsigned int bits,
^~~~~~~~~~~~~~~~~~~
/usr/src/perf_selftests-x86_64-rhel-8.3-func-206374ed03fc512c6addffe56faaece2428c3831/tools/perf/../lib/bitmap.c: In function ‘__bitmap_weight_cmp’:
/usr/src/perf_selftests-x86_64-rhel-8.3-func-206374ed03fc512c6addffe56faaece2428c3831/tools/perf/../lib/bitmap.c:26:36: error: comparison of integer expressions of di
fferent signedness: ‘unsigned int’ and ‘int’ [-Werror=sign-compare]
if (w + bits - k * BITS_PER_LONG < num)
^
/usr/src/perf_selftests-x86_64-rhel-8.3-func-206374ed03fc512c6addffe56faaece2428c3831/tools/perf/../lib/bitmap.c:31:9: error: comparison of integer expressions of dif
ferent signedness: ‘unsigned int’ and ‘int’ [-Werror=sign-compare]
if (w > num)
^
cc1: all warnings being treated as errors
error: command 'gcc' failed with exit status 1
cp: cannot stat 'python_ext_build/lib/perf*.so': No such file or directory
make[2]: *** [Makefile.perf:639: python/perf.so] Error 1
make[2]: *** Waiting for unfinished jobs....



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



Attachments:
(No filename) (2.83 kB)
config-5.17.0-11447-g206374ed03fc (47.19 kB)
output (22.85 kB)
Download all attachments