I have reproduced the problem with a test case. The problem is in
cython. It generates code with this type
of problem in some cases (inlined methods of derived classes).

I have reported the problem upstream
https://github.com/cython/cython/issues/6033

I don't know how to continue from here. Is it possible to build C code
with the old behaviour?


Best, Sergio


El sáb, 17 feb 2024 a las 22:19, Jakub Jelinek (<ja...@redhat.com>) escribió:
>
> On Sat, Feb 17, 2024 at 10:03:39PM +0100, Sergio Pascual wrote:
> > Hello, currently python-scikit-learn fails to build in f40 and rawhide
> > https://bugzilla.redhat.com/show_bug.cgi?id=2261602
> >
> > The problem is a series of incompatible pointer conversions that
> > appear in cython generated C code.
> > The code has classes defined in cython and in the offending code
> > "self" is passed as a pointer to the base class with a conversion to
> > the derived class
> >
> > sklearn/metrics/_dist_metrics.c: In function
> > ‘__pyx_f_7sklearn_7metrics_13_dist_metrics_19EuclideanDistance32_dist_csr’:
> > sklearn/metrics/_dist_metrics.c:51033:90: error: passing argument 1 of
> > ‘__pyx_f_7sklearn_7metrics_13_dist_metrics_19EuclideanDistance32_rdist_csr’
> > from incompatible pointer type [-Wincompatible-pointer-types]
> >
> > note: expected ‘struct
> > __pyx_obj_7sklearn_7metrics_13_dist_metrics_EuclideanDistance32 *’
> > but argument is of type ‘struct
> > __pyx_obj_7sklearn_7metrics_13_dist_metrics_DistanceMetric32 *’
>
> If the conversion is correct and desirable, it needs to be explicit, not
> implicit.
>
>         Jakub
> --
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue
--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to