bugGNU Octave - Bugs: bug #41855, make check failure when compiled...

 
 

bug #41855: make check failure when compiled with clang

Submitter:  PrasannaKumar Muralidharan <prasannatsm>
Submitted:  Thu 13 Mar 2014 02:37:03 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 29 Apr 2014 05:31:34 AM UTC, comment #4: 

Thanks for the explanation.

PrasannaKumar Muralidharan <prasannatsm>
Mon 28 Apr 2014 11:40:13 PM UTC, comment #3: 

One way to look at Octave is that it is just a pretty front-end on a lot of very good numerical libraries.  Some of the time this is obvious, Octave doesn't implement it's own linear algebra solvers but relies on BLAS and LAPACK.  For some of the other basic math and trig functions, like sin, cos, log2, we call the C libary routines.  In this case the GNU libc log2 function returns Inf + log2 (i) for log2 (Inf i).  Since Octave is a GNU program we choose the GNU C library as the canonical reference.  Apple seems to have chose a different value for this, admittedly strange, corner case.

Rik <rik5>
Group administrator
Mon 28 Apr 2014 05:53:09 AM UTC, comment #2: 

Can you explain more what is the difference in C library causes this difference? It will be of great help to understand more.

PrasannaKumar Muralidharan <prasannatsm>
Sat 26 Apr 2014 03:33:06 PM UTC, comment #1: 

This is a known difference with clang, and more importantly, with the C library behind it.  At the moment there are no plans to fix this.

Rik <rik5>
Group administrator
Thu 13 Mar 2014 02:37:03 PM UTC, original submission:  

Compiled octave with clang and ran make check. Got the following errors:

>>>>> processing /home/prasanna/Software/octave/octave/libinterp/corefcn/data.cc-tst

  *** assert (log2 (complex (0,Inf)), Inf + log2 (i))
!!!!! test failed
ASSERT errors for:  assert (log2 (complex (0, Inf)),Inf + log2 (i))

  Location  |  Observed  |  Expected  |  Reason
     ()        Inf+NaNi   Inf+2.2662i    'NaN' mismatch


>>>>> processing /home/prasanna/Software/octave/octave/scripts/polynomial/roots.m

  *** assert (roots ([1e-200, -1e200 1i, 1]), -1e-200 1i)
!!!!! test failed
ASSERT errors for:  assert (roots ([1e-200, -1e200 1i, 1]),-1e-200 1i)

  Location  |  Observed  |  Expected  |  Reason
     ()           O            E         real != complex

PrasannaKumar Muralidharan <prasannatsm>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by prasannatsm (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-26 rik5 StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code