From 496ce819346037950e3b61cad4610c8434a2e677 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 25 Jun 2026 12:31:00 -0700 Subject: [PATCH] crash: pull in gmp/mpfr for the cross variant The bundled gdb 16.2 hard-requires GMP and MPFR (crash 8.0.6 bundled gdb 10.2, which did not). native.bbclass remaps DEPENDS to their -native variants automatically, so crash-native builds, but cross.bbclass does not - so crash-cross failed in gdb's configure with: configure: error: Building GDB requires GMP 4.2+, and MPFR 3.1.0+. List the build-host dependencies (gmp/mpfr, plus readline/ncurses that crash links) explicitly for class-cross. Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/crash/crash_9.0.2.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-kernel/crash/crash_9.0.2.bb b/meta-oe/recipes-kernel/crash/crash_9.0.2.bb index d0f0de7e5f..c012410b21 100644 --- a/meta-oe/recipes-kernel/crash/crash_9.0.2.bb +++ b/meta-oe/recipes-kernel/crash/crash_9.0.2.bb @@ -11,7 +11,10 @@ EXTRA_OEMAKE:class-cross = 'RPMPKG="${PV}" \ EXTRA_OEMAKE:append:class-native = " LDFLAGS='${BUILD_LDFLAGS}'" EXTRA_OEMAKE:append:class-cross = " LDFLAGS='${BUILD_LDFLAGS}'" -DEPENDS:append:class-cross = " zlib-native" +# gdb 16.2 (bundled, built for the build host in the cross case) needs gmp and +# mpfr, and crash links readline/ncurses. Unlike native.bbclass, cross.bbclass +# does not remap DEPENDS to their -native variants, so list them explicitly. +DEPENDS:append:class-cross = " zlib-native readline-native ncurses-native gmp-native mpfr-native" do_install:class-target () { oe_runmake DESTDIR=${D} install