I tried to build kernel 5.15 for Rocky Linux 8 with mock. But I failed on tools/iio
The error is gcc can not find the correct headers:
~/build/BUILD/kernel-5.15.19-0.test/linux-5.15.19-0.test.el8.x86_64
~/build/BUILD/kernel-5.15.19-0.test/linux-5.15.19-0.test.el8.x86_64/tools/iio ~/build/BUILD/kernel-5.15.19-0.test/linux-5.15.19-0.test.el8.x86_64
+ popd
+ pushd tools/iio/
+ /usr/bin/make -s 'HOSTCFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'HOSTLDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redha