Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919261

Summary: sci-libs/scikit-learn-1.3.2-r1 - sklearn/.../_dist_metrics.c: error: passing argument 1 of _pyx_f_7sklearn_7metrics_13_dist_metrics_19EuclideanDistanc
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=918983
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt.xz
sci-libs:scikit-learn-1.3.2-r1:20231205-100338.log.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-12-05 10:17:23 UTC
too long lines were shrinked:

      |                             ^
sklearn/metrics/_dist_metrics.c: In function __pyx_pf_7sklearn_7metrics_13_dist_metrics_16DistanceMetric64_24_pairwise_dense_sparse:
sklearn/metrics/_dist_metrics.c:29787:27: warning: assignment discards const qualifier from pointer target type [-Wdiscarded-qualifiers]
29787 |           __pyx_v_x1_data = ((&(*((__pyx_t_7sklearn_5utils_9_typedefs_float64_t const  *) ( /* dim=1 */ ((char *) (((__pyx_t_7sklearn_5utils_9_typedefs_float64_t const  *) ( /* dim=0 */ (__pyx_v_X_data.data + __pyx_t_15 * __pyx_v_X_data.strides[0]) )) + __pyx_t_16)) )))) + (__pyx_v_i1 * __py
      |                           ^
sklearn/metrics/_dist_metrics.c: In function __pyx_f_7sklearn_7metrics_13_dist_metrics_19EuclideanDistance64_dist_csr:
sklearn/metrics/_dist_metrics.c:31433:90: error: passing argument 1 of __pyx_f_7sklearn_7metrics_13_dist_metrics_19EuclideanDistance64_rdist_csr from incompatible pointer type [-Wincompatible-pointer-types]
31433 |   __pyx_t_1 = __pyx_f_7sklearn_7metrics_13_dist_metrics_19EuclideanDistance64_rdist_csr(((struct __pyx_obj_7sklearn_7metrics_13_dist_metrics_DistanceMetric64 *)__pyx_v_self), __pyx_v_x1_data, __pyx_v_x1_indices, __pyx_v_x2_data, __pyx_v_x2_indices, __pyx_v_x1_start, __pyx_v_x1_end, __pyx_v_x
      |                                                                                         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20231123-162118

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.1
  [2]   php8.2 *
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit a4651668089837239eb29cf0fe5302b976ade798
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 5 08:31:59 2023 +0000

    2023-12-05 08:31:58 UTC

emerge -qpvO sci-libs/scikit-learn
[ebuild  N    ] sci-libs/scikit-learn-1.3.2-r1  USE="examples -debug -test" PYTHON_TARGETS="python3_11 -python3_10 -python3_12"
Comment 1 Toralf Förster gentoo-dev 2023-12-05 10:17:24 UTC
Created attachment 877355 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-05 10:17:25 UTC
Created attachment 877356 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-05 10:17:27 UTC
Created attachment 877357 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-05 10:17:27 UTC
Created attachment 877358 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-05 10:17:28 UTC
Created attachment 877359 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-05 10:17:30 UTC
Created attachment 877360 [details]
qlist-info.txt.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-05 10:17:30 UTC
Created attachment 877361 [details]
sci-libs:scikit-learn-1.3.2-r1:20231205-100338.log.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-05 10:17:31 UTC
Created attachment 877362 [details]
temp.tar.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-05 10:28:46 UTC
I fear this might be the same cython bug as bug 918983.
Comment 10 Larry the Git Cow gentoo-dev 2023-12-14 05:22:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=786a1575c3be3d8680b2b4aec6254cbae90ab30d

commit 786a1575c3be3d8680b2b4aec6254cbae90ab30d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-11 18:26:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-14 05:21:54 +0000

    distutils-r1.eclass: workaround cython bug for Modern C
    
    Pass -Wno-error=incompatible-pointer-types for now to avoid many dupes for
    the same cython bug.
    
    Bug: https://github.com/cython/cython/issues/2747
    Bug: https://bugs.gentoo.org/918983
    Bug: https://bugs.gentoo.org/919261
    Bug: https://bugs.gentoo.org/919277
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/distutils-r1.eclass | 5 +++++
 1 file changed, 5 insertions(+)