[NumPy-Tickets] [NumPy] #1400: atan2 regression with Sun Studio Compilers on Linux

NumPy Trac numpy-tickets@scipy....
Thu Feb 18 01:47:40 CST 2010

#1400: atan2 regression with Sun Studio Compilers on Linux
 Reporter:  ChristianMarquardt  |       Owner:  somebody
     Type:  defect              |      Status:  new     
 Priority:  normal              |   Milestone:  1.4.0   
Component:  numpy.core          |     Version:  1.4.0   
 Keywords:                      |  
 When compiling numpy-1.4.0 with the Sun Studio Compilers (v12 Update 1) on
 Linux (an OpenSUSE 11.1 in my case), about 30 tests in numpy.test() fail;
 all failures are related to the arctan2 function.

 I've found that in r7732 a patch was applied to
 trunk/numpy/core/src/private/npy_config.h in response to #1201, #1202, and
 #1203, #undef'ing the HAVE_ATAN2 variable in order to fix a broken atan2()
 implementation on Solaris. This does no good with the SunStudio 12.1
 compiler on Linux, though; it apparently only works without failures with
 HAVE_ATAN2 defined.

 The attached patch ensures that the original patch is only applied on Sun
 platforms (i.e., not on Linux). If applied, all tests are completed
 successfully under Linux. BTW, I did not observe #1204 or #1205...

 I have no access to a Solaris machine, so I don't know if the original
 patch (which was for Sun workshop 6 - I think that's not available any
 more) is required with Sun Studio 12.1 at all.

Ticket URL: <http://projects.scipy.org/numpy/ticket/1400>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list