package/rtl8812au-aircrack-ng: fix build failure due to warnings treated as errors
PATCH 1/1 package/rtl8812au-aircrack-ng: fix build failure due to warnings treated as errors
A the moment build fails because all warnings are treated as errors except only 3 specific ones, but the problem is that there are many warnings that arise with gcc version increasing, so let's simply pass -Werror to ignore every warning in place of the previous 3 specific ignored warnings.
--- package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk +1 -3
@@ -13,9 +13,7 @@ RTL8812AU_AIRCRACK_NG_EXTRA_CFLAGS = \ -DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN \ -DCONFIG_IOCTL_CFG80211 \ -DRTW_USE_CFG80211_STA_EVENT \ - -Wno-error=address \ - -Wno-error=array-bounds \ - -Wno-error=cast-function-type + -Wno-error RTL8812AU_AIRCRACK_NG_MODULE_MAKE_OPTS = \ CONFIG_PLATFORM_I386_PC=n \
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines · Giulio Benetti
A the moment build fails because all warnings are treated as errors except only 3 specific ones, but the problem is that there are many warnings that arise with gcc version increasing, so let's simply pass -Werror to ignore every warning in place of the previous 3 specific ignored warnings.
Fixes:
https://autobuild.buildroot.org/results/05e9cef32f07f05192dab0a23139a81a8980c806/
Quoted 10 lines
Signed-off-by Giulio Benetti <[email protected]>--- package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk +0
-0
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk RTL8812AU_AIRCRACK_NG_EXTRA_CFLAGS = \ · line 19
Quoted 10 lines
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk +1
-3@@ -13,9 +13,7 @@ RTL8812AU_AIRCRACK_NG_EXTRA_CFLAGS = \ -DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN \ -DCONFIG_IOCTL_CFG80211 \ -DRTW_USE_CFG80211_STA_EVENT \ - -Wno-error=address \ - -Wno-error=array-bounds \ - -Wno-error=cast-function-type + -Wno-error RTL8812AU_AIRCRACK_NG_MODULE_MAKE_OPTS = \ CONFIG_PLATFORM_I386_PC=n \
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 7 lines · Giulio Benetti
A the moment build fails because all warnings are treated as errors except only 3 specific ones, but the problem is that there are many warnings that arise with gcc version increasing, so let's simply pass -Werror to ignore every warning in place of the previous 3 specific ignored warnings.
Signed-off-by Giulio Benetti <[email protected]>
There is this patch from you:
https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/
And something that looks somewhat similar from Christian:
https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/
even though they don't take the same approach as fixing the problem.
However, neither can be applied because both commit logs are not sufficient. They are basically saying "fix stuff". We need to understand what broke the build. Is it because of a more recent kernel? A more recent gcc? It did use to build, so why did it start failing? Without this information, we cannot know whether the fix needs to be backported to our LTS branches.
I'm going to mark both pacthes as Changes Requested. Can you respin a better version?
Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot