From patchwork Tue Nov 19 06:54:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 70516 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 C06C727BBEA; Tue, 19 Nov 2024 06:59:47 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 83CC127BBE2 for ; Tue, 19 Nov 2024 06:59:47 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDICc-0008Jj-8N; Tue, 19 Nov 2024 01:59:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDICa-0008I8-B2 for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:08 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tDICa-0004IB-0a for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Qt95m4uKHM+54AY3ttIyfuvxneu8yjJgxxbpcdIZ4Bs=; b=jkrlRPeh7KAKBFkP/WI5u+93F0XfSXAokbcMxx/6wwvUj6eAkr5JCvS9eSPOgTfmLHxdgmXVC7GO+2TtiopB+LcbkgUbw8FhuAeegKrgXYLiA1bJmNgZsyr5tkAC8qRRGsIk6QO54HHKfdrTJP2Hcglgz8AE0kNloUgbYHOTx+zGuOPjToLttA9EmLT6i6DInTK2o6de5qYauGEhYsEswKuHjEMo3UmtbyFPVwekx3xL4dRzBgmLmFRejlL4+/WjsM3rMjmBmM1UEl1ytLGgpAzMHZRAV5KvkyfvcXYklaYKOHR4+8T1hDlTZn7fH8aDN6gKI6sIfJcc5MYpKLP8Bg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDICZ-0005FP-RC for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH v3 06/51] gnu: bash-minimal: Support [cross-]build with gcc-14. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Nov 2024 06:59:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74290 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74290@debbugs.gnu.org Received: via spool by 74290-submit@debbugs.gnu.org id=B74290.173199950219701 (code B ref 74290); Tue, 19 Nov 2024 06:59:07 +0000 Received: (at 74290) by debbugs.gnu.org; 19 Nov 2024 06:58:22 +0000 Received: from localhost ([127.0.0.1]:40451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDIBq-00057d-FU for submit@debbugs.gnu.org; Tue, 19 Nov 2024 01:58:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDIBd-000552-55 for 74290@debbugs.gnu.org; Tue, 19 Nov 2024 01:58:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDI9S-0003wT-7I; Tue, 19 Nov 2024 01:55:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=Qt95m4uKHM+54AY3ttIyfuvxneu8yjJgxxbpcdIZ4Bs=; b=A0zsLMbsTsy36jyN+Lc8 4GRWoD1yhMI3E2SseRh43owuizAThQzKH4aiInH9Se6nxhWxpRyILXu27EZGoJlR4L72NwCR6L6S4 aRXPSfjEG/Yy6u3SWhx5bd7jBujYQxzsm4KuLNo5HyAT6IOjt2XXUnXHqFi65yUT23mehmGjG7Gun jpkfPHiPO+h0Zh/LZMBXQzSgQBjXaOXoUWshV0akDnzZllI5ZWol7EwR1sgUevf2GJHW09REuNG8Z lL9OZ4RgwWXYESfEwA/Ky6/Gpq6dhiv2Z4xLFufkWe+OHefN1W4WZif4oebMnlrS/c2WeAH9n5jBJ nyq9Jph5XjT/3Q==; From: Janneke Nieuwenhuizen Date: Tue, 19 Nov 2024 07:54:36 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/bash-minimal.scm (bash)[arguments]: When building for the 64bit hurd, or cross-building, use "CFLAGS=-g -O2 -Wno-implicit-function-declaration". Change-Id: I1356c0aeac303bdf0254c28815716c83884008a0 --- gnu/packages/bash.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 93641a78d5..56918d79bd 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2020 Zhu Zihao ;;; Copyright © 2021 Marius Bakke ;;; Copyright © 2024 Oleg Pykhalov +;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -251,6 +252,13 @@ (define-public bash-minimal ;; modules and related code. "ac_cv_func_dlopen=no" + ,@(if (or (target-hurd64?) (%current-target-system)) + ;; gcc-14 implictly uses -Wimplicit-function-declaration + ;; which together with -Werror causes: + ;; ./enable.def:492:11: error: implicit declaration of function ‘dlclose’; + '("CFLAGS=-g -O2 -Wno-implicit-function-declaration") + '()) + ,@(if (%current-target-system) '("bash_cv_job_control_missing=no" "bash_cv_getcwd_malloc=yes")