pdidev / pdi

The PDI Data Interface
https://pdi.dev
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Build is broken with latest versions of pybind11 #448

Closed jbigot closed 2 months ago

jbigot commented 4 months ago

See for example https://github.com/pdidev/pkgs/actions/runs/9433422678/job/25984348343

[ 85%] Building CXX object CMakeFiles/PDI_python.dir/src/python/pdi.cxx.o
/usr/bin/c++ -DFMT_SHARED -DPDI_python_EXPORTS -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DSPDLOG_SHARED_LIB -I/tmp/src/pdi-1678350672master/pdi/include -I/tmp/src/pdi-1678350672master/pdi/src -I/tmp/src/pdi-1678350672master/obj-x86_64-linux-gnu -isystem /usr/include/python3.11 -g -O2 -ffile-prefix-map=/tmp/src/pdi-1678350672master=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -MD -MT CMakeFiles/PDI_python.dir/src/python/pdi.cxx.o -MF CMakeFiles/PDI_python.dir/src/python/pdi.cxx.o.d -o CMakeFiles/PDI_python.dir/src/python/pdi.cxx.o -c /tmp/src/pdi-1678350672master/pdi/src/python/pdi.cxx
/tmp/src/pdi-1678350672master/pdi/src/python/pdi.cxx: In lambda function:
/tmp/src/pdi-1678350672master/pdi/src/python/pdi.cxx:109:28: warning: 'void pybind11::exception<type>::operator()(const char*) const [with type = PDI::Error]' is deprecated: Please use py::set_error() instead (https://github.com/pybind/pybind11/pull/4772) [-Wdeprecated-declarations]
  109 |                         exc(e.what());
      |                         ~~~^~~~~~~~~~
In file included from /usr/include/pybind11/numpy.h:12,
                 from /tmp/src/pdi-1678350672master/pdi/src/python/pdi.cxx:36:
/usr/include/pybind11/pybind11.h:2625:10: note: declared here
 2625 |     void operator()(const char *message) const { set_error(*this, message); }
      |          ^~~~~~~~
/tmp/src/pdi-1678350672master/pdi/src/python/pdi.cxx: In lambda function:
/tmp/src/pdi-1678350672master/pdi/src/python/pdi.cxx:172:97: error: 'struct pybind11::detail::PyArrayDescr_Proxy' has no member named 'flags'
  172 |                 if (!(inout & PDI_OUT)) pybind11::detail::array_descriptor_proxy(result.ptr())->flags &= ~pybind11::detail::npy_api::NPY_ARRAY_WRITEABLE_;
      |                                                                                                 ^~~~~
jbigot commented 4 months ago

mentioned in commit 7aa2628a82fd6229965b8b353740712aaffb3540

jbigot commented 4 months ago

mentioned in commit 815e1a5db4d381a352670e048a257e65f450e0a3

jbigot commented 4 months ago

mentioned in commit 9fbddfc992e237bf2d8ceaf4189bbdf1fbd16cac

jbigot commented 4 months ago

mentioned in commit 560b66aa4ec356b1df8d81cbb48c1736f9bfea98

jbigot commented 4 months ago

mentioned in commit b5d94a97f421fe5f1a7adc922d6ddf2cc4762cdc

jbigot commented 4 months ago

mentioned in commit 4d99df956bbc91ecce64052633377553093c9a51

jbigot commented 4 months ago

mentioned in commit 192a00a23b846bf5a48249e871f9fbcb87ae3352

jbigot commented 4 months ago

mentioned in commit fe8bd2eab89bf70ead4d003bb6142d05b5e3fd87

jbigot commented 4 months ago

mentioned in commit c82d1815e2d44d1d8ed0adf6727d8be1d0e9cb86