Opened 3 years ago

Closed 3 years ago

#63233 closed defect (fixed)

Unable to Upgrade py39-scipy on Lion. Fails to Build.

Reported by: RobK88 Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: lion Cc: michaelld@…
Port: py39-scipy

Description

I am unable to upgrade py39-scipy. It fails to build. I will attach main.log

bash-3.2$ port outdated
The following installed ports are outdated:
py39-scipy                     1.6.3_0 < 1.7.0_0         
bash-3.2$ sudo port upgrade -v outdated
--->  Computing dependencies for py39-scipy
--->  Fetching distfiles for py39-scipy
--->  Verifying checksums for py39-scipy
--->  Extracting py39-scipy
--->  Applying patches to py39-scipy
--->  Configuring py39-scipy
--->  Building py39-scipy
Error: Failed to build py39-scipy: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scipy/py39-scipy/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
bash-3.2$

Attachments (1)

main.log (866.9 KB) - added by RobK88 3 years ago.
main.log

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by RobK88

Attachment: main.log added

main.log

comment:1 Changed 3 years ago by RobK88

I tried the upgrade the port again. Here is some more useful info:

bash-3.2$ port outdated
The following installed ports are outdated:
py39-scipy                     1.6.3_0 < 1.7.0_0       
bash-3.2$ 
bash-3.2$ sudo port clean py39-scipy
--->  Cleaning py39-scipy
bash-3.2$
bash-3.2$ sudo port -v upgrade outdated

etc etc.

clang++-mp-9.0: scipy/interpolate/_rbfinterp_pythran.cpp
In file included from scipy/interpolate/_rbfinterp_pythran.cpp:26:
In file included from /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/pythonic/include/numpy/exp.hpp:8:
In file included from /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/xsimd.hpp:17:
In file included from /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_math.hpp:23:
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_scalar.hpp:360:9: error: use of undeclared identifier '__sincosf'; did you mean 'sincos'?
        __sincosf(val, &s, &c);
        ^~~~~~~~~
        sincos
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_scalar.hpp:357:17: note: 'sincos' declared here
    inline void sincos(float val, float&s, float& c)
                ^
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_scalar.hpp:360:24: error: non-const lvalue reference to type 'float' cannot bind to a temporary of type 'float *'
        __sincosf(val, &s, &c);
                       ^~
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_scalar.hpp:357:41: note: passing argument to parameter 's' here
    inline void sincos(float val, float&s, float& c)
                                        ^
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_scalar.hpp:372:9: error: use of undeclared identifier '__sincos'; did you mean 'sincos'?
        __sincos(val, &s, &c);
        ^~~~~~~~
        sincos
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_scalar.hpp:369:17: note: 'sincos' declared here
    inline void sincos(double val, double&s, double& c)
                ^
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_scalar.hpp:372:23: error: non-const lvalue reference to type 'double' cannot bind to a temporary of type 'double *'
        __sincos(val, &s, &c);
                      ^~
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran/xsimd/math/xsimd_scalar.hpp:369:43: note: passing argument to parameter 's' here
    inline void sincos(double val, double&s, double& c)
                                          ^
4 errors generated.
error: Command "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scipy/py39-scipy/work/compwrap/cxx/opt/local/bin/clang++-mp-9.0 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/ -I/opt/local/libexec/boost/1.71/include -I/opt/local/include -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_NONE -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pythran -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.macosx-10.7-x86_64-3.9/numpy/distutils/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c scipy/interpolate/_rbfinterp_pythran.cpp -o build/temp.macosx-10.7-x86_64-3.9/scipy/interpolate/_rbfinterp_pythran.o -MMD -MF build/temp.macosx-10.7-x86_64-3.9/scipy/interpolate/_rbfinterp_pythran.o.d -std=c++11 -fno-math-errno -w -stdlib=libc++ -isysroot/ -msse -msse2 -msse3" failed with exit status 1

########### EXT COMPILER OPTIMIZATION ###########
Platform      : 
  Architecture: x64
  Compiler    : clang

CPU baseline  : 
  Requested   : 'min'
  Enabled     : SSE SSE2 SSE3
  Flags       : -msse -msse2 -msse3
  Extra checks: none

CPU dispatch  : 
  Requested   : 'max -xop -fma4'
  Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
  Generated   : none
CCompilerOpt.cache_flush[804] : write cache to path -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scipy/py39-scipy/work/scipy-scipy-c3bac55/build/temp.macosx-10.7-x86_64-3.9/ccompiler_opt_cache_ext.py

########### CLIB COMPILER OPTIMIZATION ###########
Platform      : 
  Architecture: x64
  Compiler    : clang

CPU baseline  : 
  Requested   : 'min'
  Enabled     : SSE SSE2 SSE3
  Flags       : -msse -msse2 -msse3
  Extra checks: none

CPU dispatch  : 
  Requested   : 'max -xop -fma4'
  Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
  Generated   : none
CCompilerOpt.cache_flush[804] : write cache to path -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scipy/py39-scipy/work/scipy-scipy-c3bac55/build/temp.macosx-10.7-x86_64-3.9/ccompiler_opt_cache_clib.py
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scipy/py39-scipy/work/scipy-1.7.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 setup.py --no-user-cfg config_fc --fcompiler gnu95 --f77exec /opt/local/bin/gfortran-mp-11 --f77flags='-m64 -Os -fno-second-underscore' --f90exec /opt/local/bin/gfortran-mp-11 --f90flags='-m64 -Os -fno-second-underscore' config --cc /opt/local/bin/clang-mp-9.0 --include-dirs /opt/local/include --library-dirs /opt/local/lib build -j4 
Exit code: 1
Error: Failed to build py39-scipy: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-scipy/py39-scipy/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

comment:2 Changed 3 years ago by kencu (Ken)

MacPorts legacy support adds __sincos support to systems <= 10.9.

https://github.com/macports/macports-legacy-support

You add it to the build by editing the Portfile bbedit `port file py39-scipy and adding this near the top, at the proper place:

Portgroup legacysupport 1.1

as per this document:

https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/legacysupport-1.1.tcl

comment:3 Changed 3 years ago by RobK88

Thanks again Ken.

That worked!!

But please note that there was a small typo in your last port. I needed to add "PortGroup legacysupport 1.1" to the portfile for py39-scipy. "PortGroup" not "Portgroup". Macports complained when I tried to use "Portgroup".

It looks like the portfile will need to be updated to close off this bug.

comment:4 Changed 3 years ago by kencu (Ken)

CamelCase -- love it :>

Actually I do like it. Just don't always remember it.

Last edited 3 years ago by kencu (Ken) (previous) (diff)

comment:5 Changed 3 years ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In f9efe2c57b877571dccbea041a05f7fac78cc70c/macports-ports (master):

py39-scipy: use legacysupport on <= 10.8

for syncos() at least

closes: #63233

Note: See TracTickets for help on using tickets.