too long lines were shrinked: 2024-04-17 13:55:58,627 root INFO building 'statsmodels.tsa._innovations' extension 2024-04-17 13:55:58,627 root INFO x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -O2 -pipe -march=native -fno-diagnostics-color -DNDEBUG -fPIC -DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/lib/python3.11/site-packages/numpy/core/include -I/usr/lib/python3.11/site-package 2024-04-17 13:55:58,627 root INFO x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -O2 -pipe -march=native -fno-diagnostics-color -DNDEBUG -fPIC -DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/lib/python3.11/site-packages/numpy/core/include -I/usr/lib/python3.11/site-package 2024-04-17 13:55:58,628 root INFO x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -O2 -pipe -march=native -fno-diagnostics-color -DNDEBUG -fPIC -DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/lib/python3.11/site-packages/numpy/core/include -I/usr/lib/python3.11/site-package 2024-04-17 13:55:58,628 root INFO x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -O2 -pipe -march=native -fno-diagnostics-color -DNDEBUG -fPIC -DCYTHON_TRACE_NOGIL=0 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/lib/python3.11/site-packages/numpy/core/include -I/usr/lib/python3.11/site-package statsmodels/tsa/holtwinters/_exponential_smoothers.c: In function __pyx_f_5numpy_5dtype_8itemsize_itemsize: statsmodels/tsa/holtwinters/_exponential_smoothers.c:18322:13: error: implicit declaration of function PyDataType_ELSIZE; did you mean PyDataType_ISUNSIZED? [-Wimplicit-function-declaration] 18322 | __pyx_r = PyDataType_ELSIZE(__pyx_v_self); | ^~~~~~~~~~~~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_gnome_systemd-20240412-195623 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-14 * clang/llvm (if any): clang version 18.1.3 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/18/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/18 18.1.3 Python 3.11.9 Available Ruby profiles: [1] ruby31 (with Rubygems) [2] ruby32 (with Rubygems) [3] ruby33 (with Rubygems) * Available Rust versions: [1] rust-bin-1.77.1 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.22_p7 [openjdk-bin-11] 2) Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17] *) Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21] 4) Eclipse Temurin JDK 8.402_p06 [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.3 go version go1.22.2 linux/amd64 HEAD of ::gentoo commit b35569f3ab8e67d5195160c70d6900fe5d0b6d73 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Apr 17 13:34:30 2024 +0000 2024-04-17 13:34:29 UTC emerge -qpvO dev-python/statsmodels [ebuild N ] dev-python/statsmodels-0.14.2 USE="-debug (-doc) -examples -test" PYTHON_TARGETS="python3_11 -python3_10 -python3_12"
Created attachment 890982 [details] emerge-info.txt
Created attachment 890983 [details] dev-python:statsmodels-0.14.2:20240417-135510.log.xz
Created attachment 890984 [details] emerge-history.txt
Created attachment 890985 [details] environment
Created attachment 890986 [details] etc.clang.tar.xz
Created attachment 890987 [details] etc.portage.tar.xz
Created attachment 890988 [details] qlist-info.txt.xz
Created attachment 890989 [details] temp.tar.xz
Thanks for the report! Experiencing this on dev-python/numpy-1.26.4 as multiple installed packages block the update to numpy-2 currently... Here is the background: https://numpy.org/devdocs/numpy_2_0_migration_guide.html#migration-c-descr It appears that the migration advice given there was not heeded by statsmodels: You're supposed to do #if NPY_ABI_VERSION < 0x02000000 #define PyDataType_ELSIZE(descr) ((descr)->elsize) #endif This would have to be done for PyDataType_ALIGNMENT and others as well. The release 0.14.3 "compatibility with numpy-2" was done 3 days ago and there doesn't yet seem to be an issue for not compiling under numpy-1 any more...
Now filed as https://github.com/statsmodels/statsmodels/issues/9366
(In reply to Bernd Feige from comment #10) > Now filed as https://github.com/statsmodels/statsmodels/issues/9366 Was closed as "expected" by the maintainer: "Closing since this is as expected, and it appears to be a build configuration issue on Gentoo. We test against NumPy < 2, although building always requires NumPy 2.0.0+" So statsmodels-0.14.3.ebuild should require numpy-2.
Thanks for investigating. That sucks a lot but whatever.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3076b344774c2944f0a4b7dd0d6fdaafabdab46 commit a3076b344774c2944f0a4b7dd0d6fdaafabdab46 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-09-18 11:22:39 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-09-18 14:03:20 +0000 dev-python/statsmodels: Require >=numpy-2.0.0 for building Closes: https://bugs.gentoo.org/930149 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/statsmodels/statsmodels-0.14.3.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)