[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1114556: gcc-15 / 14 in unstable can't build stable kenels anymore



On 9/7/25 00:17, Wolfgang Walter wrote:
Package: gcc-15
Version: 15.2.0-3

I cannot build stable kernels (6.16.4 or 5) for amd64 anymore. I get a lot errors like that:

...
vmlinux.o: error: objtool: .sframe+0x104a80: data relocation to !ENDBR: time_and_date+0x0 vmlinux.o: error: objtool: .sframe+0x104a94: data relocation to !ENDBR: range_string.isra.0+0x0 vmlinux.o: error: objtool: .sframe+0x104aa8: data relocation to !ENDBR: mac_address_string+0x0 vmlinux.o: error: objtool: .sframe+0x104abc: data relocation to !ENDBR: bdev_name.isra.0+0x0 vmlinux.o: error: objtool: .sframe+0x104ad0: data relocation to !ENDBR: bdev_name.isra.0.cold+0x0
...

gcc-14 does not work either.

When 6.14.4 came out I could compile it, so I assume it's a newer problem in gcc-15/14

that will be reverted in the next upload. For now you can work around it with


diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -886,6 +886,8 @@ ifdef CONFIG_CC_IS_GCC
 KBUILD_CFLAGS	+= $(call cc-option,--param=allow-store-data-races=0)
 KBUILD_CFLAGS	+= $(call cc-option,-fno-allow-store-data-races)
 endif
+# No sframe generation for kernel if enabled by default
+KBUILD_CFLAGS	+= $(call cc-option,-Xassembler --gsframe=no)

 ifdef CONFIG_READABLE_ASM
 # Disable optimizations that make assembler listings hard to read.


Reply to: