Summary: | sys-kernel/gentoo-kernel-6.1.9: build failure (with gcc-13?) in tools/include/linux/poison.h:27:39: error: pointer of type -Werror=pointer-arith | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | Distribution Kernel Project <dist-kernel> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://gitlab.com/saalen/ansifilter/-/issues/29 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 865117 | ||
Attachments: |
build.log
build.log |
Description
Sam James
2023-02-01 18:30:21 UTC
Created attachment 849644 [details]
build.log
Better log:
```
/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/linux-6.1/tools/include/linux/list.h: In function ‘list_del’:
/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/linux-6.1/tools/include/linux/poison.h:27:39: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith]
27 | #define LIST_POISON1 ((void *) 0x100 + POISON_POINTER_DELTA)
| ^
/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/linux-6.1/tools/include/linux/list.h:108:23: note: in expansion of macro ‘LIST_POISON1’
108 | entry->next = LIST_POISON1;
| ^~~~~~~~~~~~
/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/linux-6.1/tools/include/linux/poison.h:28:39: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith]
28 | #define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
| ^
/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/linux-6.1/tools/include/linux/list.h:109:23: note: in expansion of macro ‘LIST_POISON2’
109 | entry->prev = LIST_POISON2;
| ^~~~~~~~~~~~
[...]
cc1: all warnings being treated as errors
make[4]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/linux-6.1/tools/build/Makefile.build:97: /var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/modprep/tools/objtool/elf.o] Error 1
make -f /var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/linux-6.1/scripts/Makefile.build obj=scripts/mod
cc1: error: cannot load plugin ./scripts/gcc-plugins/randomize_layout_plugin.so: ./scripts/gcc-plugins/randomize_layout_plugin.so: undefined symbol: tree_code_type
cc1: error: cannot load plugin ./scripts/gcc-plugins/randomize_layout_plugin.so: ./scripts/gcc-plugins/randomize_layout_plugin.so: undefined symbol: tree_code_type
make[2]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.8/work/linux-6.1/scripts/Makefile.build:250: scripts/mod/empty.o] Error 1
```
-Wpointer-arith isn't enabled by default, it's from my flags, and kernel doesn't set it by default. It's an upstream issue & not a regression. |