scipy: pythran error on Win10 build
After making the pythran setting opt-out, I am getting the following errors in default settings
building 'scipy.optimize._group_columns' extension
compiling C sources
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_NONE -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy-1.19.1-py3.9-win-amd64.egg\numpy\core\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy-1.19.1-py3.9-win-amd64.egg\numpy\core\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /EHsc /Tpscipy/optimize/_group_columns.cpp /Fobuild\temp.win-amd64-3.9\Release\scipy/optimize/_group_columns.obj /std:c++14 /Zm1000
_group_columns.cpp
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/python/core.hpp(62): warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/python/core.hpp(92): warning C4244: 'initializing': conversion from 'npy_intp' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/python/core.hpp(98): warning C4244: '*=': conversion from 'const npy_intp' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/python/core.hpp(144): warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/int.hpp(170): warning C4244: 'return': conversion from 'long' to 'unsigned char', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/int.hpp(171): warning C4244: 'return': conversion from 'long' to 'signed char', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/int.hpp(172): warning C4244: 'return': conversion from 'long' to 'unsigned short', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/int.hpp(173): warning C4244: 'return': conversion from 'long' to 'short', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/builtins/id.hpp(28): warning C4244: 'return': conversion from 'uintptr_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/builtins/id.hpp(33): warning C4244: 'return': conversion from 'uintptr_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/builtins/id.hpp(38): warning C4244: 'return': conversion from 'uintptr_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/utils/shared_ref.hpp(101): warning C4521: '`anonymous-namespace'::pythonic::utils::shared_ref<std::vector<bool,std::allocator<_Ty>>>': multiple copy constructors specified
with
[
_Ty=bool
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/list.hpp(195): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::utils::shared_ref<std::vector<bool,std::allocator<_Ty>>>' being compiled
with
[
_Ty=bool
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/list.hpp(513): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::list<bool>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(479): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value==1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<T,pS>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<T,pS>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(645): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::ndarray<T,pS>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(495): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value!=1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<T,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<T,pS>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(503): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&!`anonymous-namespace'::pythonic::types::is_array_index<F>::value&&!std::is_same<bool,F::dtype>::value&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<T,pS>,F>>::type `anonymous-namespace'::pythonic::types::ndarray<T,pS>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/utils/shared_ref.hpp(101): warning C4521: '`anonymous-namespace'::pythonic::utils::shared_ref<`anonymous-namespace'::pythonic::types::sliced_str<S>::container_type>': multiple copy constructors specified
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/str.hpp(31): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::utils::shared_ref<`anonymous-namespace'::pythonic::types::sliced_str<S>::container_type>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/str.hpp(90): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::sliced_str<S>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/utils/shared_ref.hpp(101): warning C4521: '`anonymous-namespace'::pythonic::utils::shared_ref<std::vector<T,std::allocator<_Ty>>>': multiple copy constructors specified
with
[
T=`anonymous-namespace'::pythonic::types::str,
_Ty=`anonymous-namespace'::pythonic::types::str
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/dynamic_tuple.hpp(23): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::utils::shared_ref<std::vector<T,std::allocator<_Ty>>>' being compiled
with
[
T=`anonymous-namespace'::pythonic::types::str,
_Ty=`anonymous-namespace'::pythonic::types::str
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/exceptions.hpp(23): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::dynamic_tuple<`anonymous-namespace'::pythonic::types::str>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/str.hpp(70): warning C4244: 'return': conversion from '__int64' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/str.hpp(358): warning C4267: 'return': conversion from 'size_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/str.hpp(394): warning C4244: 'return': conversion from '__int64' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/str.hpp(404): warning C4267: 'return': conversion from 'size_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/str.hpp(409): warning C4267: 'return': conversion from 'size_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/str.hpp(414): warning C4267: 'return': conversion from 'size_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/str.hpp(419): warning C4267: 'return': conversion from 'size_t' to 'long', possible loss of data
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/str.hpp(675): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/numpy/transpose.hpp(106): warning C4348: '`anonymous-namespace'::pythonic::numpy::transpose': redefinition of default parameter: parameter 3
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/numpy/transpose.hpp(30): note: see declaration of '`anonymous-namespace'::pythonic::numpy::transpose'
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/operator_/lshift.hpp(21): warning C4804: '<<': unsafe use of type 'bool' in operation
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/operator_/rshift.hpp(19): warning C4804: '>>': unsafe use of type 'bool' in operation
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/slice.hpp(624): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'const T', possible loss of data
with
[
T=long
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/slice.hpp(629): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'const T', possible loss of data
with
[
T=long
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/slice.hpp(634): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'const T', possible loss of data
with
[
T=long
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/utils/shared_ref.hpp(101): warning C4521: '`anonymous-namespace'::pythonic::utils::shared_ref<`anonymous-namespace'::pythonic::types::raw_array<T>>': multiple copy constructors specified
with
[
T=intptr_t
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(238): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::utils::shared_ref<`anonymous-namespace'::pythonic::types::raw_array<T>>' being compiled
with
[
T=intptr_t
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/operator_/neg.hpp(14): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::ndarray<intptr_t,`anonymous-namespace'::pythonic::types::pshape<long>>' being compiled
scipy/optimize/_group_columns.cpp(352): note: see reference to class template instantiation '__pythran__group_columns::group_sparse::type<long,long,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(479): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value==1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<intptr_t,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<intptr_t,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(495): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value!=1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<intptr_t,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<intptr_t,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(503): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&!`anonymous-namespace'::pythonic::types::is_array_index<F>::value&&!std::is_same<bool,F::dtype>::value&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<intptr_t,`anonymous-namespace'::pythonic::types::pshape<long>>,F>>::type `anonymous-namespace'::pythonic::types::ndarray<intptr_t,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(479): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value==1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<__int64,`anonymous-namespace'::pythonic::types::array_base<long,1,`anonymous-namespace'::pythonic::types::tuple_version>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<__int64,`anonymous-namespace'::pythonic::types::array_base<long,1,`anonymous-namespace'::pythonic::types::tuple_version>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/types/ndarray.hpp(1164): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::ndarray<__int64,`anonymous-namespace'::pythonic::types::array_base<long,1,`anonymous-namespace'::pythonic::types::tuple_version>>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(495): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value!=1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<intptr_t,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<__int64,`anonymous-namespace'::pythonic::types::array_base<long,1,`anonymous-namespace'::pythonic::types::tuple_version>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(503): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&!`anonymous-namespace'::pythonic::types::is_array_index<F>::value&&!std::is_same<bool,F::dtype>::value&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<__int64,`anonymous-namespace'::pythonic::types::array_base<long,1,`anonymous-namespace'::pythonic::types::tuple_version>>,F>>::type `anonymous-namespace'::pythonic::types::ndarray<__int64,`anonymous-namespace'::pythonic::types::array_base<long,1,`anonymous-namespace'::pythonic::types::tuple_version>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/utils/shared_ref.hpp(101): warning C4521: '`anonymous-namespace'::pythonic::utils::shared_ref<`anonymous-namespace'::pythonic::types::raw_array<T>>': multiple copy constructors specified
with
[
T=long
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(238): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::utils::shared_ref<`anonymous-namespace'::pythonic::types::raw_array<T>>' being compiled
with
[
T=long
]
scipy/optimize/_group_columns.cpp(452): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(479): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value==1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(495): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value!=1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(503): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&!`anonymous-namespace'::pythonic::types::is_array_index<F>::value&&!std::is_same<bool,F::dtype>::value&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>,F>>::type `anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/utils/shared_ref.hpp(101): warning C4521: '`anonymous-namespace'::pythonic::utils::shared_ref<`anonymous-namespace'::pythonic::types::raw_array<T>>': multiple copy constructors specified
with
[
T=int
]
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(238): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::utils::shared_ref<`anonymous-namespace'::pythonic::types::raw_array<T>>' being compiled
with
[
T=int
]
scipy/optimize/_group_columns.cpp(467): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long>>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(479): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value==1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(495): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value!=1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(503): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&!`anonymous-namespace'::pythonic::types::is_array_index<F>::value&&!std::is_same<bool,F::dtype>::value&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long>>,F>>::type `anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(479): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value==1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long,long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long,long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
scipy/optimize/_group_columns.cpp(482): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long,long>>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(495): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value!=1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long,long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(503): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&!`anonymous-namespace'::pythonic::types::is_array_index<F>::value&&!std::is_same<bool,F::dtype>::value&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long,long>>,F>>::type `anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long,long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(479): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value==1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long,long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long,long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
scipy/optimize/_group_columns.cpp(512): note: see reference to class template instantiation '`anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long,long>>' being compiled
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(495): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&std::is_same<bool,F::dtype>::value&&F::value!=1&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long>>,`anonymous-namespace'::pythonic::types::ndarray<long,`anonymous-namespace'::pythonic::types::pshape<long>>>>::type `anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long,long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
C:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran\pythonic/include/types/ndarray.hpp(503): error C2559: 'std::enable_if<`anonymous-namespace'::pythonic::types::is_numexpr_arg<F>::value&&!`anonymous-namespace'::pythonic::types::is_array_index<F>::value&&!std::is_same<bool,F::dtype>::value&&!`anonymous-namespace'::pythonic::types::is_pod_array<F>::value,`anonymous-namespace'::pythonic::types::numpy_vexpr<`anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long,long>>,F>>::type `anonymous-namespace'::pythonic::types::ndarray<int,`anonymous-namespace'::pythonic::types::pshape<long,long>>::operator [](const F &) const': cannot overload a member function without ref-qualifier with a member function with ref-qualifier
error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_NONE -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages/pythran -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy-1.19.1-py3.9-win-amd64.egg\numpy\core\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy-1.19.1-py3.9-win-amd64.egg\numpy\core\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /EHsc /Tpscipy/optimize/_group_columns.cpp /Fobuild\temp.win-amd64-3.9\Release\scipy/optimize/_group_columns.obj /std:c++14 /Zm1000" failed with exit status 2
Scipy/Numpy/Python version information:
1.7.0.dev0+xxxxxxx, 1.19.1, sys.version_info(major=3, minor=9, micro=0, releaselevel=‘final’, serial=0)
pip install pythran
Requirement already satisfied: pythran in c:\users\ilhan polat\appdata\local\programs\python\python39\lib\site-packages (0.9.8.post2)
Requirement already satisfied: networkx>=2 in c:\users\ilhan polat\appdata\local\programs\python\python39\lib\site-packages (from pythran) (2.5)
Requirement already satisfied: six in c:\users\ilhan polat\appdata\local\programs\python\python39\lib\site-packages (from pythran) (1.15.0)
Requirement already satisfied: numpy in c:\users\ilhan polat\appdata\local\programs\python\python39\lib\site-packages\numpy-1.19.1-py3.9-win-amd64.egg (from pythran) (1.19.1)
Requirement already satisfied: beniget~=0.3.0 in c:\users\ilhan polat\appdata\local\programs\python\python39\lib\site-packages (from pythran) (0.3.0)
Requirement already satisfied: ply>=3.4 in c:\users\ilhan polat\appdata\local\programs\python\python39\lib\site-packages (from pythran) (3.11)
Requirement already satisfied: decorator in c:\users\ilhan polat\appdata\local\programs\python\python39\lib\site-packages (from pythran) (4.4.2)
Requirement already satisfied: gast~=0.4.0 in c:\users\ilhan polat\appdata\local\programs\python\python39\lib\site-packages (from pythran) (0.4.0)
Win 10.0.19042 64-bit Python 3.9 standard 64-bit install official binary download powershell 7-1-3 VS Community 2019 edition 16.9.2
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 102 (100 by maintainers)
Commits related to this issue
- BLD: add NPY_DISTUTILS_APPEND_FLAGS to attempt to fix Pythran build xref https://github.com/scipy/scipy/issues/13717 — committed to rgommers/scipy-wheels by rgommers 3 years ago
- Use -m32 on win32 by default; handle CXXFLAGS and LDFLAGS This is a follow-up to gh-1742 and should fix https://github.com/scipy/scipy/issues/13717 — committed to rgommers/pythran by rgommers 3 years ago
So I guess you have simply have to add
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm\x64\bin
to your PATH if you target the 64bit environment.Thanks! I’ll try that! Update: that worked for me, too. Thanks!
@tirthasheshpatel Seeing the same errors in this pipeline run
I can confirm, that pythran works locally within my
msys2
environment withg++
after fiddling around with.pythranrc
and removing some warning flags. Failed pythran tests so far are due to the non-existence of xsimd headers and libraries. It was also important to setblas=openblas
in.pythranrc
instead ofpythran-openblas
. This could also be relevant forMSVC cl
builds.To get to this point it was helpful to run tests this way with logging the output:
python.exe -m pytest pythran/tests/test_ndarray.py -v
and then search the log-file for lines withSystemExit: error:
Then rerun the failing compile command line in a terminal.For CI Windows builds you may overwrite
pythran\pythran-win32.cfg
instead of using%USERPROFILE%\.pythranc
. @serge-sans-paille, the pythran documenation is wrong for Windows builds. Usually Windows doesn’t have a%HOME%
variable defined, soexpanduser
expands to%USERPROFILE%
instead. https://github.com/serge-sans-paille/pythran/issues/1740#issue-837531672