From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yFzmF3c3PGfznAAA62LTzQ:P1 (envelope-from ) for ; Tue, 19 Nov 2024 07:00:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yFzmF3c3PGfznAAA62LTzQ (envelope-from ) for ; Tue, 19 Nov 2024 08:00:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=b+GrtMfR; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="g6O/NSQF"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731999607; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lqpisiRgmw43Cx2rzKtRJIYjy0xr1729dZT+hDGieYc=; b=cZUJE7Jemufq9fbWSjkYcgd2F2xr2Uc0zhuWtVv05a0/hz3HmB7+KUihapfkPj/MtY10pT nKauOfgoElQtf46NayLmiZSnDxRqbd3qZxCtcsi6ZNI+ky+enLr+442Aeum+dDg9dEV5cM /V9NRNIYOOxKeh/5XYBVR06tHhm3aq+Po7MuYF64Ox6/iFHv5RDNNYJ1Sr83Je2efpfFzw T7aPML0AI3MSbBZledqJWr4A693oIEWddfNhMtlxliwJUGxMDT//TB7L9+yIiajV56btFv y2aCULbAXfQikydnyTML5AUoxF81u7hdvA91NI6p2jZ8BIf0n6f6SoNuKvvrbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=b+GrtMfR; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="g6O/NSQF"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731999607; a=rsa-sha256; cv=none; b=TDszW9AOHtaGndZcRSKyiIcH6dlcGmAMym9UpkaW1gnjqqgw7hoo0Jcpx3qL19n72P1HvY apNYn0AIFcT4KAoqM1Wz8QhRWOhOLlpeJ1asNRNLKDvWZW3jzVh6TLOx6fSfQdzDi67kLb rKxsmNbVWm0BsKOw52LSlw92gPtpngqEr0P+yNtRCoaKlGm4p2+8+XJl0lcj5WxJ/5wztO u3wT0aOOK7VoU/cYV0eaQBMr94VdQ5OzKVUpeYyluJYk3XtJF5lDiNQlvokBvfuNRFMDC4 ZgelLTT9VbbjfZ38ORNSpoEZt3PtJQV2Tqg1i8KUHQhuptBQU5HFRGPdDpR06Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0EC2543474 for ; Tue, 19 Nov 2024 08:00:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDICl-0008Q3-EI; Tue, 19 Nov 2024 01:59:19 -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 1tDICi-0008Nq-Lb for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:17 -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 1tDICi-0004KS-5i for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:16 -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=lqpisiRgmw43Cx2rzKtRJIYjy0xr1729dZT+hDGieYc=; b=b+GrtMfR4hDlMZxt9ABtYPJcNoX2F02suIyuPvyG0DxmWaxrug3iIH58969vhtHuyUnrRRvDrd+Hu/dC1oeFcsT06+Vrr5bQ3mXA8ENrqPmZSKjTM3nOhI0tGlx2roFO+eaygiIrET4yvEh9D5Lq7Ltzzt9du9R9JHFWu+9dDQpxvs7khukTD/+ysWrpOuSHQmHx8VpMU+8dKL9Fj/1MVkXJZbvMiuOOT5c1D34cec/OoHsYIuCrOlxltvGIlN2X2REu2LipiX4SSUHKD5pDVcAFSrtWuqI3sTBNlr1r+h3W49jcXjhu/EoGcSV0cX3cWZr4JBEUzXQEyMazheVmQg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDICi-0005I0-06 for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:16 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH v3 16/51] gnu: libffi: Fix [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:15 +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.173199950919830 (code B ref 74290); Tue, 19 Nov 2024 06:59:15 +0000 Received: (at 74290) by debbugs.gnu.org; 19 Nov 2024 06:58:29 +0000 Received: from localhost ([127.0.0.1]:40485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDIBx-00059b-0X for submit@debbugs.gnu.org; Tue, 19 Nov 2024 01:58:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDIBp-00056t-Ee for 74290@debbugs.gnu.org; Tue, 19 Nov 2024 01:58:22 -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 1tDI9d-0003yf-Pl; Tue, 19 Nov 2024 01:56:05 -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=lqpisiRgmw43Cx2rzKtRJIYjy0xr1729dZT+hDGieYc=; b=g6O/NSQFaCyNhTx1K9PM z1bLgUkXeHXilKsf5Mg9zw94hH0GY8vcQFtamoy6JtDeYlBiWSnJRqKCs+bMz6UvlDJUP0WH8jzQu D0XLXmCO7fgWwtOqNRhfmAe4p1O9lYG8ODUyON+R7xv1VZPS6q6/k+Q6Xux9VjpJbRYBrbdmm53IK p2w284xqRzbZCvLXNr7+gSpGZm46ppAGLVKR/jKQUD2zAlthMe33n/DdY5G/cyXMAo8psiSRh31YF +69eMH818MQ6mN8yVCIs2VzPQVHaxQzxdHwy1wTbuux42JJdXBkcILv8t23bYcr2Oj0R4yZhOXaGT zlk2w9r2CbUdLA==; From: Janneke Nieuwenhuizen Date: Tue, 19 Nov 2024 07:54:46 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -3.72 X-Spam-Score: -3.72 X-Migadu-Queue-Id: 0EC2543474 X-TUID: wab5CCihARoh * gnu/packages/libffi.scm (libffi)[arguments]: When building for the 64bit Hurd, or cross-building, add "CFLAGS" to #:configure-flags to disable breaking warning. Change-Id: I05bf3f460f3e292626de1894b7a3cf381cb07702 --- gnu/packages/libffi.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm index ba3fc6bc79..62be8f0c4a 100644 --- a/gnu/packages/libffi.scm +++ b/gnu/packages/libffi.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2019, 2021 Maxim Cournoyer ;;; Copyright © 2020 John Doe +;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -60,7 +61,12 @@ (define-public libffi `(;; Prevent the build system from passing -march and -mtune to the ;; compiler. See "ax_cc_maxopt.m4" and "ax_gcc_archflag.m4". #:configure-flags '("--enable-portable-binary" - "--without-gcc-arch"))) + "--without-gcc-arch" + ,@(if (or (target-hurd64?) (%current-target-system)) + (list (string-append + "CFLAGS=-g -O2" + " -Wno-implicit-function-declaration")) + '())))) (outputs '("out" "debug")) (synopsis "Foreign function call interface library") (description -- 2.46.0