* [Buildroot] [PATCH] package/gcc: fortran support now requires MMU
@ 2026-08-13 13:10 Thomas Petazzoni via buildroot
2026-08-15 10:34 ` Julien Olivain via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-08-13 13:10 UTC (permalink / raw)
To: buildroot; +Cc: Thomas Petazzoni, Romain Naour, Giulio Benetti, Romain Naour
Since upstream commit
c66d1ba685b0d03b28967d2f7a48f6c64687efa2 ("Fortran: Add a shared
memory multi process coarray implementation [PR88076]"), libgfortran
now unconditionally uses fork(), which makes it impossible to build
Fortran support on noMMU architectures.
In follow-up commit efb497c23a6f4109bf8794342617cbc161c08301, it was
made even more clear: if you don't have fork() and you're not on
WIN32:
+#else
+#error "no way known to start child processes."
+#endif
There are apparently no autobuilder failures for this issue, but the
simple defconfig below allows to trigger the build failure:
BR2_arm=y
BR2_cortex_m7=y
BR2_GCC_VERSION_16_X=y
BR2_TOOLCHAIN_BUILDROOT_FORTRAN=y
Even though this issue is only starting from GCC 16.x, we make Fortran
unavailable on noMMU configurations regardless of the GCC version,
with the reasoning that:
1. Fortran on noMMU is unlikely to be in use
2. Moving forward, all future versions of GCC will have this
restriction
Cc: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
package/gcc/Config.in.host | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index d8b89d942c..bc3223eb59 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -98,6 +98,8 @@ config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
# on architecture building libquadmath, wchar is required
depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
(BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
+ # requires fork() since gcc 16.x
+ depends on BR2_USE_MMU
select BR2_TOOLCHAIN_HAS_FORTRAN
help
Enable this option if you want your toolchain to support the
--
2.55.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [Buildroot] [PATCH] package/gcc: fortran support now requires MMU
2026-08-13 13:10 [Buildroot] [PATCH] package/gcc: fortran support now requires MMU Thomas Petazzoni via buildroot
@ 2026-08-15 10:34 ` Julien Olivain via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-08-15 10:34 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot, Romain Naour, Giulio Benetti, Romain Naour
On 13/08/2026 15:10, Thomas Petazzoni via buildroot wrote:
> Since upstream commit
> c66d1ba685b0d03b28967d2f7a48f6c64687efa2 ("Fortran: Add a shared
> memory multi process coarray implementation [PR88076]"), libgfortran
> now unconditionally uses fork(), which makes it impossible to build
> Fortran support on noMMU architectures.
>
> In follow-up commit efb497c23a6f4109bf8794342617cbc161c08301, it was
> made even more clear: if you don't have fork() and you're not on
> WIN32:
>
> +#else
> +#error "no way known to start child processes."
> +#endif
>
> There are apparently no autobuilder failures for this issue, but the
> simple defconfig below allows to trigger the build failure:
>
> BR2_arm=y
> BR2_cortex_m7=y
> BR2_GCC_VERSION_16_X=y
> BR2_TOOLCHAIN_BUILDROOT_FORTRAN=y
>
> Even though this issue is only starting from GCC 16.x, we make Fortran
> unavailable on noMMU configurations regardless of the GCC version,
> with the reasoning that:
>
> 1. Fortran on noMMU is unlikely to be in use
>
> 2. Moving forward, all future versions of GCC will have this
> restriction
>
> Cc: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-15 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 13:10 [Buildroot] [PATCH] package/gcc: fortran support now requires MMU Thomas Petazzoni via buildroot
2026-08-15 10:34 ` Julien Olivain via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.