I found(and tested) the patches required to fix this, they are directly downloadable from github:
https://github.com/torvalds/linux/commit/b86729109c5fd0a480300f40608aac68764b5adf.patch
https://github.com/torvalds/linux/commit/80d172431696482d9acd8d2c4ea78fed8956e2a1.patch
or can be seen on the kernel website:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b86729109c5fd0a480300f40608aac68764b5adf
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80d172431696482d9acd8d2c4ea78fed8956e2a1
Related reports(without solution) via google search:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904379
https://lists.gnu.org/archive/html/gm2/2017-11/msg00000.html
I've no idea how you guys got to compile this, I was using the v4.14.57-2 tag and 'make rpms'. Oh,... maybe using gcc 7 not 8?
In case anyone's wondering why the [1] patch is also needed, it is to avoid the following error which results from applying only the [2] patch:
HOSTCXX -fPIC scripts/gcc-plugins/latent_entropy_plugin.o
/home/user/qubes-linux-kernel/kernel-4.14.57/linux-4.14.57/scripts/gcc-plugins/latent_entropy_plugin.c:269:1: error: designator order for field 'attribute_spec::affects_type_identity' does not match declaration order in 'attribute_spec'
};
^
make[3]: *** [scripts/Makefile.host:153: scripts/gcc-plugins/latent_entropy_plugin.o] Error 1
make[2]: *** [scripts/Makefile.gcc-plugins:83: gcc-plugins] Error 2
make[2]: Leaving directory '/home/user/qubes-linux-kernel/kernel-4.14.57/linux-obj'
make[1]: *** [Makefile:146: sub-make] Error 2
make[1]: Leaving directory '/home/user/qubes-linux-kernel/kernel-4.14.57/linux-4.14.57'
error: Bad exit status from /var/tmp/rpm-tmp.TN1Ycw (%prep)