From 02036cdda4d2600166322a12d3eb0ab2a5b18f4e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 10 Oct 2020 22:28:51 +0200 Subject: gnu: gdb: Build with a 32-bit MIG when targeting i586-pc-gnu. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a bug whereby GDB cross-compiled for i586-pc-gnu would be broken: (gdb) r Starting program: /gnu/store/… Handling event, msgid = 72: (ipc/mig) server type check failure * gnu/packages/gdb.scm (gdb-9.1)[native-inputs]: Use MIG/32-BIT instead of MIG. --- gnu/packages/gdb.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm index 830121751f..2eecfb581d 100644 --- a/gnu/packages/gdb.scm +++ b/gnu/packages/gdb.scm @@ -116,7 +116,13 @@ `(("texinfo" ,texinfo) ("dejagnu" ,dejagnu) ("pkg-config" ,pkg-config) - ,@(if (hurd-target?) `(("mig" ,mig)) '()))) + ,@(if (hurd-target?) + ;; When cross-compiling from x86_64-linux, make sure to use a + ;; 32-bit MiG because we assume target i586-pc-gnu. + `(("mig" ,(if (%current-target-system) + mig/32-bit + mig))) + '()))) (home-page "https://www.gnu.org/software/gdb/") (synopsis "The GNU debugger") (description -- cgit v1.2.3