diff mbox series

package/gcc: disable gcc D front-end with gcc 12

Message ID 20220821152749.239482-1-romain.naour@gmail.com
State Accepted
Headers show
Series package/gcc: disable gcc D front-end with gcc 12 | expand

Commit Message

Romain Naour Aug. 21, 2022, 3:27 p.m. UTC
"The D front-end is now itself written in D, in order to build GDC, you
will need a working GDC compiler (GCC version 9.1 or later)." [1]

So we have to check if a D compiler is available on the host.

Fixes:
http://autobuild.buildroot.org/results/36a/36aa22e458d53ab8687b3a79ffeb65b18e8ac6e7/host-gcc-final-12.1.0/build

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5fee5ec362f7a243f459e6378fd49dfc89dc9fb5

http://lists.busybox.net/pipermail/buildroot/2022-August/648841.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>
---
 package/gcc/Config.in.host | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Thomas Petazzoni Aug. 23, 2022, 8:21 p.m. UTC | #1
On Sun, 21 Aug 2022 17:27:49 +0200
Romain Naour <romain.naour@gmail.com> wrote:

> "The D front-end is now itself written in D, in order to build GDC, you
> will need a working GDC compiler (GCC version 9.1 or later)." [1]
> 
> So we have to check if a D compiler is available on the host.
> 
> Fixes:
> http://autobuild.buildroot.org/results/36a/36aa22e458d53ab8687b3a79ffeb65b18e8ac6e7/host-gcc-final-12.1.0/build
> 
> [1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5fee5ec362f7a243f459e6378fd49dfc89dc9fb5
> 
> http://lists.busybox.net/pipermail/buildroot/2022-August/648841.html
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>
> ---
>  package/gcc/Config.in.host | 4 ++++
>  1 file changed, 4 insertions(+)

Applied to master, thanks. Unless someone steps up to fix the support
for the D language, it means that ultimately we would drop support for
it.

Thomas
diff mbox series

Patch

diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index 746f4df434..147f0766fb 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -77,6 +77,10 @@  config BR2_GCC_SUPPORTS_DLANG
 	default y if BR2_riscv && !BR2_RISCV_64
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9
 	depends on BR2_TOOLCHAIN_USES_GLIBC
+	# "The D front-end is now itself written in D, in order to build GDC, you
+	# will need a working GDC compiler (GCC version 9.1 or later)."
+	# https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5fee5ec362f7a243f459e6378fd49dfc89dc9fb5
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_12
 
 config BR2_GCC_VERSION
 	string