GNU bug report logs - #43579
g++ does not provide std::fegetround

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Andreas Enge <andreas@HIDDEN>; dated Wed, 23 Sep 2020 16:23:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 43579 <at> debbugs.gnu.org:


Received: (at 43579) by debbugs.gnu.org; 2 Oct 2020 02:39:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 01 22:39:46 2020
Received: from localhost ([127.0.0.1]:38877 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kOAz4-0000wE-Jc
	for submit <at> debbugs.gnu.org; Thu, 01 Oct 2020 22:39:46 -0400
Received: from eggs.gnu.org ([209.51.188.92]:59622)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brettg@HIDDEN>) id 1kOAz2-0000vz-Ta
 for 43579 <at> debbugs.gnu.org; Thu, 01 Oct 2020 22:39:45 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38746)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <brettg@HIDDEN>)
 id 1kOAyw-0002IR-VE; Thu, 01 Oct 2020 22:39:38 -0400
Received: from [2605:6000:1a0d:48fb::8e5] (port=58236 helo=debian)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <brettg@HIDDEN>)
 id 1kOAyw-0002xB-FU; Thu, 01 Oct 2020 22:39:38 -0400
From: Brett Gilio <brettg@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#43579: g++ does not provide std::fegetround
In-Reply-To: <87wo0arulv.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Thu, 01 Oct 2020 14:36:28 +0200")
References: <20200923162121.GA28654@jurong> <87wo0arulv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Date: Thu, 01 Oct 2020 21:39:35 -0500
Message-ID: <87o8llxsew.fsf@debian>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43579
Cc: Andreas Enge <andreas@HIDDEN>, 43579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Hallo!
>
> Andreas Enge <andreas@HIDDEN> skribis:
>
>> The following test file round.cpp does not compile with our g++-10.2.0:
>> #include <cfenv>
>> int main () {
>>    return std::fegetround ();
>> }
>
> Could you provide detailed steps to reproduce it?
>
> Thanks,
> Ludo=E2=80=99.

I believe `std::fegetround` was introduced in C++11, are you using the
appropriate flag?

Brett Gilio




Information forwarded to bug-guix@HIDDEN:
bug#43579; Package guix. Full text available.

Message received at 43579 <at> debbugs.gnu.org:


Received: (at 43579) by debbugs.gnu.org; 1 Oct 2020 12:36:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 01 08:36:42 2020
Received: from localhost ([127.0.0.1]:34577 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kNxpC-00042A-Ep
	for submit <at> debbugs.gnu.org; Thu, 01 Oct 2020 08:36:42 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56188)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kNxpB-00041x-4o
 for 43579 <at> debbugs.gnu.org; Thu, 01 Oct 2020 08:36:41 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53755)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kNxp5-0001Gp-Gw; Thu, 01 Oct 2020 08:36:35 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38014 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kNxoz-0004qA-St; Thu, 01 Oct 2020 08:36:32 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Andreas Enge <andreas@HIDDEN>
Subject: Re: bug#43579: g++ does not provide std::fegetround
References: <20200923162121.GA28654@jurong>
Date: Thu, 01 Oct 2020 14:36:28 +0200
In-Reply-To: <20200923162121.GA28654@jurong> (Andreas Enge's message of "Wed, 
 23 Sep 2020 18:21:21 +0200")
Message-ID: <87wo0arulv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43579
Cc: 43579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hallo!

Andreas Enge <andreas@HIDDEN> skribis:

> The following test file round.cpp does not compile with our g++-10.2.0:
> #include <cfenv>
> int main () {
>    return std::fegetround ();
> }

Could you provide detailed steps to reproduce it?

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#43579; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 43579 <at> debbugs.gnu.org:


Received: (at 43579) by debbugs.gnu.org; 23 Sep 2020 21:27:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 17:27:20 2020
Received: from localhost ([127.0.0.1]:38048 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLCIJ-0003ZI-Gc
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 17:27:19 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21167)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1kLCIG-0003Z6-UJ
 for 43579 <at> debbugs.gnu.org; Wed, 23 Sep 2020 17:27:18 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1600896435; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=ZeBjreJI1NR26nzQl2IPh+JEqn8YlriVlVOQJktNPZBM79VRHh5oV4cyDfXv4vBwaGIt2NfYon1C0VsmSNBtGFsIDnHRLY8dg3w5SAc3e3/D3eMYtg53/M9frKx9hEbC2gEPGP466zg4bBha/hLKnbxbvVH0TzLfKYTESw8fTwQ=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1600896435;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=CVf9Ikx29sCnIN0lnd4K95S0+uqqKGgWdRxXp+BkJnU=; 
 b=EjCTjEkU4WbXYD1Td/FzaEWlGXQaQ0F35/LZ0VWJUU86ZNuRpH4yjYLR8RDtm8lIswEds6JLGJUwxB8tF2MoJW09U7zQrrnajaPGB5O82IYK5JxuU2kVXw1Ss+SCtkmqNkYC03T+cwD6W+AD/BhmDcJb2cSXXSZr8/32Audft4Q=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600896435; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 bh=CVf9Ikx29sCnIN0lnd4K95S0+uqqKGgWdRxXp+BkJnU=;
 b=crS7nTv/tUZdWlTLL9aVDbkZS0cdvR38HZ65wtMBVgaX9NVfZeAue9gWiJ5+ju5k
 tiHBCo2Ga6R7OCy71TUuttB85xQt2/JbUID8m2gA5xRRwe292mBnHFjWVuLCXcFYybo
 MX1p29O4ZIuyhX24fCr63avQLw6uuSvblY8v1DA8=
Received: from localhost (p4fd5ac63.dip0.t-ipconnect.de [79.213.172.99]) by
 mx.zohomail.com with SMTPS id 1600896431710620.1697574545213;
 Wed, 23 Sep 2020 14:27:11 -0700 (PDT)
References: <20200923162121.GA28654@jurong> <875z84gvs5.fsf@HIDDEN>
 <20200923200543.GA9839@jurong> <20200923202011.GA17102@jurong>
User-agent: mu4e 1.4.13; emacs 27.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: Andreas Enge <andreas@HIDDEN>
Subject: Re: bug#43579: g++ does not provide std::fegetround
In-reply-to: <20200923202011.GA17102@jurong>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Wed, 23 Sep 2020 23:28:36 +0200
Message-ID: <873638gp2z.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 43579
Cc: 43579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Andreas Enge <andreas@HIDDEN> writes:

> On Wed, Sep 23, 2020 at 10:05:43PM +0200, Andreas Enge wrote:
>> It looks very similar indeed. But then the fix given there has not fixed
>> my problem, which occurs in a current gcc-toolchain.
>
> My impression is that the root cause is the same one, that we are somehow
> misconfiguring our gcc builds, as discussed in this thread:
>    https://lists.gnu.org/archive/html/guix-devel/2020-06/msg00096.html
>
> And that the hacky fix works for the other problems, but apparently not
> for this one.

I=E2=80=99m having a different but possibly related problem with
arm-none-eabi-nano-toolchain-7-2018-q2-update, which used to work some
time ago (in axoloti-patcher-next).

For that issue the hack also did not work.

--=20
Ricardo




Information forwarded to bug-guix@HIDDEN:
bug#43579; Package guix. Full text available.

Message received at 43579 <at> debbugs.gnu.org:


Received: (at 43579) by debbugs.gnu.org; 23 Sep 2020 20:21:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 16:21:19 2020
Received: from localhost ([127.0.0.1]:38002 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLBGR-0001LK-5B
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 16:21:19 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:38530)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreas@HIDDEN>) id 1kLBGP-0001LA-Tr
 for 43579 <at> debbugs.gnu.org; Wed, 23 Sep 2020 16:21:18 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id D06AEC35;
 Wed, 23 Sep 2020 22:21:15 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id QWJY0_qccTaK; Wed, 23 Sep 2020 22:21:15 +0200 (CEST)
Received: from jurong (unknown [IPv6:2001:910:103f::b98])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 8D2D85C9;
 Wed, 23 Sep 2020 22:21:06 +0200 (CEST)
Date: Wed, 23 Sep 2020 22:20:11 +0200
From: Andreas Enge <andreas@HIDDEN>
To: Ricardo Wurmus <rekado@HIDDEN>
Subject: Re: bug#43579: g++ does not provide std::fegetround
Message-ID: <20200923202011.GA17102@jurong>
References: <20200923162121.GA28654@jurong> <875z84gvs5.fsf@HIDDEN>
 <20200923200543.GA9839@jurong>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20200923200543.GA9839@jurong>
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 43579
Cc: 43579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

On Wed, Sep 23, 2020 at 10:05:43PM +0200, Andreas Enge wrote:
> It looks very similar indeed. But then the fix given there has not fixed
> my problem, which occurs in a current gcc-toolchain.

My impression is that the root cause is the same one, that we are somehow
misconfiguring our gcc builds, as discussed in this thread:
   https://lists.gnu.org/archive/html/guix-devel/2020-06/msg00096.html

And that the hacky fix works for the other problems, but apparently not
for this one.

Andreas





Information forwarded to bug-guix@HIDDEN:
bug#43579; Package guix. Full text available.

Message received at 43579 <at> debbugs.gnu.org:


Received: (at 43579) by debbugs.gnu.org; 23 Sep 2020 20:06:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 16:06:30 2020
Received: from localhost ([127.0.0.1]:37979 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLB25-0000q8-Ux
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 16:06:30 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:38442)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreas@HIDDEN>) id 1kLB22-0000pw-1K
 for 43579 <at> debbugs.gnu.org; Wed, 23 Sep 2020 16:06:28 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 71D905C9;
 Wed, 23 Sep 2020 22:06:24 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id zGOcV-ZdfWRj; Wed, 23 Sep 2020 22:06:23 +0200 (CEST)
Received: from jurong (unknown [IPv6:2001:910:103f::b98])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 36186597;
 Wed, 23 Sep 2020 22:06:23 +0200 (CEST)
Date: Wed, 23 Sep 2020 22:05:43 +0200
From: Andreas Enge <andreas@HIDDEN>
To: Ricardo Wurmus <rekado@HIDDEN>
Subject: Re: bug#43579: g++ does not provide std::fegetround
Message-ID: <20200923200543.GA9839@jurong>
References: <20200923162121.GA28654@jurong>
 <875z84gvs5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <875z84gvs5.fsf@HIDDEN>
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 43579
Cc: 43579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

On Wed, Sep 23, 2020 at 09:03:54PM +0200, Ricardo Wurmus wrote:
> Is this perhaps related to https://issues.guix.gnu.org/42392 ?

It looks very similar indeed. But then the fix given there has not fixed
my problem, which occurs in a current gcc-toolchain.

Andreas





Information forwarded to bug-guix@HIDDEN:
bug#43579; Package guix. Full text available.

Message received at 43579 <at> debbugs.gnu.org:


Received: (at 43579) by debbugs.gnu.org; 23 Sep 2020 19:02:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 15:02:36 2020
Received: from localhost ([127.0.0.1]:37875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLA2G-00076M-4M
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 15:02:36 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21146)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1kLA2D-00076A-F3
 for 43579 <at> debbugs.gnu.org; Wed, 23 Sep 2020 15:02:34 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1600887751; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=WJ3Y+EBBs6tbIuemVFh/3RYN6KTxFu5uK5T8jDsDmjUGB0xmNm+YWuaQCHLIbQFZpEcP7C83dOMVZ/8p+oDBxF7O1Dy1qyA7Fugn1/yv2JpUTuhrwAbT8KbPo8ffQhYCC/Jx20X9KzAqQTa+zx9wW7dbgaFfR7slUTAwlaLWgOs=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1600887751;
 h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=Ul7OZVi0TzuOsVWlZnQpNUhHz1DUcWMmgRseI2AX+ag=; 
 b=bSktCt33aauNnz2wQ8d3yWJn85aM1o95gS8UuFnG1m/Aab4m+uQyTyRhPJukdxSZCds5RTRdEPDuX2eYyOy+RL5BKrdqrRkX7N3XlOkrh92N0YYM8ulZUt3b0CPw34ZVnra7EUWCXuwXI0GRm+xNkNg3/R8uVg55xxeMCk2TSzA=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600887751; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type;
 bh=Ul7OZVi0TzuOsVWlZnQpNUhHz1DUcWMmgRseI2AX+ag=;
 b=fbTOOWrtstmayQmuya/mQI4Kd+PSRcF3LAqpXktFWCRw4bcuubFmSy9WdYUOjSJ3
 c7/Wcgh/he2YBtQVJmlGLTAI1gsSDg3r3oJ7PhCbujAT4bNWG2tNuMJTd7W17ecbRL4
 4wzJs/DFtjK1Vtxo6Jmh/5gvEAcZvD7bFPkbkoFo=
Received: from localhost (p54ad4dd8.dip0.t-ipconnect.de [84.173.77.216]) by
 mx.zohomail.com with SMTPS id 1600887749413183.9667348270102;
 Wed, 23 Sep 2020 12:02:29 -0700 (PDT)
References: <20200923162121.GA28654@jurong>
User-agent: mu4e 1.4.13; emacs 27.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: Andreas Enge <andreas@HIDDEN>
Subject: Re: bug#43579: g++ does not provide std::fegetround
In-reply-to: <20200923162121.GA28654@jurong>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Wed, 23 Sep 2020 21:03:54 +0200
Message-ID: <875z84gvs5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 43579
Cc: 43579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Andreas Enge <andreas@HIDDEN> writes:

> Hello,
>
> this report is related to
>    https://github.com/fplll/fplll/issues/444
>
> The following test file round.cpp does not compile with our g++-10.2.0:
> #include <cfenv>
> int main () {
>    return std::fegetround ();
> }
>
>
> Compilation (also when adding "--std=c++11") prints the error:
> round.cpp: In function 'int main()':
> round.cpp:4:16: error: 'fegetround' is not a member of 'std'; did you mean 'fegetround'?
>     4 |    return std::fegetround ();
>       |                ^~~~~~~~~~
> In file included from /home/andreas/.guix-profile/include/c++/fenv.h:36,
>                  from /home/andreas/.guix-profile/include/c++/cfenv:41,
>                  from round.cpp:1:
> /home/andreas/.guix-profile/include/fenv.h:104:12: note: 'fegetround' declared here
>   104 | extern int fegetround (void) __THROW __attribute_pure__;
>       |            ^~~~~~~~~~

Is this perhaps related to https://issues.guix.gnu.org/42392 ?

-- 
Ricardo




Information forwarded to bug-guix@HIDDEN:
bug#43579; Package guix. Full text available.

Message received at 43579 <at> debbugs.gnu.org:


Received: (at 43579) by debbugs.gnu.org; 23 Sep 2020 16:37:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 12:37:17 2020
Received: from localhost ([127.0.0.1]:37644 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kL7ld-00022L-Ho
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 12:37:17 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:37220)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreas@HIDDEN>) id 1kL7lb-000227-Da
 for 43579 <at> debbugs.gnu.org; Wed, 23 Sep 2020 12:37:16 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 0634AC10;
 Wed, 23 Sep 2020 18:37:12 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ksPPU3cMY3q6; Wed, 23 Sep 2020 18:37:12 +0200 (CEST)
Received: from jurong (unknown [IPv6:2001:910:103f::f06])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id EC4B05BE;
 Wed, 23 Sep 2020 18:37:11 +0200 (CEST)
Date: Wed, 23 Sep 2020 18:36:32 +0200
From: Andreas Enge <andreas@HIDDEN>
To: 43579 <at> debbugs.gnu.org
Subject: Re: bug#43579: g++ does not provide std::fegetround
Message-ID: <20200923163632.GA7348@jurong>
References: <20200923162121.GA28654@jurong>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20200923162121.GA28654@jurong>
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 43579
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

On Wed, Sep 23, 2020 at 06:21:21PM +0200, Andreas Enge wrote:
> Now it would be interesting to have a look at config.log for gcc...

I did so with gcc-10.2.0 and executed ./configure in the subdirectory
libstdc++-v3. The relevant part of config.log is this:
configure:16462: checking for ISO C99 support to TR1 in <fenv.h>
configure:16490: g++ -c  -std=c++98  conftest.cpp >&5
configure:16490: $? = 0
configure:16497: result: yes

This is when trying to compile gcc-10.2.0 with gcc-10.2.0; so somehow
our bootstrapping process does something differently when creating the
final user facing gcc.

Andreas





Information forwarded to bug-guix@HIDDEN:
bug#43579; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Sep 2020 16:22:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 12:22:16 2020
Received: from localhost ([127.0.0.1]:37606 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kL7X5-0001Tg-PO
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 12:22:16 -0400
Received: from lists.gnu.org ([209.51.188.17]:41444)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreas@HIDDEN>) id 1kL7X5-0001TZ-5C
 for submit <at> debbugs.gnu.org; Wed, 23 Sep 2020 12:22:15 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51192)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <andreas@HIDDEN>) id 1kL7X4-0008IU-Ui
 for bug-guix@HIDDEN; Wed, 23 Sep 2020 12:22:14 -0400
Received: from hera.aquilenet.fr ([2a0c:e300::1]:39492)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <andreas@HIDDEN>) id 1kL7X2-00007h-Qz
 for bug-guix@HIDDEN; Wed, 23 Sep 2020 12:22:14 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id E3B9CBEB;
 Wed, 23 Sep 2020 18:22:02 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 1oBUr8liMXwz; Wed, 23 Sep 2020 18:22:01 +0200 (CEST)
Received: from jurong (unknown [IPv6:2001:910:103f::f06])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 21E6E5BE;
 Wed, 23 Sep 2020 18:22:01 +0200 (CEST)
Date: Wed, 23 Sep 2020 18:21:21 +0200
From: Andreas Enge <andreas@HIDDEN>
To: bug-guix@HIDDEN
Subject: g++ does not provide std::fegetround
Message-ID: <20200923162121.GA28654@jurong>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Received-SPF: neutral client-ip=2a0c:e300::1; envelope-from=andreas@HIDDEN;
 helo=hera.aquilenet.fr
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -10
X-Spam_score: -1.1
X-Spam_bar: -
X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001,
 SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Hello,

this report is related to
   https://github.com/fplll/fplll/issues/444

The following test file round.cpp does not compile with our g++-10.2.0:
#include <cfenv>
int main () {
   return std::fegetround ();
}


Compilation (also when adding "--std=c++11") prints the error:
round.cpp: In function 'int main()':
round.cpp:4:16: error: 'fegetround' is not a member of 'std'; did you mean 'fegetround'?
    4 |    return std::fegetround ();
      |                ^~~~~~~~~~
In file included from /home/andreas/.guix-profile/include/c++/fenv.h:36,
                 from /home/andreas/.guix-profile/include/c++/cfenv:41,
                 from round.cpp:1:
/home/andreas/.guix-profile/include/fenv.h:104:12: note: 'fegetround' declared here
  104 | extern int fegetround (void) __THROW __attribute_pure__;
      |            ^~~~~~~~~~

Compilation succeeds when replacing std::fegetround by fegetround; however,
the former is supposedly part of the C++11 standard.

The culprit is apparently cfenv, which contains the following:
#if _GLIBCXX_HAVE_FENV_H
#include_next <fenv.h>
#endif
#if _GLIBCXX_USE_C99_FENV_TR1
...
#undef fegetround
...
namespace std
{
...
using ::fegetround;
...
}


Our include/c++/x86_64-unknown-linux-gnu/bits/c++config.h has this:
#define _GLIBCXX_HAVE_FENV_H 1
/* Define if C99 functions in <fenv.h> should be imported in <tr1/cfenv> in
namespace std::tr1. */
/* #undef _GLIBCXX_USE_C99_FENV_TR1 */
whereas apparently on other distributions (opensuse, for instance),
_GLIBCXX_USE_C99_FENV_TR1 is defined and leads to std::fesetround being
defined.


And when I look at the build log
   https://ci.guix.gnu.org/log/xpdy9vvqym9xv7praqkwsm3gdzn2kv1p-gcc-10.2.0
for instance, there are the following lines:
checking for ISO C99 support to TR1 in <fenv.h>... no
checking for ISO C99 support to TR1 in <stdint.h>... yes
checking for ISO C99 support to TR1 in <math.h>... yes
checking for ISO C99 support to TR1 in <inttypes.h>... yes
whereas in opensuse, there is
checking for ISO C99 support to TR1 in <fenv.h>... yes

Now it would be interesting to have a look at config.log for gcc...

Andreas





Acknowledgement sent to Andreas Enge <andreas@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#43579; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 2 Oct 2020 02:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.