From patchwork Tue Feb 1 18:22:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Dong X-Patchwork-Id: 36926 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A994727BBEA; Tue, 1 Feb 2022 22:51:36 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3FEE427BBE9 for ; Tue, 1 Feb 2022 22:51:36 +0000 (GMT) Received: from localhost ([::1]:48858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nF1zr-0002AP-ER for patchwork@mira.cbaines.net; Tue, 01 Feb 2022 17:51:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nExow-0000GX-DJ for guix-patches@gnu.org; Tue, 01 Feb 2022 13:24:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nExow-0000yn-2i for guix-patches@gnu.org; Tue, 01 Feb 2022 13:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nExow-00077x-04 for guix-patches@gnu.org; Tue, 01 Feb 2022 13:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53706] [PATCH] gnu: Disable compressed debug sections for mingw-w64 Resent-From: Carl Dong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Feb 2022 18:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53706 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53706@debbugs.gnu.org Cc: Carl Dong X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164373982327363 (code B ref -1); Tue, 01 Feb 2022 18:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Feb 2022 18:23:43 +0000 Received: from localhost ([127.0.0.1]:44046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nExoc-00077G-LR for submit@debbugs.gnu.org; Tue, 01 Feb 2022 13:23:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:58170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nExob-000779-GY for submit@debbugs.gnu.org; Tue, 01 Feb 2022 13:23:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nExoU-0008Oe-4S for guix-patches@gnu.org; Tue, 01 Feb 2022 13:23:37 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:37911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nExoO-0000oP-Gs for guix-patches@gnu.org; Tue, 01 Feb 2022 13:23:32 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C76CD3201FB9; Tue, 1 Feb 2022 13:22:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 01 Feb 2022 13:22:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=carldong.me; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; bh=iZywVvtuQ5S992nTGAtkpsyxxIyGARiD+VYt5GyhRrc=; b=mpIwY gxR2PT1lfaDvAsTxX5UFr4g2xW+6K4tImnch811nESseMr80bgTmw8uloPfAP/vD 30tOwLHFmbpZ9RSOogcykdqp4V7n/ow44XLtdhZNNmu/WnTA4DFIfVQ1E4MF2jwg Dn7R8h61Cz8S9/WiAzCWSCT24K7qMzqTFL1YPqwoTbBZyw7SQy9yB4tK0ohujjYV H7oTh4GVVLghqyDAKAyINq5wApZaBEDRaSft2nnEaxO+b6rD6AIoPu4GemJuyrMB jRm6nct+ZIcDUJhnHp5fwTIMu44p42/M3NoPmVgNYJ/4xfY2NPpzlmod/elRCMWk VFZYvLvk5652xrX6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=iZywVvtuQ5S992nTGAtkpsyxxIyGA RiD+VYt5GyhRrc=; b=BVCaLDjdwz2Y7KIC1DGPwCHp8AdVbLAqYR9ryrHJq2Quk mr6fwy8Uh2AFf5TCKLDJTgIddXUTzXKqWQ1x0LT1DgVEstCTwAiB7mlvaiOOOmou 9a3DG5Ljf67LFdL+CgjIj6h4K0a7/OEOUPdu0hwa5hFiTakPlHOziEhMh3PkorVv ovnPmtyEPnBsChmfGcVx+MGXDrPxMfi+3qgsV3kJgq0KcWTbI49Qbzf8APhO1jmj a8rBu1+QGwmxDRVEB27Qr7IUT9UutifB2H/NaxhEvGlUqhi956nbebM2N2wq5kAl vGviLHHYx0HSPkFgSK4Fp4CzYcld6qFn3vhQMePfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeefgdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepvegrrhhlucffohhnghcuoegtohhnthgrtghtsegtrghrlhguohhn ghdrmhgvqeenucggtffrrghtthgvrhhnpeelueeuleelieekffdtueeifeevhfejfffhff ejheevleehffffieeigeetjeevkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpegtohhnthgrtghtsegtrghrlhguohhnghdrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Feb 2022 13:22:31 -0500 (EST) From: Carl Dong Date: Tue, 1 Feb 2022 13:22:03 -0500 Message-Id: <20220201182202.2300335-1-contact@carldong.me> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=64.147.123.24; envelope-from=contact@carldong.me; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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))