[Buildroot] [git commit branch/2023.02.x] package/gdb: disable gdb for or1k builds with musl libc

Peter Korsgaard peter at korsgaard.com
Mon Jun 5 20:11:10 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=7ad09fbb876ed3b800a7020ac4887c4a5f117f13
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.02.x

The or1k musl port is incomplete, elf_gregset_t definition is missing
(user.h is empty) [1]. It fail to build gdbserver and the full gdb.

[1] https://git.musl-libc.org/cgit/musl/tree/arch/or1k/bits/user.h?h=v1.2.3

Fixes:
https://gitlab.com/buildroot.org/toolchains-builder/-/jobs/4202276569

Signed-off-by: Romain Naour <romain.naour at gmail.com>
Cc: Stafford Horne <shorne at gmail.com>
[yann.morin.1998 at free.fr: simplify condition, add comment]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 3fed683035658ee354885f46f1ac1096c2d94e4b)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/gdb/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/gdb/Config.in b/package/gdb/Config.in
index 80b1185b5e..d1813fd7b9 100644
--- a/package/gdb/Config.in
+++ b/package/gdb/Config.in
@@ -4,6 +4,10 @@ config BR2_PACKAGE_GDB_ARCH_SUPPORTS
 	depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
 	depends on !BR2_microblaze
 
+comment "gdb needs a glibc or uclibc toolchain"
+	depends on BR2_or1k
+	depends on BR2_TOOLCHAIN_USES_MUSL
+
 comment "gdb/gdbserver needs a toolchain w/ threads, threads debug"
 	depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS_DEBUG
@@ -17,6 +21,9 @@ config BR2_PACKAGE_GDB
 	depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
 	depends on BR2_INSTALL_LIBSTDCPP
+	# The or1k musl port is incomplete, elf_gregset_t definition is missing:
+	# https://git.musl-libc.org/cgit/musl/tree/arch/or1k/bits/user.h?h=v1.2.3
+	depends on !BR2_or1k || !BR2_TOOLCHAIN_USES_MUSL
 	select BR2_PACKAGE_ZLIB
 	# When the external toolchain gdbserver is copied to the
 	# target, we don't allow building a separate gdbserver. The



More information about the buildroot mailing list