mingw-w64-{x86_64,i686}-winpthreads broken after absorption of binutils-next

  • Done
  • quality assurance status badge
Details
4 participants
  • Carl Dong
  • Michael Ford
  • Maxim Cournoyer
  • Maxime Devos
Owner
unassigned
Submitted by
Carl Dong
Severity
normal
C
C
Carl Dong wrote on 21 Jan 2022 22:30
mingw-w64-{x86_64,i686}-winpthreads broken after absorption of binutils-next
(address . bug-guix@gnu.org)
CE729A95-624F-4CC3-A757-2045B4B3E2F3@carldong.me
Hi all,

The mingw-w64-{x86_64,i686}-winpthreads have been broken since the absorption of binutils-next in ce362bc1f35102e7d79ad7e0d638d20cef304f01. My very crude debugging (adding and removing configure flags from the binutils in gnu/packages/base.scm until the packages compiled) led me to the culprit: "--enable-compressed-debug-sections=all”.

I’m wondering what the best course of action is to fix the mingw-w64-{x86_64,i686}-winpthreads packages (e.g. just remove the configure flag for mingw-w64? Add that flag only for linux? Or something else?) and would love some help.

Cheers,
Carl Dong
Attachment: file
M
M
Maxime Devos wrote on 21 Jan 2022 23:10
Re: bug#53426: mingw-w64-{x86_64, i686}-winpthreads broken after absorption of binutils-next
5ec60e040300065c155dbf9e2653e6c44da6ef2e.camel@telenet.be
Carl Dong schreef op vr 21-01-2022 om 16:30 [-0500]:
Toggle quote (5 lines)
> I’m wondering what the best course of action is to fix the mingw-w64-
> {x86_64,i686}-winpthreads packages (e.g. just remove the configure
> flag for mingw-w64? Add that flag only for linux? Or something else?)
> and would love some help.

I would assume that it works for Linux, it also works for the Hurd,
so I would prefer something like

#$@(if (target-mingw?) '() '("--some-configuration..."))

above

#$@(if (target-linux?) '("--some-configuration...") '())

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYesvcRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7sTKAQDHb3LL/ZDzk16a9Be8hT0LoFgc
SxkNVGoVwdz/QFQmuQEA3M32TqTH3sYXJ3xu5mBkibjR23UieSHxXulmNm0JewE=
=pMVF
-----END PGP SIGNATURE-----


C
C
Carl Dong wrote on 1 Feb 2022 18:54
E6777D0C-5798-489D-8EDF-CFC7242B7129@carldong.me
I did some more exploration, and found that not only are the mingw-w64-{x86_64, i686}-winpthreads packages broken, but any --target=x86_64-w64-mingw32 package:

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

I have this patch which resolves the problem by simply disabling compressed debug sections, but perhaps it’d also be worthwhile to investigate the root cause...

Toggle snippet (16 lines)
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 78cbf871ac..397e4d4c1c 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -101,7 +101,8 @@ (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
+ binutils "--enable-compressed-debug-sections" "no")
(search-patches "binutils-mingw-w64-timestamp.patch"
"binutils-mingw-w64-deterministic.patch")))
(else binutils))

Cheers,
Carl Dong

Toggle quote (20 lines)
> On Jan 21, 2022, at 5:10 PM, Maxime Devos <maximedevos@telenet.be> wrote:
>
> Carl Dong schreef op vr 21-01-2022 om 16:30 [-0500]:
>> I’m wondering what the best course of action is to fix the mingw-w64-
>> {x86_64,i686}-winpthreads packages (e.g. just remove the configure
>> flag for mingw-w64? Add that flag only for linux? Or something else?)
>> and would love some help.
>
> I would assume that it works for Linux, it also works for the Hurd,
> so I would prefer something like
>
> #$@(if (target-mingw?) '() '("--some-configuration..."))
>
> above
>
> #$@(if (target-linux?) '("--some-configuration...") '())
>
> Greetings,
> Maxime.
>
Attachment: signature.asc
M
M
Michael Ford wrote on 16 Mar 2022 11:05
mingw-w64-{x86_64, i686}-winpthreads broken after absorption of binutils-next
(address . 53426@debbugs.gnu.org)
CAFyhPjVmjR4ZH=sr8Z8USi=MHp-diLpa8oSCBCbYRLGktJiQgw@mail.gmail.com
Hi,

I think this bug can be closed now that https://issues.guix.gnu.org/53706
has been merged?
Attachment: file
M
M
Maxim Cournoyer wrote on 11 Jul 2022 23:52
Re: bug#53426: mingw-w64-{x86_64,i686}-winpthreads broken after absorption of binutils-next
(name . Michael Ford)(address . fanquake@gmail.com)(address . 53426-done@debbugs.gnu.org)
87bktvb9ll.fsf_-_@gmail.com
Hi Michael,

Michael Ford <fanquake@gmail.com> writes:

Toggle quote (5 lines)
> Hi,
>
> I think this bug can be closed now that https://issues.guix.gnu.org/53706
> has been merged?

I think so too! Thanks for the heads-up.

Maxim
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 53426@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 53426
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch