package/gdb: disable gdb for or1k builds with musl libc
PATCH 1/1 package/gdb: disable gdb for or1k builds with musl libc
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
---
host-gdb build fine but it's useless without a gdbserver on the target. Keep it enabled for now to avoid dependency handling for or1k with musl...
--- package/gdb/Config.in | 3 +++ 1 file changed, 3 insertions(+)
package/gdb/Config.in +3 -0
@@ -17,6 +17,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_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
Signature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedRomain, All,
On 2023-05-02 23:11 +0200, Romain Naour spake thusly:
Quoted 22 lines
The or1k musl port is incomplete,
elf_gregset_tdefinition is missing (user.his 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/4202276569Signed-off-by Romain Naour <[email protected]>Cc Stafford Horne <[email protected]>---
host-gdb build fine but it's useless without a gdbserver on the target. Keep it enabled for now to avoid dependency handling for or1k with musl...--- package/gdb/Config.in | 3 +++ 1 file changed, 3 insertions(+)package/gdb/Config.in +0
-0
package/gdb/Config.in config BR2_PACKAGE_GDB · line 22
Quoted 6 lines
package/gdb/Config.in +3
-0@@ -17,6 +17,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_or1k && !BR2_TOOLCHAIN_USES_MUSL)
We can somplify the logic here:
depends on !BR2_or1k || !BR2_TOOLCHAIN_USES_MUSL
Also, I added a comment:
comment "gdb needs a glibc or uclibc toolchain"
depends on BR2_or1k
depends on BR2_TOOLCHAIN_USES_MUSL
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 10 lines
package/gdb/Config.in +0
-0select BR2_PACKAGE_ZLIB # When the external toolchain gdbserver is copied to the # target, we don't allow building a separate gdbserver. TheSignature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Romain" == Romain Naour <[email protected]> writes:
The or1k musl port is incomplete,
elf_gregset_tdefinition is missing (user.his 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
Quoted 8 lines
Fixes:
https://gitlab.com/buildroot.org/toolchains-builder/-/jobs/4202276569Signed-off-by Romain Naour <[email protected]>Cc Stafford Horne <[email protected]>---
host-gdb build fine but it's useless without a gdbserver on the target. Keep it enabled for now to avoid dependency handling for or1k with musl...
Committed to 2023.02.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot