guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/08: gnu: gdb: Build with a 32-bit MIG when targeting i586-pc-gnu.


From: guix-commits
Subject: 03/08: gnu: gdb: Build with a 32-bit MIG when targeting i586-pc-gnu.
Date: Sat, 10 Oct 2020 17:00:29 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 02036cdda4d2600166322a12d3eb0ab2a5b18f4e
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Oct 10 22:28:51 2020 +0200

    gnu: gdb: Build with a 32-bit MIG when targeting i586-pc-gnu.
    
    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 8301217..2eecfb5 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]