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

 
 

bug #41855: make check failure when compiled with clang

Submitted by:  PrasannaKumar Muralidharan <prasannatsm>
Submitted on:  Thu 13 Mar 2014 02:37:03 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 26 Apr 2014 03:33:06 PM UTCrik5StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1