Skip to content

Build fails: no matching function for call to 'N_VMake_Serial' #135

@yurivict

Description

@yurivict
In file included from pycvodes/_cvodes.cpp:806:
In file included from pycvodes/include/cvodes_cxx.hpp:37:
pycvodes/include/sundials_cxx.hpp:81:31: error: no matching function for call to 'N_VMake_Serial'
                : VectorBase_(N_VMake_Serial(n, const_cast<realtype*>(data))) {}
                              ^~~~~~~~~~~~~~
/usr/local/include/nvector/nvector_serial.h:89:26: note: candidate function not viable: requires 3 arguments, but 2 were provided
SUNDIALS_EXPORT N_Vector N_VMake_Serial(sunindextype vec_length, realtype *v_data, SUNContext sunctx);
                         ^
In file included from pycvodes/_cvodes.cpp:806:
In file included from pycvodes/include/cvodes_cxx.hpp:37:
pycvodes/include/sundials_cxx.hpp:84:31: error: no matching function for call to 'N_VMake_Serial'
                : VectorBase_(N_VMake_Serial(v.size(), v.get_data_ptr())) {} // copy-constructor
                              ^~~~~~~~~~~~~~
/usr/local/include/nvector/nvector_serial.h:89:26: note: candidate function not viable: requires 3 arguments, but 2 were provided
SUNDIALS_EXPORT N_Vector N_VMake_Serial(sunindextype vec_length, realtype *v_data, SUNContext sunctx);
                         ^
In file included from pycvodes/_cvodes.cpp:806:
In file included from pycvodes/include/cvodes_cxx.hpp:37:
pycvodes/include/sundials_cxx.hpp:87:31: error: no matching function for call to 'N_VMake_Serial'
                : VectorBase_(N_VMake_Serial(v.size(), v.get_data_ptr())) {}
                              ^~~~~~~~~~~~~~
/usr/local/include/nvector/nvector_serial.h:89:26: note: candidate function not viable: requires 3 arguments, but 2 were provided
SUNDIALS_EXPORT N_Vector N_VMake_Serial(sunindextype vec_length, realtype *v_data, SUNContext sunctx);
                         ^
In file included from pycvodes/_cvodes.cpp:806:
In file included from pycvodes/include/cvodes_cxx.hpp:37:
pycvodes/include/sundials_cxx.hpp:90:31: error: no matching function for call to 'N_VMake_Serial'
                : VectorBase_(N_VMake_Serial(v.size(), const_cast<realtype*>(&v[0]))) {}
                              ^~~~~~~~~~~~~~
/usr/local/include/nvector/nvector_serial.h:89:26: note: candidate function not viable: requires 3 arguments, but 2 were provided
SUNDIALS_EXPORT N_Vector N_VMake_Serial(sunindextype vec_length, realtype *v_data, SUNContext sunctx);
                         ^
In file included from pycvodes/_cvodes.cpp:806:
In file included from pycvodes/include/cvodes_cxx.hpp:59:
/usr/local/include/sunlinsol/sunlinsol_klu.h:34:10: fatal error: 'klu.h' file not found
#include <klu.h>
         ^~~~~~~
1 warning and 11 errors generated.

sundials-6.4.0
clang-14
Python-3.9
FreeBSD 13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions