Opened 8 weeks ago

Closed 8 weeks ago

#70798 closed defect (fixed)

py312-scikit-learn: build failure on macOS 15 with numerous of errors

Reported by: i0ntempest Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia Cc:
Port: py312-scikit-learn

Description

:info:build building 'sklearn.svm._libsvm' extension
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-scikit-learn/py312-scikit-learn/work/compwrap/cc/opt/local/bin/clang-mp-14 -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -I/opt/local/include -I/opt/local/include/libomp -Xpreprocessor -fopenmp -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -Isklearn/svm/src/libsvm -Isklearn/svm/src/newrand -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c sklearn/svm/_libsvm.c -o build/temp.macosx-15.0-arm64-cpython-312/sklearn/svm/_libsvm.o -g0 -O2
:info:build In file included from sklearn/svm/_libsvm.c:1276:
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:51:17: error: no member named 'values' in 'struct svm_node'
:info:build         node[i].values = tx;
:info:build         ~~~~~~~ ^
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:52:17: error: no member named 'dim' in 'struct svm_node'
:info:build         node[i].dim = (int) len_row;
:info:build         ~~~~~~~ ^
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:53:17: error: no member named 'ind' in 'struct svm_node'
:info:build         node[i].ind = i; /* only used if kernel=precomputed, but not
:info:build         ~~~~~~~ ^
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:85:12: error: no member named 'max_iter' in 'struct svm_parameter'
:info:build     param->max_iter = max_iter;
:info:build     ~~~~~  ^
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:86:12: error: no member named 'random_seed' in 'struct svm_parameter'
:info:build     param->random_seed = random_seed;
:info:build     ~~~~~  ^
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:97:16: warning: incompatible pointer types assigning to 'struct svm_node **' from 'struct svm_node *' [-Wincompatible-pointer-types]
:info:build     problem->x = dense_to_libsvm((double *) X, dims); /* implicit call to malloc */
:info:build                ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:98:14: error: no member named 'W' in 'struct svm_problem'
:info:build     problem->W = (double *) sample_weight;
:info:build     ~~~~~~~  ^
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:139:12: error: no member named 'n_iter' in 'struct svm_model'
:info:build     model->n_iter = NULL;
:info:build     ~~~~~  ^
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:149:25: error: member reference type 'struct svm_node *' is a pointer; did you mean to use '->'?
:info:build             model->SV[i].ind = ((int *) support)[i];
:info:build             ~~~~~~~~~~~~^
:info:build                         ->
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:149:26: error: no member named 'ind' in 'struct svm_node'
:info:build             model->SV[i].ind = ((int *) support)[i];
:info:build             ~~~~~~~~~~~~ ^
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:150:25: error: member reference type 'struct svm_node *' is a pointer; did you mean to use '->'?
:info:build             model->SV[i].values = NULL;
:info:build             ~~~~~~~~~~~~^
:info:build                         ->
:info:build sklearn/svm/src/libsvm/libsvm_helper.c:150:26: error: no member named 'values' in 'struct svm_node'
:info:build             model->SV[i].values = NULL;
:info:build             ~~~~~~~~~~~~ ^

and some more.

Attachments (1)

main.log (4.2 MB) - added by i0ntempest 8 weeks ago.

Change History (3)

Changed 8 weeks ago by i0ntempest

Attachment: main.log added

comment:1 Changed 8 weeks ago by jmroot (Joshua Root)

Cc: stromnov removed
Owner: set to stromnov
Status: newassigned

comment:2 Changed 8 weeks ago by i0ntempest

Resolution: fixed
Status: assignedclosed

In 1d35555a09f6fa784597b31c1379fca70874a938/macports-ports (master):

py-scikit-learn: update to 1.5.2

temporary workaround for numpy v2 requirement
Closes: #70798

Note: See TracTickets for help on using tickets.