* Package: sys-kernel/kpatch-0.6.3  * Repository: gentoo  * Maintainer: alicef@gentoo.org  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux kmod kpatch kpatch-build userland_GNU  * FEATURES: compressdebug preserve-libs sandbox splitdebug userpriv usersandbox  * Package: sys-kernel/kpatch-0.6.3  * Repository: gentoo  * Maintainer: alicef@gentoo.org  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux kmod kpatch kpatch-build userland_GNU  * FEATURES: compressdebug preserve-libs sandbox splitdebug userpriv usersandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.2.3-gentoo * Checking for suitable kernel configuration options...  [ ok ] >>> Unpacking source... >>> Unpacking kpatch-0.6.3.tar.gz to /var/tmp/portage/sys-kernel/kpatch-0.6.3/work >>> Source unpacked in /var/tmp/portage/sys-kernel/kpatch-0.6.3/work >>> Preparing source in /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3 ... make -j1 -C kpatch-build make: Entering directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kpatch-build' gcc -march=skylake -O1 -pipe -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -g -Werror -c -o create-diff-object.o create-diff-object.c gcc -march=skylake -O1 -pipe -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -g -Werror -c -o kpatch-elf.o kpatch-elf.c gcc -march=skylake -O1 -pipe -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -g -Werror -c -o lookup.o lookup.c gcc -march=skylake -O1 -pipe -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -g -Werror -c -o insn/insn.o insn/insn.c gcc -march=skylake -O1 -pipe -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -g -Werror -c -o insn/inat.o insn/inat.c gcc -Wl,-O1 -Wl,--as-needed create-diff-object.o kpatch-elf.o lookup.o insn/insn.o insn/inat.o -lelf -o create-diff-object gcc -march=skylake -O1 -pipe -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -g -Werror -c -o create-klp-module.o create-klp-module.c gcc -Wl,-O1 -Wl,--as-needed create-klp-module.o kpatch-elf.o -lelf -o create-klp-module gcc -march=skylake -O1 -pipe -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -g -Werror -c -o create-kpatch-module.o create-kpatch-module.c gcc -Wl,-O1 -Wl,--as-needed create-kpatch-module.o kpatch-elf.o -lelf -o create-kpatch-module make: Leaving directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kpatch-build' make -j1 -C kpatch make: Entering directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kpatch' make: Nothing to be done for 'all'. make: Leaving directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kpatch' make -j1 -C kmod make: Entering directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod' make -C core clean make[1]: Entering directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core' rm -f -Rf .*.o.cmd .*.ko.cmd .tmp_versions *.o *.ko *.mod.c \ Module.symvers make[1]: Leaving directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core' make -C core make[1]: Entering directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core' make -C /lib/modules/5.2.3-gentoo/build M=/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core kpatch.ko make[2]: Entering directory '/usr/src/linux-5.2.3-gentoo' CC [M] /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.o /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:143:15: error: variable β€˜trace’ has initializer but incomplete type 143 | static struct stack_trace trace = { | ^~~~~~~~~~~ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:144:3: error: β€˜struct stack_trace’ has no member named β€˜max_entries’ 144 | .max_entries = ARRAY_SIZE(stack_entries), | ^~~~~~~~~~~ In file included from ./include/linux/list.h:9, from ./include/linux/module.h:9, from /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:37: ./include/linux/kernel.h:47:25: warning: excess elements in struct initializer 47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:144:17: note: in expansion of macro β€˜ARRAY_SIZE’ 144 | .max_entries = ARRAY_SIZE(stack_entries), | ^~~~~~~~~~ ./include/linux/kernel.h:47:25: note: (near initialization for β€˜trace’) 47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:144:17: note: in expansion of macro β€˜ARRAY_SIZE’ 144 | .max_entries = ARRAY_SIZE(stack_entries), | ^~~~~~~~~~ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:145:3: error: β€˜struct stack_trace’ has no member named β€˜entries’ 145 | .entries = &stack_entries[0], | ^~~~~~~ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:145:13: warning: excess elements in struct initializer 145 | .entries = &stack_entries[0], | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:145:13: note: (near initialization for β€˜trace’) /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c: In function β€˜kpatch_verify_activeness_safety’: /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:274:8: error: invalid use of undefined type β€˜struct stack_trace’ 274 | trace.nr_entries = 0; | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:275:3: error: implicit declaration of function β€˜save_stack_trace_tsk’ [-Werror=implicit-function-declaration] 275 | save_stack_trace_tsk(t, &trace); | ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:276:12: error: invalid use of undefined type β€˜struct stack_trace’ 276 | if (trace.nr_entries >= trace.max_entries) { | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:276:32: error: invalid use of undefined type β€˜struct stack_trace’ 276 | if (trace.nr_entries >= trace.max_entries) { | ^ In file included from ./include/linux/kernel.h:15, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:37: /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:279:16: error: invalid use of undefined type β€˜struct stack_trace’ 279 | trace.max_entries); | ^ ./include/linux/printk.h:304:33: note: in definition of macro β€˜pr_err’ 304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:283:38: error: invalid use of undefined type β€˜struct stack_trace’ 283 | for (i = 0; i < trace.nr_entries; i++) { | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:284:13: error: invalid use of undefined type β€˜struct stack_trace’ 284 | if (trace.entries[i] == ULONG_MAX) | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:287:19: error: invalid use of undefined type β€˜struct stack_trace’ 287 | trace.entries[i]); | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:297:24: error: invalid use of undefined type β€˜struct stack_trace’ 297 | for (i = 0; i < trace.nr_entries; i++) { | ^ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:298:13: error: invalid use of undefined type β€˜struct stack_trace’ 298 | if (trace.entries[i] == ULONG_MAX) | ^ In file included from ./include/linux/kernel.h:15, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:37: /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:301:24: error: invalid use of undefined type β€˜struct stack_trace’ 301 | (void *)trace.entries[i], | ^ ./include/linux/printk.h:304:33: note: in definition of macro β€˜pr_err’ 304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:302:24: error: invalid use of undefined type β€˜struct stack_trace’ 302 | (void *)trace.entries[i]); | ^ ./include/linux/printk.h:304:33: note: in definition of macro β€˜pr_err’ 304 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~ /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c: At top level: /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:143:27: error: storage size of β€˜trace’ isn’t known 143 | static struct stack_trace trace = { | ^~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:279: /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.o] Error 1 make[2]: *** [Makefile:1746: kpatch.o] Error 2 make[2]: Leaving directory '/usr/src/linux-5.2.3-gentoo' make[1]: *** [Makefile:13: kpatch.ko] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core' make: *** [Makefile:7: all] Error 2 make: Leaving directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod' * ERROR: sys-kernel/kpatch-0.6.3::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-kernel/kpatch-0.6.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-kernel/kpatch-0.6.3::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-kernel/kpatch-0.6.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/kpatch-0.6.3/temp/environment'. * Working directory: '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3' * S: '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3'