Re: Help needed to fix FTBFS in scikit learn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux