All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/gcc: enable obsolete nios2 target
@ 2024-05-12 16:19 Waldemar Brodkorb
  2024-05-13 20:35 ` Thomas Petazzoni via buildroot
  2024-05-13 20:40 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Waldemar Brodkorb @ 2024-05-12 16:19 UTC (permalink / raw)
  To: buildroot

GCC 14.1.0 deprecated NIOS2 so we had to enable it explicitely.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 package/gcc/gcc-final/gcc-final.mk     | 5 +++++
 package/gcc/gcc-initial/gcc-initial.mk | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk
index 99d7047b5f..5feb96b568 100644
--- a/package/gcc/gcc-final/gcc-final.mk
+++ b/package/gcc/gcc-final/gcc-final.mk
@@ -117,6 +117,11 @@ else
 HOST_GCC_FINAL_CONF_OPTS += --disable-libgomp
 endif
 
+# allow to build gcc 14.x
+ifeq ($(BR2_nios2),y)
+HOST_GCC_FINAL_CONF_OPTS += --enable-obsolete
+endif
+
 # End with user-provided options, so that they can override previously
 # defined options.
 HOST_GCC_FINAL_CONF_OPTS += \
diff --git a/package/gcc/gcc-initial/gcc-initial.mk b/package/gcc/gcc-initial/gcc-initial.mk
index 1f8b76a942..8b4247bdad 100644
--- a/package/gcc/gcc-initial/gcc-initial.mk
+++ b/package/gcc/gcc-initial/gcc-initial.mk
@@ -42,6 +42,11 @@ HOST_GCC_INITIAL_CONF_OPTS = \
 	--disable-largefile \
 	$(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
 
+# allow to build gcc 14.x
+ifeq ($(BR2_nios2),y)
+HOST_GCC_INITIAL_CONF_OPTS += --enable-obsolete
+endif
+
 HOST_GCC_INITIAL_CONF_ENV = \
 	$(HOST_GCC_COMMON_CONF_ENV)
 
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] package/gcc: enable obsolete nios2 target
  2024-05-12 16:19 [Buildroot] [PATCH] package/gcc: enable obsolete nios2 target Waldemar Brodkorb
@ 2024-05-13 20:35 ` Thomas Petazzoni via buildroot
  2024-05-13 20:40 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-05-13 20:35 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: buildroot

On Sun, 12 May 2024 18:19:15 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:

> GCC 14.1.0 deprecated NIOS2 so we had to enable it explicitely.
> 
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
>  package/gcc/gcc-final/gcc-final.mk     | 5 +++++
>  package/gcc/gcc-initial/gcc-initial.mk | 5 +++++
>  2 files changed, 10 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] package/gcc: enable obsolete nios2 target
  2024-05-12 16:19 [Buildroot] [PATCH] package/gcc: enable obsolete nios2 target Waldemar Brodkorb
  2024-05-13 20:35 ` Thomas Petazzoni via buildroot
@ 2024-05-13 20:40 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-05-13 20:40 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: buildroot

On Sun, 12 May 2024 18:19:15 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:

> +# allow to build gcc 14.x
> +ifeq ($(BR2_nios2),y)
> +HOST_GCC_FINAL_CONF_OPTS += --enable-obsolete
> +endif

Dammit, I applied, but in fact, this change should have gone in one
single place: package/gcc/gcc.mk, adding to HOST_GCC_COMMON_CONF_OPTS,
which is used for both the gcc-initial and gcc-final stage. So I did
this as a follow-up commit in
https://gitlab.com/buildroot.org/buildroot/-/commit/1c8bdef54213640e88b199466d1e504515c1a073.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-13 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-12 16:19 [Buildroot] [PATCH] package/gcc: enable obsolete nios2 target Waldemar Brodkorb
2024-05-13 20:35 ` Thomas Petazzoni via buildroot
2024-05-13 20:40 ` Thomas Petazzoni 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.