Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913021 - dev-python/pybind11-2.12.0: fails tests on hppa
Summary: dev-python/pybind11-2.12.0: fails tests on hppa
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: HPPA Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2023-08-26 01:58 UTC by Sam James
Modified: 2024-06-15 20:36 UTC (History)
3 users (show)

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


Attachments
build.log (file_913021.txt,143.96 KB, text/plain)
2023-08-26 01:58 UTC, Sam James
Details
build.log and emerge --info (file_913021.txt,331.77 KB, text/plain)
2024-06-15 20:35 UTC, matoro
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 2023-08-26 01:58:07 UTC
Created attachment 868728 [details]
build.log

======== End CMake output ======
Change Dir: /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1_build-python3_11/tests/test_cmake_build/installed_function

Run Build Command(s):/usr/bin/ninja check_installed_function && [1/3] Building CXX object CMakeFiles/test_installed_function.dir/var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_cmake_build/main.cpp.o
[2/3] Linking CXX shared library test_cmake_build.cpython-311-hppa-linux-gnu.so
[3/3] cd /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1_build-python3_11/tests/test_cmake_build/installed_function && /usr/bin/cmake -E env PYTHONPATH=/var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1_build-python3_11/tests/test_cmake_build/installed_function /var/tmp/portage/dev-python/pybind11-2.11.1/temp/python3.11/bin/python /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_cmake_build/installed_function/../test.py test_installed_function
test_installed_function imports, runs, and adds: 1 + 2 = 3

FAILED: tests/CMakeFiles/pytest /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1_build-python3_11/tests/CMakeFiles/pytest
cd /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1_build-python3_11/tests && /var/tmp/portage/dev-python/pybind11-2.11.1/temp/python3.11/bin/python -m pytest /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_async.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_buffers.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_builtin_casters.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_call_policies.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_callbacks.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_chrono.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_class.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_const_name.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_constants_and_functions.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_copy_move.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_custom_type_casters.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_custom_type_setup.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_docstring_options.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_eigen_matrix.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_eigen_tensor.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_enum.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_eval.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_exceptions.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_factory_constructors.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_gil_scoped.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_iostream.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_kwargs_and_defaults.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_local_bindings.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_methods_and_attributes.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_modules.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_multiple_inheritance.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_numpy_array.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_numpy_dtypes.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_numpy_vectorize.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_opaque_types.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_operator_overloading.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_pickling.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_pytypes.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_sequences_and_iterators.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_smart_ptr.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_stl.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_stl_binders.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_tagbased_polymorphic.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_thread.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_type_caster_pyobject_ptr.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_union.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_unnamed_namespace_a.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_unnamed_namespace_b.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_vector_unique_ptr_member.py /var/tmp/portage/dev-python/pybind11-2.11.1/work/pybind11-2.11.1/tests/test_virtual_functions.py
ninja: build stopped: subcommand failed.
 * ERROR: dev-python/pybind11-2.11.1::gentoo failed (test phase):
 *   ninja -v -j2 -l2 check failed

----
# emerge --info
Portage 3.0.49 (python 3.11.4-final-0, default/linux/hppa/17.0/systemd, gcc-12, glibc-2.37-r3, 6.4.10 parisc64)
=================================================================
System uname: Linux-6.4.10-parisc64-PA8800_-Mako-with-glibc2.37
KiB Mem:     8206292 total,   4408900 free
KiB Swap:    1120380 total,   1120380 free
Timestamp of repository gentoo: Sat, 26 Aug 2023 00:16:41 +0000
sh dash 0.5.12
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.36.1-r3::gentoo
dev-lang/python:           3.8.18::gentoo, 3.11.4::gentoo
dev-util/cmake:            3.26.5-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-apps/systemd:          253.6::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="*"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=2.0"
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 /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=2.0"
DISTDIR="/var/cache/distfiles"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=2.0"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2 -l2"
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="acl big-endian bzip2 cli crypt fortran gdbm hppa iconv ipv6 ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd udev unicode xattr zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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 mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-26 01:58:31 UTC
Sorry, the actual failure is this I think:
```
=================================== FAILURES ===================================
_____________ test_round_trip[pybind11_tests.eigen_tensor.c_style] _____________

m = <module 'pybind11_tests.eigen_tensor.c_style'>

    @pytest.mark.parametrize("m", submodules)
    def test_round_trip(m):
        assert_equal_tensor_ref(m.round_trip_tensor(tensor_ref))
    
        with pytest.raises(TypeError, match="^Cannot cast array data from"):
            assert_equal_tensor_ref(m.round_trip_tensor2(tensor_ref))
    
        assert_equal_tensor_ref(m.round_trip_tensor2(np.array(tensor_ref, dtype=np.int32)))
        assert_equal_tensor_ref(m.round_trip_fixed_tensor(tensor_ref))
>       assert_equal_tensor_ref(m.round_trip_aligned_view_tensor(m.reference_tensor()))
E       TypeError: round_trip_aligned_view_tensor(): incompatible function arguments. The following argument types are supported:
E           1. (arg0: numpy.ndarray[numpy.float64[?, ?, ?], flags.writeable, flags.c_contiguous]) -> numpy.ndarray[numpy.float64[?, ?, ?], flags.writeable, flags.c_contiguous]
E       
E       Invoked with: array([[[ 0.,  1.],
E               [ 2.,  3.],
E               [ 4.,  5.],
E               [ 6.,  7.],
E               [ 8.,  9.]],
E       
E              [[10., 11.],
E               [12., 13.],
E               [14., 15.],
E               [16., 17.],
E               [18., 19.]],
E       
E              [[20., 21.],
E               [22., 23.],
E               [24., 25.],
E               [26., 27.],
E               [28., 29.]]])

m          = <module 'pybind11_tests.eigen_tensor.c_style'>

../../pybind11-2.11.1/tests/test_eigen_tensor.py:215: TypeError
_____________ test_round_trip[pybind11_tests.eigen_tensor.f_style] _____________

m = <module 'pybind11_tests.eigen_tensor.f_style'>

    @pytest.mark.parametrize("m", submodules)
    def test_round_trip(m):
        assert_equal_tensor_ref(m.round_trip_tensor(tensor_ref))
    
        with pytest.raises(TypeError, match="^Cannot cast array data from"):
            assert_equal_tensor_ref(m.round_trip_tensor2(tensor_ref))
    
        assert_equal_tensor_ref(m.round_trip_tensor2(np.array(tensor_ref, dtype=np.int32)))
        assert_equal_tensor_ref(m.round_trip_fixed_tensor(tensor_ref))
>       assert_equal_tensor_ref(m.round_trip_aligned_view_tensor(m.reference_tensor()))
E       TypeError: round_trip_aligned_view_tensor(): incompatible function arguments. The following argument types are supported:
E           1. (arg0: numpy.ndarray[numpy.float64[?, ?, ?], flags.writeable, flags.f_contiguous]) -> numpy.ndarray[numpy.float64[?, ?, ?], flags.writeable, flags.f_contiguous]
E       
E       Invoked with: array([[[ 0.,  1.],
E               [ 2.,  3.],
E               [ 4.,  5.],
E               [ 6.,  7.],
E               [ 8.,  9.]],
E       
E              [[10., 11.],
E               [12., 13.],
E               [14., 15.],
E               [16., 17.],
E               [18., 19.]],
E       
E              [[20., 21.],
E               [22., 23.],
E               [24., 25.],
E               [26., 27.],
E               [28., 29.]]])

m          = <module 'pybind11_tests.eigen_tensor.f_style'>

../../pybind11-2.11.1/tests/test_eigen_tensor.py:215: TypeError
```
Comment 2 matoro archtester 2024-06-15 20:35:13 UTC
Created attachment 895890 [details]
build.log and emerge --info

Only one of these remaining on 2.12.0.

FAILED ../../pybind11-2.12.0/tests/test_eigen_tensor.py::test_round_trip[pybind11_tests.eigen_tensor.f_style] - TypeError: round_trip_aligned_view_tensor(): incompatible function arguments. The following argument types are supported: