I wanted to make sure i didn't mess anything up for vtk < 9.0 so I did a standard build in Fedora Rawhide and ran into this:
Code: Select all
builddir/build/BUILD/freecad/src/Mod/Part/App/GeometryPyImp.cpp: In member function 'PyObject* Part::GeometryPy::getExtensionOfType(PyObject*)':
/builddir/build/BUILD/freecad/src/Mod/Part/App/GeometryPyImp.cpp:273:134: error: call of overloaded 'Tuple(size_t)' is ambiguous
273 | PyObject* cpy = static_cast<GeometryExtensionPy *>(ext->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
| ^
In file included from /usr/include/CXX/Objects.hxx:42,
from /builddir/build/BUILD/freecad/src/Base/GeometryPyCXX.h:27,
from /builddir/build/BUILD/freecad/src/Mod/Part/App/GeometryPyImp.cpp:40:
/usr/include/CXX/Python3/Objects.hxx:2260:18: note: candidate: 'Py::Tuple::Tuple(int)'
2260 | explicit Tuple( int size=0 )
| ^~~~~
/usr/include/CXX/Python3/Objects.hxx:2247:18: note: candidate: 'Py::Tuple::Tuple(PyObject*, bool)'
2247 | explicit Tuple( PyObject *pyob, bool owned = false )
| ^~~~~
/usr/include/CXX/Python3/Objects.hxx:2234:11: note: candidate: 'Py::Tuple::Tuple(const Py::Tuple&)'
2234 | class Tuple: public Sequence
| ^~~~~
/usr/include/CXX/Python3/Objects.hxx:2234:11: note: candidate: 'Py::Tuple::Tuple(Py::Tuple&&)'
/builddir/build/BUILD/freecad/src/Mod/Part/App/GeometryPyImp.cpp: In member function 'PyObject* Part::GeometryPy::getExtensionOfName(PyObject*)':
/builddir/build/BUILD/freecad/src/Mod/Part/App/GeometryPyImp.cpp:307:130: error: call of overloaded 'Tuple(size_t)' is ambiguous
307 | PyObject* cpy = static_cast<GeometryExtensionPy *>(ext->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
| ^
In file included from /usr/include/CXX/Objects.hxx:42,
from /builddir/build/BUILD/freecad/src/Base/GeometryPyCXX.h:27,
from /builddir/build/BUILD/freecad/src/Mod/Part/App/GeometryPyImp.cpp:40:
/usr/include/CXX/Python3/Objects.hxx:2260:18: note: candidate: 'Py::Tuple::Tuple(int)'
2260 | explicit Tuple( int size=0 )
| ^~~~~
/usr/include/CXX/Python3/Objects.hxx:2247:18: note: candidate: 'Py::Tuple::Tuple(PyObject*, bool)'
2247 | explicit Tuple( PyObject *pyob, bool owned = false )
| ^~~~~
/usr/include/CXX/Python3/Objects.hxx:2234:11: note: candidate: 'Py::Tuple::Tuple(const Py::Tuple&)'
2234 | class Tuple: public Sequence
| ^~~~~
/usr/include/CXX/Python3/Objects.hxx:2234:11: note: candidate: 'Py::Tuple::Tuple(Py::Tuple&&)'
/builddir/build/BUILD/freecad/src/Mod/Part/App/GeometryPyImp.cpp: In member function 'PyObject* Part::GeometryPy::getExtensions(PyObject*)':
/builddir/build/BUILD/freecad/src/Mod/Part/App/GeometryPyImp.cpp:441:41: error: call of overloaded 'Tuple(size_t)' is ambiguous
441 | Py::Tuple args(size_t(0));
| ^