From: Jennifer Berringer <jberr...@redhat.com> redhat/spec: Disable gdb index for riscv cross-compile
The current version of gdb-minimal in CentOS Stream 10 crashes when find-debuginfo tries to build the gdb index for a riscv64 kernel. Until we update GDB, this temporary measure should help prevent CI pipelines for c10s from failing on the riscv64 build. This issue does not affect Fedora, ELN, or native builds on a riscv64 host running the RHEL 10 RISC-V Developer Preview, and is expected to be fixed with GDB 16. Signed-off-by: Jennifer Berringer <jberr...@redhat.com> diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100644 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -857,6 +857,16 @@ BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu # debugedit-5.1-5 in F42 added support to override tools with target versions. %undefine _include_gdb_index %endif + +%if 0%{?rhel}%{?centos} +%ifarch riscv64 +# Temporary workaround to avoid using find-debuginfo and gdb.minimal. +# The current c10s version of gdb-minimal (14.2-4.el10) crashes when given some +# riscv64 kernel modules (see RHEL-91586). Not building the gdb index avoids +# breaking CI for now. +%undefine _include_gdb_index +%endif +%endif %endif # These below are required to build man pages -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3863 -- _______________________________________________ kernel mailing list -- kernel@lists.fedoraproject.org To unsubscribe send an email to kernel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue