tree:
https://github.com/oracle/dtrace-linux-kernel v1/5.9
head: c731ef8ca2d64eacba761c43f05a59bc6054ad6a
commit: 3f8362ef4278ebed1ebd530f0cc4d15c0db6fe22 [4/22] dtrace: core and x86
config: x86_64-randconfig-s022-20201012 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-rc1-dirty
#
https://github.com/oracle/dtrace-linux-kernel/commit/3f8362ef4278ebed1ebd...
git remote add oracle-dtrace-linux-kernel
https://github.com/oracle/dtrace-linux-kernel
git fetch --no-tags oracle-dtrace-linux-kernel v1/5.9
git checkout 3f8362ef4278ebed1ebd530f0cc4d15c0db6fe22
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
WARNING: unmet direct dependencies detected for CTF
Depends on DEBUG_INFO && !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT
&& !DEBUG_INFO_DWARF4 && DTRACE
Selected by
- DTRACE && ARCH_SUPPORTS_DTRACE
> scripts/dwarf2ctf/dwarf2ctf.c:33:10: fatal error: sys/ctf_api.h:
No such file or directory
33 | #include <sys/ctf_api.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
Makefile arch include kernel scripts source tools usr [scripts/Makefile.host:112:
scripts/dwarf2ctf/dwarf2ctf.o] Error 1
Target '__build' not remade because of errors.
Makefile arch include kernel scripts source tools usr [scripts/Makefile.build:500:
scripts/dwarf2ctf] Error 2
Target '__build' not remade because of errors.
Makefile arch include kernel scripts source tools usr [Makefile:1183: scripts] Error 2
Target 'prepare' not remade because of errors.
make: Makefile arch include kernel scripts source tools usr [Makefile:185: __sub-make]
Error 2
make: Target 'prepare' not remade because of errors.
vim +33 scripts/dwarf2ctf/dwarf2ctf.c
c9c0769a51b6cb Nick Alcock 2018-11-14 27
c9c0769a51b6cb Nick Alcock 2018-11-14 28 #include <libelf.h>
c9c0769a51b6cb Nick Alcock 2018-11-14 29 #include <dwarf.h>
c9c0769a51b6cb Nick Alcock 2018-11-14 30 #include <elfutils/libdwfl.h>
c9c0769a51b6cb Nick Alcock 2018-11-14 31 #include <elfutils/libdw.h>
c9c0769a51b6cb Nick Alcock 2018-11-14 32 #include <elfutils/version.h>
c9c0769a51b6cb Nick Alcock 2018-11-14 @33 #include <sys/ctf_api.h>
c9c0769a51b6cb Nick Alcock 2018-11-14 34 #include <glib.h>
c9c0769a51b6cb Nick Alcock 2018-11-14 35
:::::: The code at line 33 was first introduced by commit
:::::: c9c0769a51b6cbd4236ae61e50f7c42543b96b18 ctf: generate CTF information for the
kernel
:::::: TO: Nick Alcock <nick.alcock(a)oracle.com>
:::::: CC: Nick Alcock <nick.alcock(a)oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org