Skip to contentSkip to conversation

package/rtl8188eu: fix build failure using gcc >= 14

Buildroot Rapha��l M��lotte via buildroot 1 participant 1 message Nov 6

lore
Share & tools
lore
#0 lore raw

commit: https://gitlab.com/buildroot.org/buildroot/-/commit/bb5f6c575083b7828983e92bacd5f68295ef6f6c
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/2026.08.x

Starting with gcc 14, several C diagnostics which were previously warnings are errors by default. In particular, -Wincompatible-pointer-types was changed to a permanent error by GCC commit:
r14-6037-g9715c545d33b3a32ddc1ae817ba9356ade1fb9df
("c: Turn -Wincompatible-pointer-types into a permerror").
So let's workaround this by passing -Wno-error to USER_EXTRA_CFLAGS.

(cherry picked from commit 40a535a386aa3caef0e4f7da4c1f11619b912b5b)
---
 package/rtl8188eu/rtl8188eu.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
package/rtl8188eu/rtl8188eu.mk +6 -1
index 5f378e0b6e..cc4651ed3b 100644
@@ -8,7 +8,12 @@ RTL8188EU_VERSION = cca7c28087db740d7d745e81e4096c9eb9084f9a
 RTL8188EU_SITE = $(call github,benetti-engineering,rtl8188eu,$(RTL8188EU_VERSION))
 RTL8188EU_LICENSE = GPL-2.0, proprietary (rtl8188eufw.bin firmware blob)
 RTL8188EU_LICENSE_FILES = COPYING
-RTL8188EU_MODULE_MAKE_OPTS = CONFIG_RTL8188EU=m
+
+RTL8188EU_EXTRA_CFLAGS = -Wno-error
+
+RTL8188EU_MODULE_MAKE_OPTS = \
+	CONFIG_RTL8188EU=m \
+	USER_EXTRA_CFLAGS="$(RTL8188EU_EXTRA_CFLAGS)"
 
 define RTL8188EU_LINUX_CONFIG_FIXUPS
 	$(call KCONFIG_ENABLE_OPT,CONFIG_NET)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot