-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
I attempted to build the package under MacOS (clang 12.0.0) and it failed with the error shown below. I suspect that the code generation scripts might need to be updated ...
src/_ufuncs.c:646:37: error: use of undeclared identifier 'gsw_o2sol_sp_pt'; did you mean 'data_o2sol_sp_pt'?
static void *data_o2sol_sp_pt[] = {&gsw_o2sol_sp_pt};
^~~~~~~~~~~~~~~
data_o2sol_sp_pt
src/_ufuncs.c:646:14: note: 'data_o2sol_sp_pt' declared here
static void *data_o2sol_sp_pt[] = {&gsw_o2sol_sp_pt};
^
src/_ufuncs.c:660:40: error: use of undeclared identifier 'gsw_sp_salinometer'; did you mean 'data_sp_salinometer'?
static void *data_sp_salinometer[] = {&gsw_sp_salinometer};
^~~~~~~~~~~~~~~~~~
data_sp_salinometer
src/_ufuncs.c:660:14: note: 'data_sp_salinometer' declared here
static void *data_sp_salinometer[] = {&gsw_sp_salinometer};
^
src/_ufuncs.c:733:31: error: use of undeclared identifier 'gsw_o2sol'
static void *data_o2sol[] = {&gsw_o2sol};
^
In file included from src/_ufuncs.c:773:
src/method_bodies.c:131:11: error: implicit declaration of function 'gsw_geo_strf_dyn_height_1' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = gsw_geo_strf_dyn_height_1((double *)PyArray_DATA(sa_a),
^
src/method_bodies.c:204:11: error: implicit declaration of function 'gsw_util_pchip_interp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = gsw_util_pchip_interp((double *)PyArray_DATA(xa),
^
src/method_bodies.c:204:11: note: did you mean 'util_pchip_interp'?
src/method_bodies.c:156:1: note: 'util_pchip_interp' declared here
util_pchip_interp(PyObject *NPY_UNUSED(self), PyObject *args)
^
13 warnings and 5 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels