Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930149 - dev-python/statsmodels-0.14.2 - statsmodels/.../_exponential_smoothers.c: error: implicit declaration of function PyDataType_ELSIZE
Summary: dev-python/statsmodels-0.14.2 - statsmodels/.../_exponential_smoothers.c: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard: fixed in 0.14.3
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-04-17 16:57 UTC by Toralf Förster
Modified: 2024-11-01 15:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.74 KB, text/plain)
2024-04-17 16:57 UTC, Toralf Förster
Details
dev-python:statsmodels-0.14.2:20240417-135510.log.xz (dev-python:statsmodels-0.14.2:20240417-135510.log.xz,20.57 KB, application/x-xz)
2024-04-17 16:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,218.31 KB, text/plain)
2024-04-17 16:57 UTC, Toralf Förster
Details
environment (environment,165.66 KB, text/plain)
2024-04-17 16:57 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.15 KB, application/x-xz)
2024-04-17 16:57 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,11.17 KB, application/x-xz)
2024-04-17 16:57 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,62.77 KB, application/x-xz)
2024-04-17 16:57 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,54.49 KB, application/x-xz)
2024-04-17 16:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-04-17 16:57:17 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2024-04-17 16:57:19 UTC
Created attachment 890982 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-17 16:57:20 UTC
Created attachment 890983 [details]
dev-python:statsmodels-0.14.2:20240417-135510.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-04-17 16:57:22 UTC
Created attachment 890984 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-04-17 16:57:23 UTC
Created attachment 890985 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-04-17 16:57:25 UTC
Created attachment 890986 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-17 16:57:26 UTC
Created attachment 890987 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-17 16:57:29 UTC
Created attachment 890988 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-04-17 16:57:31 UTC
Created attachment 890989 [details]
temp.tar.xz
Comment 9 Bernd Feige 2024-09-18 09:04:46 UTC
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...
Comment 10 Bernd Feige 2024-09-18 09:08:33 UTC
Now filed as https://github.com/statsmodels/statsmodels/issues/9366
Comment 11 Bernd Feige 2024-09-18 10:27:51 UTC
(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.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-09-18 11:24:35 UTC
Thanks for investigating.  That sucks a lot but whatever.
Comment 13 Larry the Git Cow gentoo-dev 2024-09-18 14:03:48 UTC
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(-)