From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#36338: guile-2.2.5 fails to build with -ffast-math Date: Wed, 26 Jun 2019 22:57:57 -0400 Message-ID: <87lfxnrayy.fsf@netris.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="140363"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 36338@debbugs.gnu.org To: Cyprien Nicolas Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jun 27 05:04:19 2019 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgKhu-000aAl-9U for guile-bugs@m.gmane.org; Thu, 27 Jun 2019 05:04:18 +0200 Original-Received: from localhost ([::1]:45942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgKhn-0004GB-2d for guile-bugs@m.gmane.org; Wed, 26 Jun 2019 23:04:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32986) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgKhf-0004Ft-LU for bug-guile@gnu.org; Wed, 26 Jun 2019 23:04:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgKhe-0006tk-Mk for bug-guile@gnu.org; Wed, 26 Jun 2019 23:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgKhe-0006te-JS for bug-guile@gnu.org; Wed, 26 Jun 2019 23:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgKhe-0001Wi-Bs for bug-guile@gnu.org; Wed, 26 Jun 2019 23:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 27 Jun 2019 03:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36338 X-GNU-PR-Package: guile Original-Received: via spool by 36338-submit@debbugs.gnu.org id=B36338.15616045855805 (code B ref 36338); Thu, 27 Jun 2019 03:04:02 +0000 Original-Received: (at 36338) by debbugs.gnu.org; 27 Jun 2019 03:03:05 +0000 Original-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 Original-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 Original-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 In-Reply-To: (Cyprien Nicolas's message of "Sun, 23 Jun 2019 11:00:23 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9371 Archived-At: 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