Re: arch/powerpc/boot/../../../lib/xz/xz_crc32.c:18:10: fatal error: linux/crc32poly.h: No such file or directory
From: Krzysztof Kozlowski
Date: Wed Aug 29 2018 - 03:54:23 EST
On Thu, 23 Aug 2018 at 05:44, kbuild test robot <lkp@xxxxxxxxx> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 815f0ddb346c196018d4d8f8f55c12b83da1de3f
> commit: faa16bc404d72a5afb857c924c83a5f691f83386 lib: Use existing define with polynomial
> date: 4 weeks ago
> config: powerpc-skiroot_defconfig (attached as .config)
> compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout faa16bc404d72a5afb857c924c83a5f691f83386
> # save the attached .config to linux build tree
> GCC_VERSION=7.2.0 make.cross ARCH=powerpc
>
> All errors (new ones prefixed by >>):
>
> In file included from arch/powerpc/boot/../../../lib/decompress_unxz.c:233:0,
> from arch/powerpc/boot/decompress.c:42:
> >> arch/powerpc/boot/../../../lib/xz/xz_crc32.c:18:10: fatal error: linux/crc32poly.h: No such file or directory
> #include <linux/crc32poly.h>
> ^~~~~~~~~~~~~~~~~~~
> compilation terminated.
>
> vim +18 arch/powerpc/boot/../../../lib/xz/xz_crc32.c
>
> > 18 #include <linux/crc32poly.h>
> 19 #include "xz_private.h"
> 20
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
Sorry for late reply, I was on vacation.
Reported also few days later by Michal Kubecek:
https://lkml.org/lkml/2018/8/28/863
I fixed it here:
https://patchwork.ozlabs.org/patch/963258/
Best regards,
Krzysztof