From unknown Sat Aug 16 11:41:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36338 <36338@debbugs.gnu.org> To: bug#36338 <36338@debbugs.gnu.org> Subject: Status: guile-2.2.5 fails to build with -ffast-math Reply-To: bug#36338 <36338@debbugs.gnu.org> Date: Sat, 16 Aug 2025 18:41:55 +0000 retitle 36338 guile-2.2.5 fails to build with -ffast-math reassign 36338 guile submitter 36338 Cyprien Nicolas severity 36338 normal tag 36338 notabug wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 05:00:33 2019 Received: (at submit) by debbugs.gnu.org; 23 Jun 2019 09:00:33 +0000 Received: from localhost ([127.0.0.1]:52870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1heyMS-0006zB-U2 for submit@debbugs.gnu.org; Sun, 23 Jun 2019 05:00:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:58597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1heyMQ-0006yz-ST for submit@debbugs.gnu.org; Sun, 23 Jun 2019 05:00:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40231) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heyMP-000714-HS for bug-guile@gnu.org; Sun, 23 Jun 2019 05:00:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1heyMO-0005cO-9q for bug-guile@gnu.org; Sun, 23 Jun 2019 05:00:29 -0400 Received: from cubran.fulax.net ([91.224.149.126]:34300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1heyMN-0005Y8-Cp for bug-guile@gnu.org; Sun, 23 Jun 2019 05:00:28 -0400 Received: from [192.168.1.9] (static-176-139-30-77.ftth.abo.bbox.fr [176.139.30.77]) by cubran.fulax.net (Postfix) with ESMTPSA id 5545C9600B for ; Sun, 23 Jun 2019 09:00:23 +0000 (UTC) Authentication-Results: cubran.fulax.net; dmarc=none header.from=nicolas.tf DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolas.tf; s=beta; t=1561280423; bh=qcPs3DRVUioDhS7Ott6kAkMRrnVS5UYP7rnWIT6bj4A=; h=To:From:Subject:Date:From; b=bZDEP/vgWmpL7DYxmkoTukUCEqnCGcM8UhcQOSi6+fZMRZbYsuguymLeOQno5cQbs UmOf9tYQolQI3g2HXpYd12VBgdkrERabfQkU3xB9c+zorANT7N2E5STviS8bJ042Dt BvryoNcUuUSrprmk/r+4PQba2tYL5o44luJ4Hp90xIyYIxRkYeQVagDLfs01wrVOMu 86wL+BYxwoLXH1XTVPC4p9dlIpzH6gLwmFJWMW9KCTdtXznLxMmPlar3Jj6ZbxSIFh k3+JH8+VK17GdYG8WYZPyvMayUxyp7/k6OJSsdn3duuSxFzBsFDSAcwrxJKdISdwvi s0A1uDbgPVi+KxkUuhSB9Y7+HQIyZu1A5pqecp8ydsTEicLv2vPoHL5HhhDJwTkRQF Px4jF/0OydWllkm8+9iDtF4SLHmtrXKXiaUb0dNHfjwppmhb1cuXg8zIT4z8MHOOO4 tX2knHhwHveqaCutsIu+JDQUcjJvsDimOmu34BifNSQXNN7oFMndOcWaKZmPVuxfJN +O1sa31q/O7HmhRc5Q2BirZZkhY34D4QXEZdNJjlFYA8PgabUCGdc7z4sGkFGmEhGD DHYL4WZReSWEf5rKOwbtkfxLBceulUHyYU58HQLw5ZP1owtPfEZHkF18tBeWNgRuLV g0Rn2gjwPOUoipgKt7YLF9Vk= To: bug-guile@gnu.org From: Cyprien Nicolas Subject: guile-2.2.5 fails to build with -ffast-math Message-ID: Date: Sun, 23 Jun 2019 11:00:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 91.224.149.126 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, I apologize if the issue was already reported, but I didn't find a previous record. At Gentoo, users build packages themselves, and have the freedom to choose the CFLAGS they want. We had several reports [1,2] from users unable to build guile with -Ofast. Adding -fno-fast-math make the build pass. Compiling with -O0 -ffast-math also fails. I'm not sure if you can solve this. On our side, we will append -fno-fast-math to compiler's flags. GUILE_AUTO_COMPILE=0 \ ../meta/build-env \ guild compile --target="x86_64-pc-linux-gnu" \ -O1 \ -L "/var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5/module" \ -L "/var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5/guile-readline" \ -o "language/cps/types.go" "../module/language/cps/types.scm" make[2]: *** [Makefile:1931: language/cps/types.go] Aborted make[2]: Leaving directory '/var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5/bootstrap' make[1]: *** [Makefile:1857: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5' make: *** [Makefile:1743: all] Error 2 omega /var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5 # ./build-aux/config.guess x86_64-pc-linux-gnu omega /var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5 # ./config.status --config '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/usr/share/doc/guile-2.2.5' '--htmldir=/usr/share/doc/guile-2.2.5/html' '--with-sysroot=/' '--libdir=/usr/lib64' '--program-suffix=-2.2' '--infodir=/usr/share/info/guile-2.2' '--disable-error-on-warning' '--disable-rpath' '--disable-static' '--enable-posix' '--without-libgmp-prefix' '--without-libiconv-prefix' '--without-libintl-prefix' '--without-libltdl-prefix' '--without-libreadline-prefix' '--without-libunistring-prefix' '--disable-guile-debug' '--disable-debug-malloc' '--enable-deprecated' '--enable-networking' '--disable-nls' '--enable-regex' '--with-threads' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-Ofast -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS=' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig' 1. in 2003 https://forums.gentoo.org/viewtopic-t-72916-start-0.html 2. in 2016 https://bugs.gentoo.org/598986 Thanks, Cyprien From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 26 23:03:05 2019 Received: (at 36338) by debbugs.gnu.org; 27 Jun 2019 03:03:05 +0000 Received: from localhost ([127.0.0.1]:37266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgKgj-0001VZ-8R for submit@debbugs.gnu.org; Wed, 26 Jun 2019 23:03:05 -0400 Received: from world.peace.net ([64.112.178.59]:33886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgKgg-0001V3-OZ for 36338@debbugs.gnu.org; Wed, 26 Jun 2019 23:03:03 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgKga-0008Vc-Hs; Wed, 26 Jun 2019 23:02:56 -0400 From: Mark H Weaver To: Cyprien Nicolas Subject: Re: bug#36338: guile-2.2.5 fails to build with -ffast-math References: Date: Wed, 26 Jun 2019 22:57:57 -0400 In-Reply-To: (Cyprien Nicolas's message of "Sun, 23 Jun 2019 11:00:23 +0200") Message-ID: <87lfxnrayy.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36338 Cc: 36338@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36338 + notabug wontfix close 36338 thanks Hi Cyprien, Cyprien Nicolas writes: > I apologize if the issue was already reported, but I didn't find a > previous record. > > At Gentoo, users build packages themselves, and have the freedom to > choose the CFLAGS they want. > > We had several reports [1,2] from users unable to build guile with > -Ofast. Adding -fno-fast-math make the build pass. > > Compiling with -O0 -ffast-math also fails. Guile generally assumes that the underlying C implementation will be standards compliant. -Ofast, -ffast-math and related options disregard standards compliance. Among other things, -ffast-math implies -ffinite-math-only, which generates code that assumes that all floating point values are finite. However, there's code in Guile's compiler that uses +inf.0 and -inf.0 and expects that they will behave as specified in IEEE-754. So, in summary, I would say that Guile does not support being compiled with -Ofast, -ffast-math, or many of the options that -ffast-math implies. > I'm not sure if you can solve this. On our side, we will append > -fno-fast-math to compiler's flags. I think this is the right approach. Thanks, Mark From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 26 23:14:13 2019 Received: (at control) by debbugs.gnu.org; 27 Jun 2019 03:14:13 +0000 Received: from localhost ([127.0.0.1]:37270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgKrV-0001kk-Bc for submit@debbugs.gnu.org; Wed, 26 Jun 2019 23:14:13 -0400 Received: from world.peace.net ([64.112.178.59]:33896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgKrT-0001kW-7H for control@debbugs.gnu.org; Wed, 26 Jun 2019 23:14:11 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgKrN-00009o-Os; Wed, 26 Jun 2019 23:14:05 -0400 From: Mark H Weaver To: control@debbugs.gnu.org Date: Wed, 26 Jun 2019 23:09:09 -0400 Message-ID: <87h88braga.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 36338 + notabug wontfix close 36338 thanks Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) tags 36338 + notabug wontfix close 36338 thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 07 09:03:22 2019 Received: (at 36338) by debbugs.gnu.org; 7 Jul 2019 13:03:22 +0000 Received: from localhost ([127.0.0.1]:56275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hk6p8-0003pn-6R for submit@debbugs.gnu.org; Sun, 07 Jul 2019 09:03:22 -0400 Received: from cubran.fulax.net ([91.224.149.126]:35607 ident=cubran) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hk6p6-0003pd-2z for 36338@debbugs.gnu.org; Sun, 07 Jul 2019 09:03:20 -0400 Received: from [192.168.1.9] (static-176-139-30-77.ftth.abo.bbox.fr [176.139.30.77]) by cubran.fulax.net (Postfix) with ESMTPSA id 4980596036; Sun, 7 Jul 2019 13:03:11 +0000 (UTC) Authentication-Results: cubran.fulax.net; dmarc=none header.from=nicolas.tf DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolas.tf; s=beta; t=1562504591; bh=2Ju6YtFHExV7FqqFImxKlpYo2+/lCunGosYxpRJR+ww=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=tjCIPN/FGyg6uWiqFi3BRMGxSv5IGSR5BHWHtePKS2fowE+WuWwxmyXfJHjjQuchv SxroFR3CNN2/bODMNqFeaf0ANO+5iFyifWuANmLSg9tX78geINak7u2xgsqH/Hiacl 0B1Nzj2ZuNmNdS/WqXqkTuPf9R29tGyBo/2SFyVkoU/pVLkB7oY3M9Lq9Fi71ZCZRM uQ9A8ZgSvzXOqqPMlhjbHGUug23xNtWDPtt8ACvE3oiRNEZaq42ESWlU7lu4P4hwqy dcOa+7SYLTfF22qAWgyIVUVtqEQ9ocCe/3udmzwq+vAbpSAZShcYQ2sh5/GqGzu/U4 uAiiuztsDP4fTYn+jPK8mcT6Nm8LshOAd2fscqSpYFdjxbjTunlmZqaujiaHnsAv/F W8+RfOHLKaMxPnBbGJ300FnRO4cE4nHKvhFEv53QweA/dIwFNL5QBjOIIHSAeB8v33 qNL1AkuxXpuN7bzGtnBMvIh2ZTivkHuxYH9syi9xajgWAo3zJCpPELQSZlc9S87qwV XFdkbofSaqpOI7h7zAmx3hUevNrTNCdKmdczYeaSRET0kvFBs1yRkWcMI3jv2ItLW7 UGwOKks1w992i8kiI0nnCBBxY6M/chSs+GQe8R0uPJzC4OcyYaV/wUGHyeNR49hM88 95h9p5XVXSdMpknP+8IiZ+dM= Subject: Re: bug#36338: guile-2.2.5 fails to build with -ffast-math To: Mark H Weaver References: <87lfxnrayy.fsf@netris.org> From: Cyprien Nicolas Message-ID: <772d1c89-b786-8cd3-91f8-dbb94dce38f5@nicolas.tf> Date: Sun, 7 Jul 2019 15:03:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <87lfxnrayy.fsf@netris.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36338 Cc: 36338@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 27/06/2019 04:57, Mark H Weaver wrote: > > Guile generally assumes that the underlying C implementation will be > standards compliant. -Ofast, -ffast-math and related options disregard > standards compliance. Among other things, -ffast-math implies > -ffinite-math-only, which generates code that assumes that all floating > point values are finite. However, there's code in Guile's compiler that > uses +inf.0 and -inf.0 and expects that they will behave as specified in > IEEE-754. > > So, in summary, I would say that Guile does not support being compiled > with -Ofast, -ffast-math, or many of the options that -ffast-math > implies. Thank you for the clear and detailed explanation. It makes sense. Cyprien From unknown Sat Aug 16 11:41:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 05 Aug 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator