Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942689 - dev-python/numpy-2.0.2: fails tests on hppa
Summary: dev-python/numpy-2.0.2: fails tests on hppa
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: HPPA Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 942618
  Show dependency tree
 
Reported: 2024-11-02 00:29 UTC by Sam James
Modified: 2024-11-02 06:41 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,463.17 KB, application/x-xz)
2024-11-02 00:29 UTC, Sam James
Details
build.log.xz (2.1.2) (build.log.xz,409.17 KB, application/x-xz)
2024-11-02 05:39 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-02 00:29:13 UTC
Created attachment 907601 [details]
build.log.xz

I'm filing this then will run 2.1.2 to compare.

```
FAILED _core/tests/test_dtype.py::TestBuiltin::test_dtype[int] - AssertionError:
Items are not equal: two equivalent types do not hash to the same value !
 ACTUAL: -2123100726
 DESIRED: -490076231
FAILED _core/tests/test_dtype.py::TestBuiltin::test_dtype[float] - AssertionError:
Items are not equal: two equivalent types do not hash to the same value !
 ACTUAL: -1919596061
 DESIRED: 1931313460
FAILED f2py/tests/test_kind.py::TestKind::test_real - AssertionError: selectedrealkind(16): expected 10 but got -1
assert -1 == 10
 +  where -1 = <fortran function selectedrealkind>(16)
 +  and   10 = selected_real_kind(16)
FAILED f2py/tests/test_kind.py::TestKind::test_quad_precision - AssertionError: selectedrealkind(32): expected 16 but got -1
assert -1 == 16
 +  where -1 = <fortran function selectedrealkind>(32)
 +  and   16 = selected_real_kind(32)
FAILED tests/test_ctypeslib.py::TestAsArray::test_reference_cycles - NotImplementedError: Converting dtype('int16') to a ctypes type
FAILED tests/test_ctypeslib.py::TestAsArray::test_segmentation_fault - NotImplementedError: Converting dtype('float64') to a ctypes type
FAILED tests/test_ctypeslib.py::TestAsCtypesType::test_scalar - NotImplementedError: Converting dtype('<u2') to a ctypes type
FAILED tests/test_ctypeslib.py::TestAsCtypesType::test_subarray - NotImplementedError: Converting dtype('int32') to a ctypes type
FAILED tests/test_ctypeslib.py::TestAsCtypesType::test_structure - NotImplementedError: Converting dtype('uint16') to a ctypes type
FAILED tests/test_ctypeslib.py::TestAsCtypesType::test_structure_aligned - NotImplementedError: Converting dtype('uint16') to a ctypes type
FAILED tests/test_ctypeslib.py::TestAsCtypesType::test_union - NotImplementedError: Converting dtype('uint16') to a ctypes type
FAILED tests/test_ctypeslib.py::TestAsCtypesType::test_padded_union - NotImplementedError: Converting dtype('uint16') to a ctypes type
============================================ 12 failed, 45605 passed, 1077 skipped, 56 xfailed, 5 xpassed, 215 warnings in 2000.34s (0:33:20) ============================================
 * ERROR: dev-python/numpy-2.0.2-r1::gentoo failed (test phase):
 *   pytest failed with python3.12
```

----

Portage 3.0.65 (python 3.12.6-final-0, default/linux/hppa/23.0/hppa2.0/systemd, gcc-13, glibc-2.39-r6, 6.10.7 parisc64)
=================================================================
System uname: Linux-6.10.7-parisc64-PA8900_-Shortfin-with-glibc2.39
KiB Mem:     8194376 total,   5778836 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Fri, 01 Nov 2024 21:03:43 +0000
Head commit of repository gentoo: 223b603217d633595452bb8e90c3a8dc44a871be

sh dash 0.5.12
ld GNU ld (Gentoo 2.42 p3) 2.42.0
ccache version 4.9.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.1::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.8.18_p2::gentoo, 3.9.19_p3::gentoo, 3.10.13_p3::gentoo, 3.11.9-r1::gentoo, 3.12.6_p4::gentoo
dev-util/ccache:           4.9.1-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          255.11::gentoo
sys-devel/binutils:        2.40-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo, 13.2.1_p20231118::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    eclass-overrides: local
    volatile: False
    sync-git-verify-commit-signature: yes
    sync-git-clone-extra-opts: -b stable -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now

ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="@FREE"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=2.0 -fdiagnostics-color=always -frecord-gcc-switches"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -march=2.0 -fdiagnostics-color=always -frecord-gcc-switches"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --usepkg=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=2.0 -fdiagnostics-color=always -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=2.0 -fdiagnostics-color=always -frecord-gcc-switches"
GENTOO_MIRRORS="https://mirrors.gethosted.online/gentoo/ https://www.mirrorservice.org/sites/distfiles.gentoo.org/ https://mirror.bytemark.co.uk/gentoo/ https://mirrors.soeasyto.com/distfiles.gentoo.org/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LEX="flex"
LINGUAS="en en_GB"
MAKEOPTS="-j3 -l3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="PIC acl bash-completion big-endian bzip2 caps crypt filecaps firewalld gdbm gmp hardened hppa hunspell iconv ipv6 jit ncurses nls openmp pam pcre pie readline seccomp ssl system-av1 system-binutils system-boost system-bootstrap system-cairo system-clang system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-leveldb system-libevent system-libs system-libyaml system-lz4 system-mitkrb5 system-sqlite system-ssl system-tbb system-uulib system-webp system-zlib systemd udev unicode verify-sig xattr zlib zsh-completion" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="fbdev dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-11-02 05:37:08 UTC
Oh my, hppa looks to be really poorly supported.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-02 05:39:18 UTC
Created attachment 907604 [details]
build.log.xz (2.1.2)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-02 05:43:21 UTC
For the test_kind failures, 1.26.4 has:
"""
        if use hppa ; then
                EPYTEST_DESELECT+=(
                        # TODO: Get selectedrealkind updated!
                        # bug #907228
                        # https://github.com/numpy/numpy/issues/3424 (https://github.com/numpy/numpy/issues/3424#issuecomment-412369029)
                        # https://github.com/numpy/numpy/pull/21785
                        f2py/tests/test_kind.py::TestKind::test_real
                        f2py/tests/test_kind.py::TestKind::test_quad_precision
                )
        fi
"""

I suggest we put that back for now.
Comment 4 Larry the Git Cow gentoo-dev 2024-11-02 06:32:12 UTC
The bug has been closed via the following commit(s):

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

commit f5ff0a8ea2622d8f3f522054c1f9c82061dbc04f
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-11-02 06:27:15 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-11-02 06:32:08 +0000

    dev-python/numpy: Add deselects for hppa
    
    Closes: https://bugs.gentoo.org/942689
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/numpy/numpy-2.0.2-r1.ebuild | 23 ++++++++++++++++++++++-
 dev-python/numpy/numpy-2.1.2.ebuild    | 19 ++++++++++++++++++-
 2 files changed, 40 insertions(+), 2 deletions(-)