From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EPsXGYflQmf7PQAAe85BDQ:P1 (envelope-from ) for ; Sun, 24 Nov 2024 08:36:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id EPsXGYflQmf7PQAAe85BDQ (envelope-from ) for ; Sun, 24 Nov 2024 09:36:23 +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=BQ4NAoav; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=YMQoN3OP; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732437383; a=rsa-sha256; cv=none; b=JNzFZ9neYe93/dPSH3qOc5DriAd3A575E6GjtpAKnhqAFUiqQ9UDarL9tFfOraC1mjwqq3 aVop+di3hCbRLn5SiYWk17hT9v+cEpjRGAi0XwH17QTCG3YMYTMH6VtaS+VhsQ3VCGPK1R g351ZN5ibKkMWdKRv6gSO0Vw1qoHpCn4OHfi5nESYWDmxbIweLOg3TVkSoJyKFVe4MfhIQ sz7cg17Pwy8+qyOiaiaD4f+Tt/3Yvowi6lS0+MSauP7dwgQkeC+HDR7qht43KAkZHgQd/q C/9SNbnUXe7q2Ki2uLIYf+yD4Hb4HOIBiAtfP23YIGNdnjFc6YSYzOuaxMaqJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=BQ4NAoav; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=YMQoN3OP; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732437383; 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=ge5ZpYU0tvE617p4ME77JrJ1N6VLkdCySW2857bvFjh+f3TAwiIB5KfScBD+DTxDIgpDCt if2pxVA5IfJOk7X6enoBFIFuA+w9R8nN0pM/wYmE74/IdRHNEYNMZHxIfHFymGGCSDLgUd vCkeVKI4g//9PyZ6z3ENyZZRiVgJFsq9X5OlvJHV1y0Q1/FouC1vbskfUjsjkzrOf9Ko2+ rMJ5E+I7NXDkkpeE5UAaAf91tmSrWIgymrqaHOrS+aJ1Vt5PLoUy5ET5iBoPaEZ9tsaXLF F5Yb09FEb0gFmpQ7NIrjORyvzU3OrLMRRtmYgrYVAUbUj8G0GioGvGJtZT+jLA== 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 D24BC8E418 for ; Sun, 24 Nov 2024 09:36:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tF7Ub-0000Fg-1w; Sun, 24 Nov 2024 02:57:17 -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 1tF7UT-0000Df-9m for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:09 -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 1tF7UT-0002Kz-0u for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:09 -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=BQ4NAoavUakVCuN1EOLHL+Nw/UpW4bfdWQq7HjqGLsOS6rdkrDXKx3NEhs5sllCSTBBCYIna3z8S/mIclcgox0/ph6xGfgMK8mm5zKVTsj7+mu7dhTRALOMNoZm/nUlnAGOo2XZ7aYNHDWS2p5fQjSpmyZoC+49hxpXrxIOyspMo86tmsryqjLUuNm2TXnm8D6Gbh/YF3P3RzYAEZOh3vTfXcgYOBCr29+1fxMxFsJ1G31wsuSPQDqVX6MvScYQ7hinhM+NBLTJFi3tv4x/sPX8lHDPlXWGeo41Dqv7RaQkXvof54h/DTVaJDq9/3k0li3OzbySvBMmZcOS770hTBg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tF7US-0004gi-RL for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH v4 16/58] gnu: libffi: Fix [cross-]build with gcc-14. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Nov 2024 07:57:08 +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.173243500417716 (code B ref 74290); Sun, 24 Nov 2024 07:57:08 +0000 Received: (at 74290) by debbugs.gnu.org; 24 Nov 2024 07:56:44 +0000 Received: from localhost ([127.0.0.1]:60745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF7U4-0004bZ-6n for submit@debbugs.gnu.org; Sun, 24 Nov 2024 02:56:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF7Ta-0004Wc-6B for 74290@debbugs.gnu.org; Sun, 24 Nov 2024 02:56:15 -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 1tF7TU-00022c-W8; Sun, 24 Nov 2024 02:56:09 -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=YMQoN3OPqUaVdXYjgMCT XgAFpRRxDXc+jeafKUVuObE98G/CdkPxYjfTm9bKQj+Re40Xp9xsYa48xEUr+jAK7laLi6V4M38e/ 4oY1/k0i/2Fhvy8nj6n5ysMQS1aoFjoMtr4EKHG7h1V4CcrZUJwKrCFj9UKRubJhMoq5nSskj8tSr VVs/rEgLX85tB/jUpZKPre4jVgl8Xhl1XE3Sa/3fPKkjmlQx/GZeYPJip8ZcLHMqJu2AWbj9ubh1S ImcG2i4ttlZQpkSIDAllkoOp3fjoQzfxpExRYvoQbAglm+slCu9doYwOFXexMhOmqZxtMXwjcxdJU lfXAzUdYte3R6Q==; From: Janneke Nieuwenhuizen Date: Sun, 24 Nov 2024 08:54:39 +0100 Message-ID: <59f0acb9eeb06db0050064945f58cc68320dbd92.1732434271.git.janneke@gnu.org> 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-Spam-Score: -7.48 X-Spam-Score: -7.48 X-Migadu-Queue-Id: D24BC8E418 X-Migadu-Scanner: mx10.migadu.com X-TUID: qAutzqd3CAyY * 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