From: Thorsten Leemhuis fedora@leemhuis.info
apply -Wno-error=unterminated-string-initialization temporarily
Temporarily reduce impact of a warning to satisfy GCC 15, as suggested by Jakub Jelinek in https://bugzilla.redhat.com/show_bug.cgi?id=2338533#c7
Signed-off-by: Thorsten Leemhuis fedora@leemhuis.info
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index blahblah..blahblah 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -20,6 +20,10 @@ KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) KBUILD_CFLAGS += -Wmissing-declarations KBUILD_CFLAGS += -Wmissing-prototypes
+# temporarily disable a warning to allow compiling with gcc15, as suggested by +# Jakub Jelinek in https://bugzilla.redhat.com/show_bug.cgi?id=2338533#c7 +KBUILD_CFLAGS += $(call cc-option,-Wno-error=unterminated-string-initialization) + ifneq ($(CONFIG_FRAME_WARN),0) KBUILD_CFLAGS += -Wframe-larger-than=$(CONFIG_FRAME_WARN) endif
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3611
From: Justin M. Forbes on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3611#note_2415620...
Thanks for the update.
From: Thorsten Leemhuis on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3611#note_2427019...
Based on what I posted in https://lore.kernel.org/all/37e1da82-736f-44a4-af51- 036f9e3182f4@leemhuis.info/ I'd suggest to drop my gcc15 warning hack ("apply -Wno-error=unterminated-string-initialization temporarily") and include https://lore.kernel.org/all/20250310222355.work.417-kees@kernel.org/ from Kees.
Here is a build log on rawhide from today's mainline + Kees' patch: https://download.copr.fedorainfracloud.org/results/thl/scratch/fedora- rawhide-x86_64/08838428-kernel/builder-live.log.gz
Not guarantees though that this will work on rawhide, some other patch in the kernel-ark might interfere. And don't do this for F42, its GCC as of now lacks https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 that Kees' patch relies on.
From: Justin M. Forbes on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3611#note_2429387...
Unfortunately it does not work in rawhide because of aarch64 failures. I will look into those some more, but we are getting closer!
From: Thorsten Leemhuis on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3611#note_2449307...
TWIMC, with 2e43ae7dd71cd9 ("drm/i915/gvt: fix unterminated-string- initialization warning") in v6.15-rc2 now I'm able to build mainline on Fedora using the rawhide config and gcc15 on x86_64, aarch64 and ppc64le just fine (IOW: I do not need püatches like "apply -Wno-error=unterminated-string- initialization temporarily" anymore).
From: Justin M. Forbes on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3611#note_2457753...
Looks like we are good now, thanks. Closing this.
kernel@lists.fedoraproject.org