arch/powerpc/lib/xor_vmx.c:14:10: fatal error: 'altivec.h' file not found

From: kernel test robot
Date: Wed Jul 14 2021 - 18:40:26 EST


tree: https://github.com/0day-ci/linux/commits/UPDATE-20210715-014555/Alexey-Dobriyan/Decouple-build-from-userspace-headers/20210714-034924
head: f189675c22efc0acc3b1d1d15220c37aa3cb4fe3
commit: f189675c22efc0acc3b1d1d15220c37aa3cb4fe3 Decouple build from userspace headers
date: 5 hours ago
config: powerpc-randconfig-r014-20210714 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/0day-ci/linux/commit/f189675c22efc0acc3b1d1d15220c37aa3cb4fe3
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210715-014555/Alexey-Dobriyan/Decouple-build-from-userspace-headers/20210714-034924
git checkout f189675c22efc0acc3b1d1d15220c37aa3cb4fe3
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/

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

All errors (new ones prefixed by >>):

>> arch/powerpc/lib/xor_vmx.c:14:10: fatal error: 'altivec.h' file not found
#include <altivec.h>
^~~~~~~~~~~
1 error generated.


vim +14 arch/powerpc/lib/xor_vmx.c

ef1313deafb7ba Anton Blanchard 2013-10-14 @14 #include <altivec.h>
8fe088850f13ea Daniel Axtens 2016-04-26 15 #else
8fe088850f13ea Daniel Axtens 2016-04-26 16 #define vec_xor(a, b) a ^ b
8fe088850f13ea Daniel Axtens 2016-04-26 17 #define vector __attribute__((vector_size(16)))
8fe088850f13ea Daniel Axtens 2016-04-26 18 #endif
ef1313deafb7ba Anton Blanchard 2013-10-14 19

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

Attachment: .config.gz
Description: application/gzip