* [bug#53706] [PATCH] gnu: Disable compressed debug sections for mingw-w64
@ 2022-02-01 18:22 Carl Dong
2022-02-03 18:51 ` Carl Dong
2022-02-07 21:40 ` bug#53706: Closing Carl Dong
0 siblings, 2 replies; 4+ messages in thread
From: Carl Dong @ 2022-02-01 18:22 UTC (permalink / raw)
To: 53706; +Cc: Carl Dong
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#53706] [PATCH] gnu: Disable compressed debug sections for mingw-w64
2022-02-01 18:22 [bug#53706] [PATCH] gnu: Disable compressed debug sections for mingw-w64 Carl Dong
@ 2022-02-03 18:51 ` Carl Dong
2022-02-06 4:59 ` Maxim Cournoyer
2022-02-07 21:40 ` bug#53706: Closing Carl Dong
1 sibling, 1 reply; 4+ messages in thread
From: Carl Dong @ 2022-02-03 18:51 UTC (permalink / raw)
To: 53706, Maxim Cournoyer, lle-bout
[-- Attachment #1.1: Type: text/plain, Size: 280 bytes --]
Just for some extra context, this commit should not trigger mass rebuilds. I’m happy to commit it myself, but would someone to give me a quick sanity check before doing so!
Related: https://issues.guix.gnu.org/53426 <https://issues.guix.gnu.org/53426>
Cheers,
Carl Dong
[-- Attachment #1.2: Type: text/html, Size: 643 bytes --]
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#53706: Closing
2022-02-01 18:22 [bug#53706] [PATCH] gnu: Disable compressed debug sections for mingw-w64 Carl Dong
2022-02-03 18:51 ` Carl Dong
@ 2022-02-07 21:40 ` Carl Dong
1 sibling, 0 replies; 4+ messages in thread
From: Carl Dong @ 2022-02-07 21:40 UTC (permalink / raw)
To: 53706-done
In master as of 2d78b27711d44f39fabf170d044b45247af7babe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-02-07 21:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-01 18:22 [bug#53706] [PATCH] gnu: Disable compressed debug sections for mingw-w64 Carl Dong
2022-02-03 18:51 ` Carl Dong
2022-02-06 4:59 ` Maxim Cournoyer
2022-02-07 21:40 ` bug#53706: Closing Carl Dong
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).