All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/gdb: update host gdb minimum host gcc version
@ 2019-08-03 20:59 Romain Naour
  2019-08-03 21:15 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Romain Naour @ 2019-08-03 20:59 UTC (permalink / raw)
  To: buildroot

Following gdb 7.12.1 removal [1] the host gcc version needs
to be updated since gdb >= 8.x now requires C++11 compiler.

While at it, move BR2_HOST_GCC_AT_LEAST_4_8 under
BR2_PACKAGE_HOST_GDB since it's not an architecture
dependency. Add a comment when the host gcc is too
old to build host gdb.

[1] d36f2c73331b3ab4e238eeb47d7d79d81a895a59

Fixes:
http://autobuild.buildroot.org/results/822/822a747a6717db57705d1ce198a61988aa1173b1

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <peter@korsgaard.com>
---
 package/gdb/Config.in.host | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
index 8cec2d083e..7baa652a60 100644
--- a/package/gdb/Config.in.host
+++ b/package/gdb/Config.in.host
@@ -1,8 +1,6 @@
 config BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
 	bool
 	default y
-	# The ARC version needs C++11, thus gcc >= 4.8, like gdb >= 8.x
-	depends on BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_arc
 	depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
 	depends on !BR2_microblaze
 	depends on !BR2_nios2
@@ -14,8 +12,14 @@ comment "Host GDB Options"
 	depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
 	depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
 
+comment "host gdb needs a host gcc >= 4.8"
+	depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
+	depends on !BR2_HOST_GCC_AT_LEAST_4_8
+
 config BR2_PACKAGE_HOST_GDB
 	bool "Build cross gdb for the host"
+	# gdb >= 8.x needs C++11
+	depends on BR2_HOST_GCC_AT_LEAST_4_8
 	# When the external toolchain gdbserver is used, we shouldn't
 	# allow to build a cross-gdb, as the one of the external
 	# toolchain should be used.
-- 
2.20.1

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

* [Buildroot] [PATCH] package/gdb: update host gdb minimum host gcc version
  2019-08-03 20:59 [Buildroot] [PATCH] package/gdb: update host gdb minimum host gcc version Romain Naour
@ 2019-08-03 21:15 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2019-08-03 21:15 UTC (permalink / raw)
  To: buildroot

>>>>> "Romain" == Romain Naour <romain.naour@smile.fr> writes:

 > Following gdb 7.12.1 removal [1] the host gcc version needs
 > to be updated since gdb >= 8.x now requires C++11 compiler.

 > While at it, move BR2_HOST_GCC_AT_LEAST_4_8 under
 > BR2_PACKAGE_HOST_GDB since it's not an architecture
 > dependency. Add a comment when the host gcc is too
 > old to build host gdb.

 > [1] d36f2c73331b3ab4e238eeb47d7d79d81a895a59

 > Fixes:
 > http://autobuild.buildroot.org/results/822/822a747a6717db57705d1ce198a61988aa1173b1

 > Signed-off-by: Romain Naour <romain.naour@smile.fr>
 > Cc: Yann E. MORIN" <yann.morin.1998@free.fr>
 > Cc: Peter Korsgaard <peter@korsgaard.com>


Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2019-08-03 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-03 20:59 [Buildroot] [PATCH] package/gdb: update host gdb minimum host gcc version Romain Naour
2019-08-03 21:15 ` Peter Korsgaard

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.