[SciPy-user] NumPy On OpenBSD

mfmorss@aep.com mfmorss at aep.com
Thu Jan 12 16:28:30 CST 2006


Well, by changing "defined(AIX)" to "defined(_AIX)" in ufuncobject.h, I was
able to get past the "floating point flags not supported" problem, but
unfortunately, the resulting function UFUNC_CHECK_STATUS(ret) does not
work, to put it mildly.  Later on in the install, I get this:

cc_r: build/src/numpy/core/src/umathmodule.c
"numpy/core/include/numpy/ufuncobject.h", line 292.9: 1506-273 (E) Missing
type in declaration of ret.
"numpy/core/include/numpy/ufuncobject.h", line 292.34: 1506-045 (S)
Undeclared identifier fpstatus.
"numpy/core/include/numpy/ufuncobject.h", line 292.13: 1506-221 (S)
Initializer must be a valid constant expression.
"numpy/core/include/numpy/ufuncobject.h", line 296.22: 1506-046 (S) Syntax
error.
"numpy/core/include/numpy/ufuncobject.h", line 296.22: 1506-172 (S)
Parameter type list for function fp_clr_flag contains parameters without
identifiers.
"numpy/core/include/numpy/ufuncobject.h", line 296.9: 1506-343 (S)
Redeclaration of fp_clr_flag differs from previous declaration on line 98
of "/usr/include/fpxcp.h".
"numpy/core/include/numpy/ufuncobject.h", line 296.9: 1506-050 (I) Return
type "int" in redeclaration is not compatible with the previous return type
"void".
"build/src/numpy/core/src/umathmodule.c", line 741.19: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 758.19: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 775.19: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 794.18: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 824.19: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 8155.32: 1506-280 (W)
Function argument assignment between types "long double*" and "double*" is
not allowed.
"numpy/core/src/ufuncobject.c", line 523.1: 1506-046 (S) Syntax error.
"numpy/core/src/ufuncobject.c", line 550.1: 1506-046 (S) Syntax error.
"numpy/core/src/ufuncobject.c", line 551.19: 1506-045 (S) Undeclared
identifier intype.
"numpy/core/src/ufuncobject.c", line 582.1: 1506-046 (S) Syntax error.
"numpy/core/src/ufuncobject.c", line 583.17: 1506-045 (S) Undeclared
identifier thistype.
"numpy/core/src/ufuncobject.c", line 583.32: 1506-045 (S) Undeclared
identifier neededtype.
"numpy/core/src/ufuncobject.c", line 583.49: 1506-045 (S) Undeclared
identifier scalar.
"numpy/core/src/ufuncobject.c", line 607.1: 1506-046 (S) Syntax error.
"numpy/core/src/ufuncobject.c", line 608.29: 1506-045 (S) Undeclared
identifier self.
"numpy/core/src/ufuncobject.c", line 608.40: 1506-045 (S) Undeclared
identifier arg_types.
"numpy/core/src/ufuncobject.c", line 609.38: 1506-045 (S) Undeclared
identifier function.
"numpy/core/src/ufuncobject.c", line 609.55: 1506-045 (S) Undeclared
identifier data.
"numpy/core/src/ufuncobject.c", line 610.20: 1506-045 (S) Undeclared
identifier scalars.
"numpy/core/include/numpy/ufuncobject.h", line 292.9: 1506-273 (E) Missing
type in declaration of ret.
"numpy/core/include/numpy/ufuncobject.h", line 292.34: 1506-045 (S)
Undeclared identifier fpstatus.
"numpy/core/include/numpy/ufuncobject.h", line 292.13: 1506-221 (S)
Initializer must be a valid constant expression.
"numpy/core/include/numpy/ufuncobject.h", line 296.22: 1506-046 (S) Syntax
error.
"numpy/core/include/numpy/ufuncobject.h", line 296.22: 1506-172 (S)
Parameter type list for function fp_clr_flag contains parameters without
identifiers.
"numpy/core/include/numpy/ufuncobject.h", line 296.9: 1506-343 (S)
Redeclaration of fp_clr_flag differs from previous declaration on line 98
of "/usr/include/fpxcp.h".
"numpy/core/include/numpy/ufuncobject.h", line 296.9: 1506-050 (I) Return
type "int" in redeclaration is not compatible with the previous return type
"void".
"build/src/numpy/core/src/umathmodule.c", line 741.19: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 758.19: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 775.19: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 794.18: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 824.19: 1506-045 (S)
Undeclared identifier nc_1f.
"build/src/numpy/core/src/umathmodule.c", line 8155.32: 1506-280 (W)
Function argument assignment between types "long double*" and "double*" is
not allowed.
"numpy/core/src/ufuncobject.c", line 523.1: 1506-046 (S) Syntax error.
"numpy/core/src/ufuncobject.c", line 550.1: 1506-046 (S) Syntax error.
"numpy/core/src/ufuncobject.c", line 551.19: 1506-045 (S) Undeclared
identifier intype.
"numpy/core/src/ufuncobject.c", line 582.1: 1506-046 (S) Syntax error.
"numpy/core/src/ufuncobject.c", line 583.17: 1506-045 (S) Undeclared
identifier thistype.
"numpy/core/src/ufuncobject.c", line 583.32: 1506-045 (S) Undeclared
identifier neededtype.
"numpy/core/src/ufuncobject.c", line 583.49: 1506-045 (S) Undeclared
identifier scalar.
"numpy/core/src/ufuncobject.c", line 607.1: 1506-046 (S) Syntax error.
"numpy/core/src/ufuncobject.c", line 608.29: 1506-045 (S) Undeclared
identifier self.
"numpy/core/src/ufuncobject.c", line 608.40: 1506-045 (S) Undeclared
identifier arg_types.
"numpy/core/src/ufuncobject.c", line 609.38: 1506-045 (S) Undeclared
identifier function.
"numpy/core/src/ufuncobject.c", line 609.55: 1506-045 (S) Undeclared
identifier data.
"numpy/core/src/ufuncobject.c", line 610.20: 1506-045 (S) Undeclared
identifier scalars.


Mark F. Morss
Principal Analyst, Market Risk
American Electric Power



                                                                           
             "LATORNELL, Doug"                                             
             <Doug.LATORNELL at m                                             
             dsinc.com>                                                 To 
             Sent by:                  "SciPy Users List"                  
             scipy-user-bounce         <scipy-user at scipy.net>              
             s at scipy.net                                                cc 
                                                                           
                                                                   Subject 
             01/11/2006 01:46          Re: [SciPy-user] NumPy On OpenBSD   
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             SciPy Users List                                              
             <scipy-user at scipy                                             
                   .net>                                                   
                                                                           
                                                                           




The file to edit is numpy/core/include/numpy/ufuncobject.h

You have to figure out which of the #elif defined() blocks is
appropriate for your platform, based on the header file(s) that are
included in the block, and the name of the function that is called to
set fpstatus.  I see that there is an #elif defined(AIX) block already
there, but perhaps you are running into version differences?

Doug


> -----Original Message-----
> From: scipy-user-bounces at scipy.net
> [mailto:scipy-user-bounces at scipy.net] On Behalf Of mfmorss at aep.com
> Sent: January 11, 2006 10:37
> To: SciPy Users List
> Cc: SciPy Users List; scipy-user-bounces at scipy.net
> Subject: Re: [SciPy-user] NumPy On OpenBSD
>
> I had this same symptom (many message that floating point
> flags aren't supported on "this platform") installing scipy
> core (now numpy) from source on AIX 5.2.  I perhaps am
> confused, but it's not obvious to me, from reading the
> messages on this topic, in which file the suggested edit is
> to be implemented.  Would someone please say?
>
> Mark F. Morss
> Principal Analyst, Market Risk
> American Electric Power
>
>
>
>
>              "LATORNELL, Doug"
>
>              <Doug.LATORNELL at m
>
>              dsinc.com>
>           To
>              Sent by:                  "SciPy Users List"
>
>              scipy-user-bounce         <scipy-user at scipy.net>
>
>              s at scipy.net
>           cc
>
>
>
>      Subject
>              01/10/2006 08:57          Re: [SciPy-user] NumPy
> On OpenBSD
>              PM
>
>
>
>
>
>              Please respond to
>
>              SciPy Users List
>
>              <scipy-user at scipy
>
>                    .net>
>
>
>
>
>
>
>
>
>
> #elif defined(sun) || defined(__OpenBSD__)
>
> is the ticket!  Using defined (OpenBSD) doesn't work
>
> IsoInfoCompute:doug$ python
> Python 2.4.1 (#1, Sep  3 2005, 13:08:59) [GCC 3.3.5
> (propolice)] on openbsd3 Type "help", "copyright", "credits"
> or "license" for more information.
> >>> import numpy
> >>> numpy.test(10)
>   Found 3 tests for numpy.distutils.misc_util
>   Found 2 tests for numpy.core.umath
>   Found 3 tests for numpy.dft.helper
>   Found 8 tests for numpy.lib.arraysetops
>   Found 42 tests for numpy.lib.type_check
>   Found 9 tests for numpy.lib.twodim_base
>   Found 11 tests for numpy.core.multiarray
>   Found 4 tests for numpy.lib.getlimits
>   Found 21 tests for numpy.core.ma
>   Found 6 tests for numpy.core.defmatrix
>   Found 33 tests for numpy.lib.function_base
>   Found 6 tests for numpy.core.records
>   Found 4 tests for numpy.lib.index_tricks
>   Found 44 tests for numpy.lib.shape_base
>   Found 0 tests for __main__
> ..............................................................
> ..........
> ..............................................................
> ..........
> ......................................................
> ----------------------------------------------------------------------
> Ran 198 tests in 1.596s
>
> OK
> <unittest.TextTestRunner object at 0x7d9015ac>
> >>>
>
> Thanks for the help, Travis!
>
> Doug
>
>
> > -----Original Message-----
> > From: scipy-user-bounces at scipy.net
> > [mailto:scipy-user-bounces at scipy.net] On Behalf Of Travis Oliphant
> > Sent: January 10, 2006 16:42
> > To: scipy-user at scipy.org
> > Subject: Re: [SciPy-user] NumPy On OpenBSD
> >
> > LATORNELL, Doug wrote:
> > > wrong tree completely?  The problem is that I don't know
> what magic
> > > word I should add as an OR clause to
> > >
> > > #elif defined(sun)
> > >
> > > to test my guess.  Where are the various platform names that are
> > > checked in unfuncobject.h defined?
> > >
> >
> > I've also seen __FreeBSD__ and __OpenBSD__ used.  You could
> try those
> > as well.
> >
> > -Travis
> >
> > _______________________________________________
> > SciPy-user mailing list
> > SciPy-user at scipy.net
> > http://www.scipy.net/mailman/listinfo/scipy-user
> >
>
>
> This email and any files transmitted with it may contain
> privileged or confidential information and may be read or
> used only by the intended recipient.  If you are not the
> intended recipient of the email or any of its attachments,
> please be advised that you have received this email in error
> and any use, dissemination, distribution, forwarding,
> printing or copying of this email or any attached files is
> strictly prohibited.  If you have received this email in
> error, please immediately purge it and all attachments and
> notify the sender by reply email or contact the sender at the
> number listed.
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>


This email and any files transmitted with it may contain privileged or
confidential information and may be read or used only by the intended
recipient.  If you are not the intended recipient of the email or any of
its attachments, please be advised that you have received this email in
error and any use, dissemination, distribution, forwarding, printing or
copying of this email or any attached files is strictly prohibited.  If you
have received this email in error, please immediately purge it and all
attachments and notify the sender by reply email or contact the sender at
the number listed.

_______________________________________________
SciPy-user mailing list
SciPy-user at scipy.net
http://www.scipy.net/mailman/listinfo/scipy-user




More information about the SciPy-user mailing list