Skip to content

xcfun does not build on 32-bit architectures #152

@susilehtola

Description

@susilehtola

Builds of xcfun fail on i686 and arm7hl architectures in Fedora.

The reason is broken C++ code:

/builddir/build/BUILD/xcfun-2.1.1/python/export_xcfun.cpp: In lambda function:
/builddir/build/BUILD/xcfun-2.1.1/python/export_xcfun.cpp:145:44: error: call of overloaded 'array_t(<brace-enclosed initializer list>)' is ambiguous
  145 |                   {{nr_points, output_len}});
      |                                            ^
In file included from /builddir/build/BUILD/xcfun-2.1.1/python/export_xcfun.cpp:15:
/usr/include/pybind11/numpy.h:865:14: note: candidate: 'pybind11::array_t<T, ExtraFlags>::array_t(pybind11::array::ShapeContainer, const T*, pybind11::handle) [with T = double; int ExtraFlags = 17; pybind11::array::ShapeContainer = pybind11::detail::any_container<int>]'
  865 |     explicit array_t(ShapeContainer shape, const T *ptr = nullptr, handle base = handle())
      |              ^~~~~~~
/usr/include/pybind11/numpy.h:835:64: note: candidate: 'pybind11::array_t<double, 17>::array_t(const pybind11::array_t<double, 17>&)'
  835 | template <typename T, int ExtraFlags = array::forcecast> class array_t : public array {
      |                                                                ^~~~~~~
/usr/include/pybind11/numpy.h:835:64: note: candidate: 'pybind11::array_t<double, 17>::array_t(pybind11::array_t<double, 17>&&)'

The same issue exists on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions