[MacPorts] #70798: py312-scikit-learn: build failure on macOS 15 with numerous of errors
MacPorts
noreply at macports.org
Thu Sep 19 10:38:02 UTC 2024
#70798: py312-scikit-learn: build failure on macOS 15 with numerous of errors
------------------------+--------------------------------
Reporter: i0ntempest | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: sequoia | Port: py312-scikit-learn
------------------------+--------------------------------
{{{
: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.
--
Ticket URL: <https://trac.macports.org/ticket/70798>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list