From: Jan Stancek <jstancek@xxxxxxxxxx> redhat/kernel.spec: work around find-debuginfo aborting cross builds debugedit > 5.0-16 now aborts cross builds. It was already attempting to use host binaries on cross compiled ones, but with recent update it also strictly checks for errors and aborts: objcopy: Unable to recognise the format of the input file `.../internal/drivers/gpu/drm/tests/drm_exec_test.ko' *** ERROR:: GDB exited with exit status 1 during index generation This starts with commit: https://sourceware.org/git/?p=debugedit.git;a=commit;h=dfe1f7ff30f4e0be538835fca1e6348723ea7aa7 There's RFE opened to support overriding of host tools with one for cross-compiling, RHEL-21797. But for now, undefine _include_gdb_index to skip this code to allow cross builds to continue. Signed-off-by: Jan Stancek <jstancek@xxxxxxxxxx> 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 @@ -814,6 +814,13 @@ BuildRequires: pesign >= 0.10-4 BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu %define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu- %define __strip %{_build_arch}-linux-gnu-strip + +# Work around find-debuginfo for cross builds. +# find-debuginfo doesn't support any of CROSS options (RHEL-21797), +# and since debugedit > 5.0-16.el10, or since commit +# dfe1f7ff30f4 ("find-debuginfo.sh: Exit with real exit status in parallel jobs") +# it now aborts and build fails. +%undefine _include_gdb_index %endif # These below are required to build man pages -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3639 -- _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue