From patchwork Sun Nov 10 10:38:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 70175 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 21A7627BBEA; Sun, 10 Nov 2024 10:39:52 +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 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 CBC9827BBE2 for ; Sun, 10 Nov 2024 10:39:51 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tA5Lv-0000Ns-Oy; Sun, 10 Nov 2024 05:39:31 -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 1tA5LX-0008Uf-Fs for guix-patches@gnu.org; Sun, 10 Nov 2024 05:39:07 -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 1tA5LX-0007sy-6e for guix-patches@gnu.org; Sun, 10 Nov 2024 05:39:07 -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=ZxI/gq58eWCTS4TrSRJVe5AfDbAQNW+5TBQK2EriJ8w=; b=K5TtWWngmy4S8ECG5LKr7p2bAECTXXt4FjwlA1DQLEWirHIPaC3J8PWuW4s0ykSOhbDT0cB9IgpOeGg1oCoau3cFez+pBLx5uD8SVcxwJmc7Es12I6EvP0lcPXXfz/Zfk7zKnnCunZR9uWxCyzRBab3xn5GPnShca6jpQy8tLFx5O21RQQ5xe6Mel+Rryi7ivVOP66ws5t983emA1jmhRWRgxMk1lCxqjIsSWFojsWIC7+IrbJJCrQbWqLlPmorkO7RPmjJpnavOwK3AJN2Edh2Yvf6BmD/HuIfYWfNAvuuNcOrvZqNwHzOJajbr1xEmZY2w8IAET1dY5kgMbhWlIQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tA5LX-0002b2-0H for guix-patches@gnu.org; Sun, 10 Nov 2024 05:39:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH 07/31] gnu: bash-minimal: Fix build for 64bit Hurd. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Nov 2024 10:39:06 +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.17312351419884 (code B ref 74290); Sun, 10 Nov 2024 10:39:06 +0000 Received: (at 74290) by debbugs.gnu.org; 10 Nov 2024 10:39:01 +0000 Received: from localhost ([127.0.0.1]:55695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA5LQ-0002ZB-Eu for submit@debbugs.gnu.org; Sun, 10 Nov 2024 05:39:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA5LJ-0002X5-Qq for 74290@debbugs.gnu.org; Sun, 10 Nov 2024 05:38:54 -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 1tA5LE-0007nd-Kr; Sun, 10 Nov 2024 05:38:48 -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=ZxI/gq58eWCTS4TrSRJVe5AfDbAQNW+5TBQK2EriJ8w=; b=iBc/okg+o6wRCrngouyF BSqh5R12HAfyxmy4MmQS/sz/1k8/PAbfePpKcx2fYF1QMvwNRW7YEXee3ppCYUjJn/pKk2sX0XlO2 ccMFiBLAuLQulicXbGh/FQFf7yircNVREOmcd+2Na1xN2I/l5sc74mnEzMYoR1OIw4Sx2jHqskT12 4dzIwr1lHLvecJBFRgtL4gpx14O9EQUJxGbIPZS008stInpgHVHO/7vp1+lEpLkOrY3BrnwoHINid zUUkFvdxfKovzQUZ2VDBJ4IpPRnoecn84ge7eocKNyNl8YMFoA4O3ktp6fn6a52mgLaiyopKzmrhj UmXlXd8MdR6CSg==; From: Janneke Nieuwenhuizen Date: Sun, 10 Nov 2024 11:38:03 +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 with gcc >= 14 use "CFLAGS=-Wno-implicit-function-declaration". Change-Id: I3fd2da7a1d9011b155084dceadbad649dbb2a1b9 --- gnu/packages/bash.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 93641a78d5..1a3b014ad7 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. ;;; @@ -30,6 +31,7 @@ (define-module (gnu packages bash) #:use-module (gnu packages base) #:use-module (gnu packages bootstrap) #:use-module (gnu packages compression) + #:use-module (gnu packages gcc) #:use-module (gnu packages elf) #:use-module (gnu packages ncurses) #:use-module (gnu packages readline) @@ -251,6 +253,13 @@ (define-public bash-minimal ;; modules and related code. "ac_cv_func_dlopen=no" + ,@(if (version>=? (package-version (current-gcc)) "14") + ;; gcc-14 implictly uses -Wimplicit-function-declaration + ;; which together with -Werror causes: + ;; ./enable.def:492:11: error: implicit declaration of function ‘dlclose’; + '("CFLAGS=-Wno-implicit-function-declaration") + '()) + ,@(if (%current-target-system) '("bash_cv_job_control_missing=no" "bash_cv_getcwd_malloc=yes")