Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Oct 22, 2022 · 0 comments
Open

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

yurivict opened this issue Oct 22, 2022 · 0 comments

Comments

@yurivict
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant