Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908079 - media-libs/mesa-23.0.3-r1:0: 4 test failures on hppa
Summary: media-libs/mesa-23.0.3-r1:0: 4 test failures on hppa
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/mesa/m...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-08 20:53 UTC by Rolf Eike Beer
Modified: 2024-01-11 04:41 UTC (History)
0 users

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


Attachments
build.log (media-libs_mesa-23.0.3-r1_use_HrNSi.xz,37.10 KB, application/x-xz)
2023-06-08 20:53 UTC, Rolf Eike Beer
Details
test logs (media-libs_mesa-23.0.3-r1_use_HrNSi.tar.xz,51.50 KB, application/x-xz)
2023-06-08 20:54 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2023-06-08 20:53:43 UTC
Created attachment 863588 [details]
build.log

Summary of Failures:

22/48 mesa:mapi / shared-glapi symbols check      FAIL               0.72s   exit status 1
35/48 mesa:gbm / gbm-symbols-check                FAIL               1.39s   exit status 1
46/48 mesa:egl / egl-symbols-check                FAIL               1.26s   exit status 1
48/48 mesa:util / util_tests                      FAIL              66.42s   exit status 1

The shared-glapi one is already tracked in bug 869173 and others.

Portage 3.0.45.3 (python 3.11.3-final-0, default/linux/hppa/17.0, gcc-11, glibc-2.36-r8, 5.16.15-gentoo-parisc64 parisc64)
=================================================================
System uname: Linux-5.16.15-gentoo-parisc64-parisc64-PA8800_-Mako-with-glibc2.36
KiB Mem:     8228184 total,   3151124 free
KiB Swap:    4194300 total,   4188836 free
Timestamp of repository gentoo: Thu, 08 Jun 2023 02:15:02 +0000
Head commit of repository gentoo: 61091f465be228d81785d5cde71eb7b881642e87
sh bash 5.1_p16-r4
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r4::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.9.16_p3::gentoo, 3.10.11::gentoo, 3.11.3::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             11.3.1_p20221209::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="@FREE"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=2.0"
DISTDIR="/usr/portage/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=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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 strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS=""
GENTOO_MIRRORS="ftp://castor.sf-tec.de/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEFLAGS="-j 4 -l 4"
PKGDIR="/usr/portage/packages"
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 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30 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, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Rolf Eike Beer archtester 2023-06-08 20:54:20 UTC
Created attachment 863589 [details]
test logs
Comment 2 Rolf Eike Beer archtester 2023-06-08 20:55:38 UTC
There is also some weird binary data in the build log, I don't know if that is an unrelated problem or related.
Comment 3 Matt Turner gentoo-dev 2024-01-10 05:08:22 UTC
> src/gbm/libgbm.so.1.0.0: unknown symbol exported: _GLOBAL_OFFSET_TABLE_

Looks like I need to add this to the Mesa symbol checking scripts.
Comment 4 Matt Turner gentoo-dev 2024-01-10 21:46:24 UTC
This failure:

> [----------] 3 tests from half_to_float_test
> [ RUN      ] half_to_float_test.nan_test
> ../mesa-23.0.3/src/util/tests/half_float_test.cpp:61: Failure
> Value of: issignaling(TEST_NAN)
>   Actual: true
> Expected: false
> [  FAILED  ] half_to_float_test.nan_test (0 ms)

is apparently because hppa uses a different signalling NaN?

At least the test author appears to be aware of it:

> /* Sanity test our test values */
> TEST(half_to_float_test, nan_test)
> {
>    EXPECT_TRUE(isinf(TEST_POS_INF));
>    EXPECT_TRUE(isinf(TEST_NEG_INF));
> 
>    EXPECT_TRUE(isnan(TEST_NAN));
>    /* Make sure that our 32-bit float nan test value we're using is a
>     * non-signaling NaN.  The sign of the bit for signaling was apparently
>     * different on some old processors (PA-RISC, MIPS?).  This test value should
>     * cover Intel, ARM, and PPC, for sure.
>     */
>    EXPECT_FALSE(issignaling(TEST_NAN));
> }

I'll have to do some more research.
Comment 5 Matt Turner gentoo-dev 2024-01-10 22:11:49 UTC
https://en.wikipedia.org/wiki/NaN#:~:text=Two%20separate%20kinds%20of%20NaNs,to%20basic%20floating%2Dpoint%20arithmetic. says

> in NaNs generated by the PA-RISC and old MIPS processors, the signaling/quiet
> bit is zero if the NaN is quiet, and non-zero if the NaN is signaling. Thus,
> on these processors, the bit represents an is_signaling flag.

Right, so on MIPS it's even more complex because there are multiple possibilities. Thanks MIPS.

I honestly don't know what the "correct" thing here even is. The hppa CPU represents sNaN/qNaN in one way, but this code is almost always used for converting values to/from half-float for use in shader code... which is going to run on a GPU that almost certainly uses the IEEE-754-2008 convention for NaNs (i.e., not what hppa does).

I think we should disable this test on hppa/old-mips, but I don't know how to check or whether there is a macro that tells us which convention is in use...
Comment 7 Matt Turner gentoo-dev 2024-01-10 22:41:10 UTC
And

https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26964 

as well.
Comment 8 Larry the Git Cow gentoo-dev 2024-01-11 04:41:57 UTC
The bug has been referenced in the following commit(s):

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

commit 93b9d9dc97403326a984a056615295a163e259fa
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-01-10 21:34:47 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-01-11 04:41:51 +0000

    media-libs/mesa: Version bump to 23.3.3
    
    Bug: https://bugs.gentoo.org/908079
    Closes: https://bugs.gentoo.org/921297
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/Manifest                           |   1 +
 media-libs/mesa/files/23.3.3-big-endian.patch      |  84 ++++
 ...3-symbols-check-Add-_GLOBAL_OFFSET_TABLE_.patch |  31 ++
 media-libs/mesa/mesa-23.3.3.ebuild                 | 450 +++++++++++++++++++++
 4 files changed, 566 insertions(+)