emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#53706: closed ([PATCH] gnu: Disable compressed debug sections for mi


From: GNU bug Tracking System
Subject: bug#53706: closed ([PATCH] gnu: Disable compressed debug sections for mingw-w64)
Date: Mon, 07 Feb 2022 21:41:02 +0000

Your message dated Mon, 7 Feb 2022 16:40:25 -0500
with message-id <0363027B-C192-4556-931B-6748BD8FBE30@carldong.me>
and subject line Closing
has caused the debbugs.gnu.org bug report #53706,
regarding [PATCH] gnu: Disable compressed debug sections for mingw-w64
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
53706: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53706
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Disable compressed debug sections for mingw-w64 Date: Tue, 1 Feb 2022 13:22:03 -0500
The newly introduced --enable-compressed-debug-section=all configure
flag in the base binutils package makes the mingw-w64 build system
unusable. For example:

    $ guix build --target=x86_64-w64-mingw32 hello

        and

    $ guix build mingw-w64-x86_64-winpthreads

Will fail to build with an error:

    "x86_64-w64-mingw32-ld: final link failed: bad value"

Turning off this flag seems to fix the problem, but perhaps it'd also be
worthwhile to investigate the root cause.

* gnu/packages/cross-base.scm (cross-binutils): When building for mingw
  targets, append "--enable-compressed-debug-section=no" to configure
  flags.
---
 gnu/packages/cross-base.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 78cbf871ac..529144d127 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -101,7 +101,16 @@ (define* (cross-binutils target #:optional (binutils 
binutils))
                                          "ath9k-htc-firmware-binutils.patch")))
                  ((target-mingw? target)
                   (package-with-extra-patches
-                   binutils
+                   (package-with-extra-configure-variable
+                    ;; mingw binutils does not work correctly when configured
+                    ;; with `--enable-compressed-debug-sections`. An error
+                    ;; like the following will occur whenever you try to link:
+                    ;;
+                    ;;   x86_64-w64-mingw32-ld: final link failed: bad value
+                    ;;
+                    ;; TODO: This seems like a deeper problem that warrants
+                    ;; deeper investigation.
+                    binutils "--enable-compressed-debug-sections" "no")
                    (search-patches "binutils-mingw-w64-timestamp.patch"
                                    "binutils-mingw-w64-deterministic.patch")))
                  (else binutils))
-- 
2.34.1




--- End Message ---
--- Begin Message --- Subject: Closing Date: Mon, 7 Feb 2022 16:40:25 -0500
In master as of 2d78b27711d44f39fabf170d044b45247af7babe


--- End Message ---

reply via email to

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