Source: siconos
Version: 4.4.0+dfsg-6
Severity: serious
Tags: ftbfs sid forky upstream
Justification: Policy 4.9
User: [email protected]
Usertags: swig-4.5.0

Dear Maintainer,

The sicons package FTBFS with swig 4.5.0, which is currently in unstable. An 
excerpt of the build log is shown below.

This is due to the removal of the Python 2 compatibility macros in version 
4.5.0 [1]. According to the SWIG authors, these macros were retained in the 
generated code (pyhead.swg) solely for user typemaps. Any typemap using these 
macros must be updated to call the Python 3 C API directly.

Best,

Rafael Laboissière

[1] https://github.com/swig/swig/commit/79f7a2b7cb7ddc256eba09c8770133148025171d

##### Build log excerpt

[ 81%] Building CXX object 
numerics/swig/CMakeFiles/_numerics.dir/__/__/wrap/siconos/numericsPYTHON_wrap.cxx.o
cd <<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/numerics/swig && 
/usr/bin/g++ -D_numerics_EXPORTS 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/wrap/swig 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/io/src 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/io/src/mechanics 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/io/src/serialization 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/io 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/tools 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/tools/InterfaceToPathFerris 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/tools/internal 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/AVI 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/LCP 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/MLCP 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/SOCP 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/QP 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/Relay 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/FrictionContact 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/FrictionContact/Generated 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/NCP 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/MCP 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/GenericMechanical 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/src/VI 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/netlib 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/netlib/odepack 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/tools 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/blas_lapack 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/SOL/lumod-c 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/hairer 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/numeric_bindings 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/boost_contribs 
-I<<BUILD-DIR>>/siconos-4.4.0+dfsg/externals/sort -isystem 
/usr/include/python3.14 -isystem /usr/include/suitesparse -isystem 
/usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include -g -O2 
-ffile-prefix-map=<<BUILD-DIR>>/siconos-4.4.0+dfsg=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++11 -fPIC -fno-strict-aliasing -MD -MT 
numerics/swig/CMakeFiles/_numerics.dir/__/__/wrap/siconos/numericsPYTHON_wrap.cxx.o
 -MF CMakeFiles/_numerics.dir/__/__/wrap/siconos/numericsPYTHON_wrap.cxx.o.d -o 
CMakeFiles/_numerics.dir/__/__/wrap/siconos/numericsPYTHON_wrap.cxx.o -c 
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘bool sane_pyseq_check(PyObject*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4305:17:
 error: ‘PyInt_Check’ was not declared in this scope; did you mean 
‘PySet_Check’?
 4305 |     if (elt && (PyInt_Check(elt) || PyFloat_Check(elt)))
      |                 ^~~~~~~~~~~
      |                 PySet_Check
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void _sn_check_nnz(PyObject**, CSparseMatrix*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4333:6:
 error: ‘PyInt_AsLong’ was not declared in this scope; did you mean 
‘PyLong_AsLong’?
 4333 |   if(PyInt_AsLong(auto_nnz) != nz) {  
PyErr_SetString(PyExc_RuntimeError, "number of nnz is inconsistent"); *mat = 
NULL; }
      |      ^~~~~~~~~~~~
      |      PyLong_AsLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void _sn_check_shape(PyObject**, CSparseMatrix*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4316:8:
 error: ‘PyInt_Check’ was not declared in this scope; did you mean 
‘PySet_Check’?
 4316 |   if (!PyInt_Check(_TEMP##OUT))                                         
\
      |        ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4342:3:
 note: in expansion of macro ‘CHECK_PYINT’
 4342 |   CHECK_PYINT(shape_, 0, nrows);
      |   ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4322:9:
 error: ‘PyInt_AsLong’ was not declared in this scope; did you mean 
‘PyLong_AsLong’?
 4322 |   OUT = PyInt_AsLong(_TEMP##OUT);                                   \
      |         ^~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4342:3:
 note: in expansion of macro ‘CHECK_PYINT’
 4342 |   CHECK_PYINT(shape_, 0, nrows);
      |   ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4316:8:
 error: ‘PyInt_Check’ was not declared in this scope; did you mean 
‘PySet_Check’?
 4316 |   if (!PyInt_Check(_TEMP##OUT))                                         
\
      |        ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4343:3:
 note: in expansion of macro ‘CHECK_PYINT’
 4343 |   CHECK_PYINT(shape_, 1, ncols);
      |   ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘bool is_Pyobject_scipy_sparse_matrix(PyObject*, PyObject*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4478:59:
 error: ‘PyString_FromString’ was not declared in this scope; did you mean 
‘PyUString_FromString’?
 4478 |     PyObject* res = PyObject_CallMethodObjArgs(scipy_mod, 
PyString_FromString("issparse"), o, NULL);
      |                                                           
^~~~~~~~~~~~~~~~~~~
      |                                                           
PyUString_FromString
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘int convert_iarray(PyObject*, int*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4517:12:
 error: ‘PyInt_Check’ was not declared in this scope; did you mean 
‘PySet_Check’?
 4517 |       if (!PyInt_Check(o)) {
      |            ^~~~~~~~~~~
      |            PySet_Check
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4522:22:
 error: ‘PyInt_AsLong’ was not declared in this scope; did you mean 
‘PyLong_AsLong’?
 4522 |       ptr[i] = (int) PyInt_AsLong(o);
      |                      ^~~~~~~~~~~~
      |                      PyLong_AsLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘const char* pytype_string(PyObject*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4614:9:
 error: ‘PyString_Check’ was not declared in this scope; did you mean 
‘PyUString_Check’?
 4614 |     if (PyString_Check(  py_obj)) return "string"      ;
      |         ^~~~~~~~~~~~~~
      |         PyUString_Check
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4615:9:
 error: ‘PyInt_Check’ was not declared in this scope; did you mean 
‘PySet_Check’?
 4615 |     if (PyInt_Check(     py_obj)) return "int"         ;
      |         ^~~~~~~~~~~
      |         PySet_Check
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘int cs_convert_from_scipy_sparse(PyObject*, CSparseMatrix**, 
PyArrayObject**, int*, PyArrayObject**, int*, PyArrayObject**, int*, int*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:5508:85:
 error: ‘PyInt_Check’ was not declared in this scope; did you mean 
‘PySet_Check’?
 5508 |        PyObject *_TEMPnrows = PySequence_GetItem(shape_,0);             
       if (!PyInt_Check(_TEMPnrows))                                            
{                                                                          
Py_XDECREF(_TEMPnrows);                                                  
PyErr_SetString(PyExc_RuntimeError, "expecting an int for ""nrows");            
PyObject_Print(shape_, stderr, 0);                                          
return 0;                                                              }        
                                                                nrows = 
PyInt_AsLong(_TEMPnrows);                                      
Py_DECREF(_TEMPnrows);
      |                                                                         
            ^~~~~~~~~~~
      |                                                                         
            PySet_Check
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:5508:609:
 error: ‘PyInt_AsLong’ was not declared in this scope; did you mean 
‘PyLong_AsLong’?
 5508 |        PyObject *_TEMPnrows = PySequence_GetItem(shape_,0);             
       if (!PyInt_Check(_TEMPnrows))                                            
{                                                                          
Py_XDECREF(_TEMPnrows);                                                  
PyErr_SetString(PyExc_RuntimeError, "expecting an int for ""nrows");            
PyObject_Print(shape_, stderr, 0);                                          
return 0;                                                              }        
                                                                nrows = 
PyInt_AsLong(_TEMPnrows);                                      
Py_DECREF(_TEMPnrows);
      |                                                                         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                        ^~~~~~~~~~~~
      |                                                                         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                        PyLong_AsLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:5509:85:
 error: ‘PyInt_Check’ was not declared in this scope; did you mean 
‘PySet_Check’?
 5509 |        PyObject *_TEMPncols = PySequence_GetItem(shape_,1);             
       if (!PyInt_Check(_TEMPncols))                                            
{                                                                          
Py_XDECREF(_TEMPncols);                                                  
PyErr_SetString(PyExc_RuntimeError, "expecting an int for ""ncols");            
PyObject_Print(shape_, stderr, 0);                                          
return 0;                                                              }        
                                                                ncols = 
PyInt_AsLong(_TEMPncols);                                      
Py_DECREF(_TEMPncols);
      |                                                                         
            ^~~~~~~~~~~
      |                                                                         
            PySet_Check
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:5516:49:
 error: ‘PyString_FromString’ was not declared in this scope; did you mean 
‘PyUString_FromString’?
 5516 |     res = PyObject_CallMethodObjArgs(scipy_mod, 
PyString_FromString("isspmatrix_csc"), obj, NULL);
      |                                                 ^~~~~~~~~~~~~~~~~~~
      |                                                 PyUString_FromString
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘PyObject* cs_sparse_to_csr_matrix(CSparseMatrix*, bool)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4448:43:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 4448 |     PyObject* out_shape = PyTuple_Pack(2, PyInt_FromLong(M->m), 
PyInt_FromLong(M->n)); \
      |                                           ^~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6013:3:
 note: in expansion of macro ‘CS_TO_SCIPY’
 6013 |   CS_TO_SCIPY(csr, M->m, copy);
      |   ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4455:63:
 error: ‘PyString_FromString’ was not declared in this scope; did you mean 
‘PyUString_FromString’?
 4455 |     PyObject* out_mat = PyObject_CallMethodObjArgs(scipy_mod, 
PyString_FromString((char *) #TYPE "_matrix"), out_shape, NULL); \
      |                                                               
^~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6013:3:
 note: in expansion of macro ‘CS_TO_SCIPY’
 6013 |   CS_TO_SCIPY(csr, M->m, copy);
      |   ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘PyObject* cs_sparse_to_csc_matrix(CSparseMatrix*, bool)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4448:43:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 4448 |     PyObject* out_shape = PyTuple_Pack(2, PyInt_FromLong(M->m), 
PyInt_FromLong(M->n)); \
      |                                           ^~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6018:3:
 note: in expansion of macro ‘CS_TO_SCIPY’
 6018 |   CS_TO_SCIPY(csc, M->n, copy);
      |   ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4455:63:
 error: ‘PyString_FromString’ was not declared in this scope; did you mean 
‘PyUString_FromString’?
 4455 |     PyObject* out_mat = PyObject_CallMethodObjArgs(scipy_mod, 
PyString_FromString((char *) #TYPE "_matrix"), out_shape, NULL); \
      |                                                               
^~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6018:3:
 note: in expansion of macro ‘CS_TO_SCIPY’
 6018 |   CS_TO_SCIPY(csc, M->n, copy);
      |   ^~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘PyObject* cs_sparse_to_coo_matrix(CSparseMatrix*, bool)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6073:43:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 6073 |     PyObject* out_shape = PyTuple_Pack(2, PyInt_FromLong(M->m), 
PyInt_FromLong(M->n)); \
      |                                           ^~~~~~~~~~~~~~
      |                                           PyLong_FromLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6080:63:
 error: ‘PyString_FromString’ was not declared in this scope; did you mean 
‘PyUString_FromString’?
 6080 |     PyObject* out_mat = PyObject_CallMethodObjArgs(scipy_mod, 
PyString_FromString((char *) "coo_matrix"), out_all, out_shape, NULL);
      |                                                               
^~~~~~~~~~~~~~~~~~~
      |                                                               
PyUString_FromString
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void call_py_compute_Fmcp(void*, int, double*, double*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6806:22:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 6806 |     PyObject* py_n = PyInt_FromLong(n);
      |                      ^~~~~~~~~~~~~~
      |                      PyLong_FromLong
In file included from 
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:4140:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6808:5:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 6808 |     PY_CALL_METHOD_OR_FUNCTION(env, "compute_Fmcp", 
env_compute_function, py_n, py_z, py_Fmcp)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void call_py_compute_nabla_Fmcp(void*, int, double*, 
NumericsMatrix*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6829:22:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 6829 |     PyObject* py_n = PyInt_FromLong(n);
      |                      ^~~~~~~~~~~~~~
      |                      PyLong_FromLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6831:5:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 6831 |     PY_CALL_METHOD_OR_FUNCTION(env, "compute_nabla_Fmcp", 
env_compute_jacobian, py_n, py_z, py_nabla_Fmcp)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void call_py_compute_Fvi(void*, int, double*, double*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6849:22:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 6849 |     PyObject* py_n = PyInt_FromLong(n);
      |                      ^~~~~~~~~~~~~~
      |                      PyLong_FromLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6851:5:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 6851 |     PY_CALL_METHOD_OR_FUNCTION(env, "compute_F", env_compute_function, 
py_n, py_z, py_F)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void call_py_compute_nabla_Fvi(void*, int, double*, 
NumericsMatrix*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6873:22:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 6873 |     PyObject* py_n = PyInt_FromLong(n);
      |                      ^~~~~~~~~~~~~~
      |                      PyLong_FromLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6875:5:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 6875 |     PY_CALL_METHOD_OR_FUNCTION(env, "compute_nabla_F", 
env_compute_jacobian, py_n, py_z, py_nabla_F)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void call_py_compute_Fncp(void*, int, double*, double*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6890:22:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 6890 |     PyObject* py_n = PyInt_FromLong(n);
      |                      ^~~~~~~~~~~~~~
      |                      PyLong_FromLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6892:5:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 6892 |     PY_CALL_METHOD_OR_FUNCTION(env, "compute_F", env_compute_function, 
py_n, py_z, py_F)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void call_py_compute_nabla_Fncp(void*, int, double*, 
NumericsMatrix*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6912:22:
 error: ‘PyInt_FromLong’ was not declared in this scope; did you mean 
‘PyLong_FromLong’?
 6912 |     PyObject* py_n = PyInt_FromLong(n);
      |                      ^~~~~~~~~~~~~~
      |                      PyLong_FromLong
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6914:5:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 6914 |     PY_CALL_METHOD_OR_FUNCTION(env, "compute_nabla_F", 
env_compute_jacobian, py_n, py_z, py_nabla_F)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void MixedComplementarityProblem_call_compute_F(void*, int, 
double*, double*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6980:362:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 6980 | SWIGINTERN void MixedComplementarityProblem_call_compute_F(void 
*problem,int n,double *z,double *F){      PyObject* target_z;      
C_to_target_lang1(target_z, n, z, PyErr_PrintEx(0));        PyObject* target_F; 
     C_to_target_lang1(target_F, n, F, PyErr_PrintEx(0));;        PyObject* 
target_n = SWIG_From_int(n);        void* env =  (void*)(problem);        
PY_CALL_METHOD_OR_FUNCTION(env, "compute_F", env_compute_function, target_F, 
target_n, target_z);        sn_check_size_mat_vec(n, (PyArrayObject*)target_F, 
PyErr_PrintEx(0));        Py_DECREF(target_z);      Py_DECREF(target_F);      
Py_DECREF(target_n);    }
      |                                                                         
                                                                                
                                                                                
                                                                                
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void MixedComplementarityProblem_call_compute_nabla_F(void*, int, 
double*, NumericsMatrix*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:6981:374:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 6981 | SWIGINTERN void MixedComplementarityProblem_call_compute_nabla_F(void 
*problem,int n,double *z,NumericsMatrix *nabla_F){      PyObject* target_z;     
 C_to_target_lang1(target_z, n, z, PyErr_PrintEx(0));        PyObject* 
target_nabla_F;      target_nabla_F = NM_to_python(nabla_F);;        PyObject* 
target_n = SWIG_From_int(n);        void* env = (void*)(problem);        
PY_CALL_METHOD_OR_FUNCTION(env, "compute_nabla_F", env_compute_jacobian, 
target_nabla_F, target_n, target_z);        
/*@SWIG:<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_callback.i,3,%TARGET_MATRIX_FROM_CALL@*/
      |                                                                         
                                                                                
                                                                                
                                                                                
                                                             
^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void NonlinearComplementarityProblem_call_compute_F(void*, int, 
double*, double*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:7315:366:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 7315 | SWIGINTERN void NonlinearComplementarityProblem_call_compute_F(void 
*problem,int n,double *z,double *F){      PyObject* target_z;      
C_to_target_lang1(target_z, n, z, PyErr_PrintEx(0));        PyObject* target_F; 
     C_to_target_lang1(target_F, n, F, PyErr_PrintEx(0));;        PyObject* 
target_n = SWIG_From_int(n);        void* env =  (void*)(problem);        
PY_CALL_METHOD_OR_FUNCTION(env, "compute_F", env_compute_function, target_F, 
target_n, target_z);        sn_check_size_mat_vec(n, (PyArrayObject*)target_F, 
PyErr_PrintEx(0));        Py_DECREF(target_z);      Py_DECREF(target_F);      
Py_DECREF(target_n);    }
      |                                                                         
                                                                                
                                                                                
                                                                                
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void NonlinearComplementarityProblem_call_compute_nabla_F(void*, 
int, double*, NumericsMatrix*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:7316:378:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 7316 | SWIGINTERN void 
NonlinearComplementarityProblem_call_compute_nabla_F(void *problem,int n,double 
*z,NumericsMatrix *nabla_F){      PyObject* target_z;      
C_to_target_lang1(target_z, n, z, PyErr_PrintEx(0));        PyObject* 
target_nabla_F;      target_nabla_F = NM_to_python(nabla_F);;        PyObject* 
target_n = SWIG_From_int(n);        void* env = (void*)(problem);        
PY_CALL_METHOD_OR_FUNCTION(env, "compute_nabla_F", env_compute_jacobian, 
target_nabla_F, target_n, target_z);        
/*@SWIG:<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_callback.i,3,%TARGET_MATRIX_FROM_CALL@*/
      |                                                                         
                                                                                
                                                                                
                                                                                
                                                                 
^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void VariationalInequality_call_compute_F(void*, int, double*, 
double*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:7537:359:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 7537 | SWIGINTERN void VariationalInequality_call_compute_F(void *problem,int 
n,double *z,double *F){      PyObject* target_z;      
C_to_target_lang1(target_z, n, z, PyErr_PrintEx(0));        PyObject* target_F; 
     C_to_target_lang1(target_F, n, F, PyErr_PrintEx(0));;        PyObject* 
target_n = SWIG_From_int(n);        void* env =  VI_get_env(problem);        
PY_CALL_METHOD_OR_FUNCTION(env, "compute_F", env_compute_function, target_F, 
target_n, target_z);        sn_check_size_mat_vec(n, (PyArrayObject*)target_F, 
PyErr_PrintEx(0));        Py_DECREF(target_z);      Py_DECREF(target_F);      
Py_DECREF(target_n);    }
      |                                                                         
                                                                                
                                                                                
                                                                                
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:
 In function ‘void VariationalInequality_call_compute_nabla_F(void*, int, 
double*, NumericsMatrix*)’:
<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_python_functions.h:39:89:
 error: ‘SWIG_Python_str_FromChar’ was not declared in this scope
   39 |     py_out = PyObject_CallMethodObjArgs(((class_env_python*) 
ENV_STRUCT)->class_object, SWIG_Python_str_FromChar((char *)METHOD_NAME), 
__VA_ARGS__, OUTPUT, NULL);\
      |                                                                         
                ^~~~~~~~~~~~~~~~~~~~~~~~
<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu/wrap/siconos/numericsPYTHON_wrap.cxx:7538:371:
 note: in expansion of macro ‘PY_CALL_METHOD_OR_FUNCTION’
 7538 | SWIGINTERN void VariationalInequality_call_compute_nabla_F(void 
*problem,int n,double *z,NumericsMatrix *nabla_F){      PyObject* target_z;     
 C_to_target_lang1(target_z, n, z, PyErr_PrintEx(0));        PyObject* 
target_nabla_F;      target_nabla_F = NM_to_python(nabla_F);;        PyObject* 
target_n = SWIG_From_int(n);        void* env = VI_get_env(problem);        
PY_CALL_METHOD_OR_FUNCTION(env, "compute_nabla_F", env_compute_jacobian, 
target_nabla_F, target_n, target_z);        
/*@SWIG:<<BUILD-DIR>>/siconos-4.4.0+dfsg/numerics/swig/Numerics_callback.i,3,%TARGET_MATRIX_FROM_CALL@*/
      |                                                                         
                                                                                
                                                                                
                                                                                
                                                          
^~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [numerics/swig/CMakeFiles/_numerics.dir/build.make:82: 
numerics/swig/CMakeFiles/_numerics.dir/__/__/wrap/siconos/numericsPYTHON_wrap.cxx.o]
 Error 1
make[3]: Leaving directory 
'<<BUILD-DIR>>/siconos-4.4.0+dfsg/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:5430: 
numerics/swig/CMakeFiles/_numerics.dir/all] Error 2

Reply via email to