[mingo-tip:sched/headers 1502/2383] ./usr/include/asm-generic/bpf_perf_event.h:4:10: fatal error: 'uapi/linux/ptrace.h' file not found

From: kernel test robot
Date: Fri Jan 14 2022 - 15:28:29 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: d772004cd069a1947a890ccc8346e922f866ba1e
commit: b5253c772f85973787772c6bd4ee3026cd5d9386 [1502/2383] headers/deps: bpf: Use <uapi/linux/ptrace.h> in <uapi/asm-generic/bpf_perf_event.h>
config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20220115/202201150437.qy7o7fCa-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d1021978b8e7e35dcc30201ca1731d64b5a602a8)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=b5253c772f85973787772c6bd4ee3026cd5d9386
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout b5253c772f85973787772c6bd4ee3026cd5d9386
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from <built-in>:1:
In file included from ./usr/include/asm/bpf_perf_event.h:1:
>> ./usr/include/asm-generic/bpf_perf_event.h:4:10: fatal error: 'uapi/linux/ptrace.h' file not found
#include <uapi/linux/ptrace.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx