(no subject)
Thanks Luca!
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 package/m4: fix build failure with gcc 15
This is a temporary workaround to address build issues with host-m4 when using GCC 15, as encountered on the recently released Fedora 42. The issue stems from stricter compiler behavior introduced in recent versions of GCC.
A proper fix has already been committed upstream and will be included in the next release of GNU m4:
https://git.savannah.gnu.org/cgit/m4.git/commit/?h=branch-1.4&id=a22c9802dd7e724eaefb21dc21d84ac2d3a49c89
Until that version is available in buildroot, this patch ensures continued compatibility and successful builds.
More context:
https://lists.buildroot.org/pipermail/buildroot/2025-April/776922.html
---
Changes v1 -> v2:
- reworded commit message (no diff changes)
package/m4/m4.mk | 2 ++ 1 file changed, 2 insertions(+)
package/m4/m4.mk +2 -0
@@ -10,4 +10,6 @@ M4_SITE = $(BR2_GNU_MIRROR)/m4 M4_LICENSE = GPL-3.0+ M4_LICENSE_FILES = COPYING +HOST_M4_CONF_ENV = CFLAGS="$(HOST_CFLAGS) -std=gnu17" + $(eval $(host-autotools-package))
Signature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2] package/m4: fix build failure with gcc 15
Hi Joseph,
Quoted 7 lines · Joseph Zikusooka (ZIK)
This is a temporary workaround to address build issues with host-m4 when using GCC 15, as encountered on the recently released Fedora 42. The issue stems from stricter compiler behavior introduced in recent versions of GCC.
A proper fix has already been committed upstream and will be included in the next release of GNU m4:
https://git.savannah.gnu.org/cgit/m4.git/commit/?h=branch-1.4&id=a22c9802dd7e724eaefb21dc21d84ac2d3a49c89
Quoted 7 lines
Until that version is available in buildroot, this patch ensures continued compatibility and successful builds.
More context:
https://lists.buildroot.org/pipermail/buildroot/2025-April/776922.htmlSigned-off-by Joseph Zikusooka (ZIK) <[email protected]>
I applied this patch to master. I reworded the commit log and applied the workaround only when host gcc-15 is detected. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/7a07a9d155b8f601d68f07ee0ed1dc8d48907644
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2] package/m4: fix build failure with gcc 15
Thanks!
Quoted 23 lines · Julien Olivain
Hi Joseph,
Quoted 9 lines · Joseph Zikusooka (ZIK)
This is a temporary workaround to address build issues with host-m4 when using GCC 15, as encountered on
the recently released Fedora 42. The issue stems from stricter compiler behavior introduced in recent
versions of GCC.A proper fix has already been committed upstream and will be included in the next release of GNU m4:
Quoted 9 lines
Until that version is available in buildroot, this patch ensures continued compatibility and successful
builds.More context:
https://lists.buildroot.org/pipermail/buildroot/2025-April/776922.htmlSigned-off-by Joseph Zikusooka (ZIK) <[email protected]>
Quoted 9 lines
I applied this patch to master. I reworded the commit log and applied the workaround only when host gcc-15 is detected. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/7a07a9d155b8f601d68f07ee0ed1dc8d48907644
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2] package/m4: fix build failure with gcc 15
In reply to Joseph Zikusooka (ZIK)Quoted 10 lines · Joseph Zikusooka (ZIK)
This is a temporary workaround to address build issues with host-m4 when using GCC 15, as encountered on the recently released Fedora 42. The issue stems from stricter compiler behavior introduced in recent versions of GCC.
A proper fix has already been committed upstream and will be included in the next release of GNU m4:
https://git.savannah.gnu.org/cgit/m4.git/commit/?h=branch-1.4&id=a22c9802dd7e724eaefb21dc21d84ac2d3a49c89Until that version is available in buildroot, this patch ensures continued compatibility and successful builds.
Quoted 6 lines
More context:
https://lists.buildroot.org/pipermail/buildroot/2025-April/776922.htmlSigned-off-by Joseph Zikusooka (ZIK) <[email protected]>Tested-by Luca Ceresoli <[email protected]>[Tested v1, but v2 has the same diff]
Applied to 2025.02.x, thanks.
Regards,
Arnout
Quoted 13 lines
---
Changes v1 -> v2:
- reworded commit message (no diff changes)package/m4/m4.mk | 2 ++ 1 file changed, 2 insertions(+)package/m4/m4.mk +0
-0
package/m4/m4.mk M4_SITE = $(BR2_GNU_MIRROR)/m4 · line 15
Quoted 6 lines
package/m4/m4.mk +2
-0@@ -10,4 +10,6 @@ M4_SITE = $(BR2_GNU_MIRROR)/m4 M4_LICENSE = GPL-3.0+ M4_LICENSE_FILES = COPYING +HOST_M4_CONF_ENV = CFLAGS="$(HOST_CFLAGS) -std=gnu17" + $(eval $(host-autotools-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot