bugGNU Octave - Bugs: bug #47214, isnan and isinf problems with...

 
 

bug #47214: isnan and isinf problems with C++11 and gcc 4

Submitted by:  None
Submitted on:  Sun 21 Feb 2016 05:12:56 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sun 03 Sep 2017 08:19:18 PM UTC, comment #8:

Ack, I did the same thing again.

This bug report was primarily about tests in libinterp/corefcn/data.cc, libinterp/corefcn/str2double.cc, and scripts/general/num2str.m failing due to some differences with Inf and NaN values.

With gcc 4.8 I do not get any of the test failures mentioned in the original post relating to those files. I think these might have been due to system libraries or a gcc version that did not fully support C++11. At this point Octave should be built with gcc 4.8 or later.

Mike Miller <mtmiller>
Project Administrator
Sun 03 Sep 2017 08:09:46 PM UTC, comment #7:

I am still building Octave with gcc 4.8 on Ubuntu 14.04, and the two tests mentioned in this bug report do fail.

I think the test failures are clear enough and point to bug #47775, so I don't think there's any reason to keep this open. It's a won't fix, system libraries have already fixed this, older systems will be updated eventually and this will be resolved.

This is the output with a gcc 4.8 build from a couple days ago:

I think it's pretty clear that this is an accuracy issue and the link to the relevant bug report is provided.

Mike Miller <mtmiller>
Project Administrator
Sun 03 Sep 2017 01:24:24 AM UTC, comment #6:

Is this relevant anymore? The development branch has shifted base functions like isnan and isinf entirely to the C++ std lib and we haven't seen complaints, but most people are now running gcc > 5.

Rik <rik5>
Project Administrator
Sun 01 May 2016 03:01:53 PM UTC, comment #5:

Wrong, sorry, this was mainly about isnan and isinf, reopening.

Mike Miller <mtmiller>
Project Administrator
Sun 01 May 2016 02:59:54 PM UTC, comment #4:

Might as well close this as a duplicate of bug #47775 since there is more discussion there now.

Mike Miller <mtmiller>
Project Administrator
Thu 14 Apr 2016 12:45:58 PM UTC, comment #3:

Run into the sparse_xpow and realpow failure too for current development versions.

The sparse-xpow and realpow tests do pass in 4.0.1

This is on RHEL: /etc/redhat-release say this:
Red Hat Enterprise Linux Server release 6.7 (Santiago)

gcc 4.7.3

Anonymous
Sun 21 Feb 2016 10:58:07 PM UTC, comment #2:

Yes bug #47212, bug #47213 and this are all on gcc 4.6.3 on Ubuntu 12.04 LTS. I do not know if they have the same cause. Building new gcc on the present computer is impractical but upgrading to Ubuntu 16.04 will happen this summer. If nobody else reports this problem for a few days (old versions of RHEL or Debian are common on compute servers) this bug can be downgraded to Works For Me.

Anonymous
Sun 21 Feb 2016 05:41:01 PM UTC, comment #1:

Thanks for the report. I do not see these test failures in my build. Did you also report bug #47212? Should we consider these bugs related?

Mike Miller <mtmiller>
Project Administrator
Sun 21 Feb 2016 05:12:56 PM UTC, original submission:

The builtin isnan and isinf functions in C++11 cause "make check" to fail in several places with similar errors:

Changing to C++11 also gives two new failures in rounding small numbers:

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 03 Sep 2017 08:09:46 PM UTCmtmillerStatusConfirmed=>Wont Fix
      Open/ClosedOpen=>Closed
    Sun 01 May 2016 03:06:56 PM UTCmtmillerSummaryisnan and isinf problems with C++11=>isnan and isinf problems with C++11 and gcc 4
    Sun 01 May 2016 03:01:53 PM UTCmtmillerStatusDuplicate=>Confirmed
      Open/ClosedClosed=>Open
    Sun 01 May 2016 03:00:11 PM UTCmtmillerDependencies-=>Depends on bugs #47775
    Sun 01 May 2016 02:59:54 PM UTCmtmillerStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1