scipy: Scipy build fails on Solaris 10 SPARC

I have a working copy of Python 3.65 and Numpy 1.14.5 in /usr/local/Python3 on Solaris 10.

-bash-3.2# uname -a SunOS python365 5.10 Generic_150400-17 sun4u sparc SUNW,SPARC-Enterprise Solaris

Relevant environment variables are as follows:

ATLAS=/usr/local/Python3/ATLAS/install/lib MAIL=/var/mail/root PATH=/usr/local/Python3/Python-3.6.5/install/bin:/opt/csw/bin:/opt/csw/gnu:/usr/sbin:/usr/bin:/usr/local/bin BLAS=/usr/local/Python3/ATLAS/install/lib LAPACK=/usr/local/Python3/ATLAS/install/lib LAPACK_SRC=/usr/local/Python3/ATLAS/install/lib PYTHONPATH=/usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages

I downloaded the Scipy source and extracted it into /usr/local/Python3/scipy-1.1.0 I type “python3 setup.py install” which fails with the following message after about 30 minutes:


### Error message:
<!-- 

compiling C++ sources
C compiler: g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

compile options: '-I/usr/local/Python3/scipy-1.1.0/scipy/special -I/usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include -I/usr/local/Python3/Python-3.6.5/install/include/python3.6m -I/usr/local/Python3/scipy-1.1.0/scipy/special/c_misc -Iscipy/_lib -I/usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include -I/usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include -I/usr/local/Python3/Python-3.6.5/install/include/python3.6m -c'
g++: scipy/special/_ufuncs_cxx.cxx
In file included from /usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include/numpy/ndarraytypes.h:1816:0,
                 from /usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include/numpy/arrayobject.h:4,
                 from scipy/special/_ufuncs_cxx.cxx:583:
/usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
g++: scipy/special/_faddeeva.cxx
In file included from /usr/local/Python3/Python-3.6.5/install/include/python3.6m/Python.h:8:0,
                 from scipy/special/_faddeeva.h:13,
                 from scipy/special/_faddeeva.cxx:3:
/usr/local/Python3/Python-3.6.5/install/include/python3.6m/pyconfig.h:1456:0: warning: "_FILE_OFFSET_BITS" redefined
 #define _FILE_OFFSET_BITS 64
 ^
In file included from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/iso/math_iso.h:19:0,
                 from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/math.h:22,
                 from /opt/csw/include/c++/5.5.0/cmath:44,
                 from /opt/csw/include/c++/5.5.0/complex:44,
                 from scipy/special/_faddeeva.cxx:1:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition
 #define _FILE_OFFSET_BITS 32
 ^
g++: scipy/special/Faddeeva.cc
In file included from /usr/local/Python3/Python-3.6.5/install/include/python3.6m/Python.h:8:0,
                 from scipy/special/Faddeeva.cc:120:
/usr/local/Python3/Python-3.6.5/install/include/python3.6m/pyconfig.h:1456:0: warning: "_FILE_OFFSET_BITS" redefined
 #define _FILE_OFFSET_BITS 64
 ^
In file included from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/iso/math_iso.h:19:0,
                 from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/math.h:22,
                 from /opt/csw/include/c++/5.5.0/cmath:44,
                 from /opt/csw/include/c++/5.5.0/complex:44,
                 from scipy/special/Faddeeva.hh:30,
                 from scipy/special/Faddeeva.cc:23:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition
 #define _FILE_OFFSET_BITS 32
 ^
g++: scipy/special/_wright.cxx
In file included from /usr/local/Python3/Python-3.6.5/install/include/python3.6m/Python.h:8:0,
                 from scipy/special/_wright.h:13,
                 from scipy/special/_wright.cxx:3:
/usr/local/Python3/Python-3.6.5/install/include/python3.6m/pyconfig.h:1456:0: warning: "_FILE_OFFSET_BITS" redefined
 #define _FILE_OFFSET_BITS 64
 ^
In file included from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/iso/math_iso.h:19:0,
                 from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/math.h:22,
                 from /opt/csw/include/c++/5.5.0/cmath:44,
                 from /opt/csw/include/c++/5.5.0/complex:44,
                 from scipy/special/_wright.cxx:1:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition
 #define _FILE_OFFSET_BITS 32
 ^
g++: scipy/special/wright.cc
In file included from /usr/local/Python3/Python-3.6.5/install/include/python3.6m/Python.h:8:0,
                 from scipy/special/wright.cc:75:
/usr/local/Python3/Python-3.6.5/install/include/python3.6m/pyconfig.h:1456:0: warning: "_FILE_OFFSET_BITS" redefined
 #define _FILE_OFFSET_BITS 64
 ^
In file included from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/iso/math_iso.h:19:0,
                 from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/math.h:22,
                 from /opt/csw/include/c++/5.5.0/cmath:44,
                 from /opt/csw/include/c++/5.5.0/complex:44,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition
 #define _FILE_OFFSET_BITS 32
 ^
In file included from scipy/special/wright.cc:80:0:
scipy/special/_round.h: In function âdouble add_round_up(double, double)â:
scipy/special/_round.h:17:19: error: âisnanâ was not declared in this scope
     if (sc_isnan(a) || sc_isnan(b)) {
                   ^
scipy/special/_round.h:17:19: note: suggested alternative:
In file included from /opt/csw/include/c++/5.5.0/complex:44:0,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/include/c++/5.5.0/cmath:886:5: note:   âstd::isnanâ
     isnan(_Tp __f)
     ^
In file included from scipy/special/wright.cc:80:0:
scipy/special/_round.h: In function âdouble add_round_down(double, double)â:
scipy/special/_round.h:37:19: error: âisnanâ was not declared in this scope
     if (sc_isnan(a) || sc_isnan(b)) {
                   ^
scipy/special/_round.h:37:19: note: suggested alternative:
In file included from /opt/csw/include/c++/5.5.0/complex:44:0,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/include/c++/5.5.0/cmath:886:5: note:   âstd::isnanâ
     isnan(_Tp __f)
     ^
scipy/special/wright.cc: In function âint wright::wrightomega_ext(std::complex<double>, std::complex<double>*, std::complex<double>*)â:
scipy/special/wright.cc:116:16: error: âisnanâ was not declared in this scope
   if(sc_isnan(x) || sc_isnan(y))
                ^
scipy/special/wright.cc:116:16: note: suggested alternative:
In file included from /opt/csw/include/c++/5.5.0/complex:44:0,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/include/c++/5.5.0/cmath:886:5: note:   âstd::isnanâ
     isnan(_Tp __f)
     ^
scipy/special/wright.cc:124:21: error: âisinfâ was not declared in this scope
   else if(sc_isinf(x) && (x < 0.0) && (-pi < y) && (y<= pi))
                     ^
scipy/special/wright.cc:124:21: note: suggested alternative:
In file included from /opt/csw/include/c++/5.5.0/complex:44:0,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/include/c++/5.5.0/cmath:877:5: note:   âstd::isinfâ
     isinf(_Tp __f)
     ^
In file included from scipy/special/_round.h:10:0,
                 from scipy/special/wright.cc:80:
scipy/special/cephes/dd_idefs.h: At global scope:
scipy/special/cephes/dd_idefs.h:53:1: warning: âdouble quick_two_diff(double, double, double*)â defined but not used [-Wunused-function]
 quick_two_diff(double a, double b, double *err)
 ^
scipy/special/cephes/dd_idefs.h:130:1: warning: âdouble two_sqr(double, double*)â defined but not used [-Wunused-function]
 two_sqr(double a, double *err)
 ^
scipy/special/cephes/dd_idefs.h:148:1: warning: âdouble two_div(double, double, double*)â defined but not used [-Wunused-function]
 two_div(double a, double b, double *err)
 ^
scipy/special/cephes/dd_idefs.h:169:1: warning: âdouble two_nint(double)â defined but not used [-Wunused-function]
 two_nint(double d)
 ^
scipy/special/cephes/dd_idefs.h:179:1: warning: âdouble two_aint(double)â defined but not used [-Wunused-function]
 two_aint(double d)
 ^
scipy/special/cephes/dd_idefs.h:187:1: warning: âint two_comp(double, double)â defined but not used [-Wunused-function]
 two_comp(const double a, const double b)
 ^
In file included from /usr/local/Python3/Python-3.6.5/install/include/python3.6m/Python.h:8:0,
                 from scipy/special/wright.cc:75:
/usr/local/Python3/Python-3.6.5/install/include/python3.6m/pyconfig.h:1456:0: warning: "_FILE_OFFSET_BITS" redefined
 #define _FILE_OFFSET_BITS 64
 ^
In file included from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/iso/math_iso.h:19:0,
                 from /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/math.h:22,
                 from /opt/csw/include/c++/5.5.0/cmath:44,
                 from /opt/csw/include/c++/5.5.0/complex:44,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition
 #define _FILE_OFFSET_BITS 32
 ^
In file included from scipy/special/wright.cc:80:0:
scipy/special/_round.h: In function âdouble add_round_up(double, double)â:
scipy/special/_round.h:17:19: error: âisnanâ was not declared in this scope
     if (sc_isnan(a) || sc_isnan(b)) {
                   ^
scipy/special/_round.h:17:19: note: suggested alternative:
In file included from /opt/csw/include/c++/5.5.0/complex:44:0,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/include/c++/5.5.0/cmath:886:5: note:   âstd::isnanâ
     isnan(_Tp __f)
     ^
In file included from scipy/special/wright.cc:80:0:
scipy/special/_round.h: In function âdouble add_round_down(double, double)â:
scipy/special/_round.h:37:19: error: âisnanâ was not declared in this scope
     if (sc_isnan(a) || sc_isnan(b)) {
                   ^
scipy/special/_round.h:37:19: note: suggested alternative:
In file included from /opt/csw/include/c++/5.5.0/complex:44:0,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/include/c++/5.5.0/cmath:886:5: note:   âstd::isnanâ
     isnan(_Tp __f)
     ^
scipy/special/wright.cc: In function âint wright::wrightomega_ext(std::complex<double>, std::complex<double>*, std::complex<double>*)â:
scipy/special/wright.cc:116:16: error: âisnanâ was not declared in this scope
   if(sc_isnan(x) || sc_isnan(y))
                ^
scipy/special/wright.cc:116:16: note: suggested alternative:
In file included from /opt/csw/include/c++/5.5.0/complex:44:0,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/include/c++/5.5.0/cmath:886:5: note:   âstd::isnanâ
     isnan(_Tp __f)
     ^
scipy/special/wright.cc:124:21: error: âisinfâ was not declared in this scope
   else if(sc_isinf(x) && (x < 0.0) && (-pi < y) && (y<= pi))
                     ^
scipy/special/wright.cc:124:21: note: suggested alternative:
In file included from /opt/csw/include/c++/5.5.0/complex:44:0,
                 from scipy/special/wright.hh:4,
                 from scipy/special/wright.cc:1:
/opt/csw/include/c++/5.5.0/cmath:877:5: note:   âstd::isinfâ
     isinf(_Tp __f)
     ^
In file included from scipy/special/_round.h:10:0,
                 from scipy/special/wright.cc:80:
scipy/special/cephes/dd_idefs.h: At global scope:
scipy/special/cephes/dd_idefs.h:53:1: warning: âdouble quick_two_diff(double, double, double*)â defined but not used [-Wunused-function]
 quick_two_diff(double a, double b, double *err)
 ^
scipy/special/cephes/dd_idefs.h:130:1: warning: âdouble two_sqr(double, double*)â defined but not used [-Wunused-function]
 two_sqr(double a, double *err)
 ^
scipy/special/cephes/dd_idefs.h:148:1: warning: âdouble two_div(double, double, double*)â defined but not used [-Wunused-function]
 two_div(double a, double b, double *err)
 ^
scipy/special/cephes/dd_idefs.h:169:1: warning: âdouble two_nint(double)â defined but not used [-Wunused-function]
 two_nint(double d)
 ^
scipy/special/cephes/dd_idefs.h:179:1: warning: âdouble two_aint(double)â defined but not used [-Wunused-function]
 two_aint(double d)
 ^
scipy/special/cephes/dd_idefs.h:187:1: warning: âint two_comp(double, double)â defined but not used [-Wunused-function]
 two_comp(const double a, const double b)
 ^
error: Command "g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/Python3/scipy-1.1.0/scipy/special -I/usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include -I/usr/local/Python3/Python-3.6.5/install/include/python3.6m -I/usr/local/Python3/scipy-1.1.0/scipy/special/c_misc -Iscipy/_lib -I/usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include -I/usr/local/Python3/Python-3.6.5/install/lib/python3.6/site-packages/numpy-1.14.5-py3.6-solaris-2.10-sun4u.32bit.egg/numpy/core/include -I/usr/local/Python3/Python-3.6.5/install/include/python3.6m -c scipy/special/wright.cc -o build/temp.solaris-2.10-sun4u.32bit-3.6/scipy/special/wright.o -MMD -MF build/temp.solaris-2.10-sun4u.32bit-3.6/scipy/special/wright.o.d" failed with exit status 1


About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 22 (16 by maintainers)

Most upvoted comments

Agreed – I think a 1.2.1 release should go out soon without this.

ping – perhaps this should be bumped to 1.2.2 or the 1.3.x series? There seem to be as many questions as answers in the discussion, so a little hard to be believe this will be fixed decisively in a timely manner, but do correct me if I’m wrong.