Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498058 - media-libs/mesa-10 fails lp_test_arit test
Summary: media-libs/mesa-10 fails lp_test_arit test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks: mesa-10
  Show dependency tree
 
Reported: 2014-01-14 11:16 UTC by Paolo Pedroni
Modified: 2015-02-21 19:28 UTC (History)
4 users (show)

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


Attachments
Build log (mesa-10.0.2:20140114-105156.log.gz,193.55 KB, application/x-gzip)
2014-01-14 11:36 UTC, Paolo Pedroni
Details
build.log.xz for mesa-10.2.4 (mesa-10.2.4_build.log.xz,43.47 KB, application/octet-stream)
2014-08-17 17:14 UTC, Nikoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2014-01-14 11:16:26 UTC
The above mentioned test fails on multilib amd64 with 32-bit llvmpipe drivers. The test-suite.log file reads:

==============================================================
   Mesa 10.0.2: src/gallium/drivers/llvmpipe/test-suite.log
==============================================================

# TOTAL: 5
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: lp_test_arit
==================

rcp(5.8799997e-39): ref = 1.70068035e+38, out = inf, precision = -inf bits, FAIL
rsqrt(5.8799997e-39): ref = 1.30410138e+19, out = inf, precision = -inf bits, FAIL
floor(-1.40129846e-45): ref = -1, out = -0, precision = -0.000000 bits, FAIL
ceil(1.40129846e-45): ref = 1, out = 0, precision = -0.000000 bits, FAIL
fract(1.40129846e-45): ref = 1.40129846e-45, out = 0, precision = -0.000000 bits, FAIL
fract(-1.40129846e-45): ref = 0.99999994, out = 0, precision = -0.000000 bits, FAIL
fract(5.8799997e-39): ref = 5.8799997e-39, out = 0, precision = -0.000000 bits, FAIL

This happens both with llvm-3.3-r3 and llvm-3.4.


Reproducible: Always

Steps to Reproduce:
1. Unmask mesa-10.0
2. Modify eselect-opengl as per bug #491644
3. emerge -uN1Dtav world

Actual Results:  
The error above.

Expected Results:  
Tests succeed and software installed fine.

Please note that lto is actually disabled for llvm and mesa.

# emerge --info '=media-libs/mesa-10.0.2::gentoo'
Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.17, 3.12.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16396600 total,   2139540 free
KiB Swap:    8171516 total,   8164792 free
Timestamp of tree: Tue, 14 Jan 2014 07:15:01 +0000
ld ld di GNU (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe -fomit-frame-pointer -flto=8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -O2 -pipe -fomit-frame-pointer -flto=8"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks merge-sync news parallel-fetch protect-owned sandbox sfperms split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://tux.rainside.sk/gentoo/ http://gentoo.supp.name/ http://mirror.opteamax.de/gentoo/ http://gentoo.mneisen.org/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -flto=8"
MAKEOPTS="-j11"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi adns alsa amd64 ao audiofile bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus declarative dga djvu dri dts dvd dvdr emboss encode exif expat fam fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm geoip ggi gif gimp gmp gnutls gphoto2 gpm graphviz gstreamer gtk handbook iconv icu idn ieee1394 imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kipi lame lcms libass libcaca libnotify libsamplerate lm_sensors lua lzma lzo mad mmap mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postscript ppds pulseaudio qt3support qt4 rdesktop readline recode samba sdl semantic-desktop session smartcard sndfile sockets speex spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg symlink syslog sysvipc taglib tcpd theora threads tidy tiff truetype udev udisks unicode upower usb vcd vdpau vim-syntax vnc vorbis wayland win32codecs wmf wxwidgets x264 xattr xcb xcomposite xinerama xml xpm xscreensaver xv xvid yahoo zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel virmidi" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="kodak ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer nlpsolver" LINGUAS="it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

# emerge -pqv '=media-libs/mesa-10.0.2::gentoo'
[ebuild     U ] media-libs/mesa-10.0.2 [9.2.5] USE="egl gallium gbm gles1 gles2 llvm llvm-shared-libs nptl openvg r600-llvm-compiler vdpau wayland xa xvmc -bindist -classic -debug -opencl -osmesa -pax_kernel -pic (-selinux) (-xorg%*)" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="r600 (-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -radeon -radeonsi -vmware"
Comment 1 Paolo Pedroni 2014-01-14 11:36:22 UTC
Created attachment 367836 [details]
Build log
Comment 2 Matt Turner gentoo-dev 2014-02-03 21:52:20 UTC
Thanks for the report. Did this fail in older releases (9.1.6 or 9.2.5)?
Comment 3 Paolo Pedroni 2014-02-04 05:31:45 UTC
(In reply to Matt Turner from comment #2)
> Thanks for the report. Did this fail in older releases (9.1.6 or 9.2.5)?

I never noticed it before, but I wouldn't swear on it. Do you want me to try?
Comment 4 Paolo Pedroni 2014-02-04 10:49:12 UTC
(In reply to Paolo Pedroni from comment #3)
> (In reply to Matt Turner from comment #2)
> > Thanks for the report. Did this fail in older releases (9.1.6 or 9.2.5)?
> 
> I never noticed it before, but I wouldn't swear on it. Do you want me to try?

I can confirm that mesa-9.2.5 compiles and installs fine, but tests are disabled in that ebuild:

[...]
>>> Source compiled.
 * x86: running multilib-minimal_abi_src_test
>>> Test phase [none]: media-libs/mesa-9.2.5
 * amd64: running multilib-minimal_abi_src_test
>>> Test phase [none]: media-libs/mesa-9.2.5

>>> Install mesa-9.2.5 into /var/tmp/portage/media-libs/mesa-9.2.5/image/ category media-libs
[...]

I also tried to build mesa-10.0.2-r1 with an older version of llvm (3.3-r3 instead of 3.4) but it fails anyway.

Let me know if you need anything more.
Comment 5 Paolo Pedroni 2014-02-04 11:12:33 UTC
I just tried media-libs/mesa-10.0.3 and, of course, it still fails.
Comment 6 Patrick Lauer gentoo-dev 2014-03-10 05:16:23 UTC
FAIL: lp_test_arit
==================

floor(-0): ref = -1, out = 0, precision = -0.000000 bits, FAIL
ceil(0): ref = 1, out = 0, precision = -0.000000 bits, FAIL
fract(-0): ref = 0.99999994, out = -0, precision = -0.000000 bits, FAIL

Slightly different error for same test failing
Comment 7 Paolo Pedroni 2014-03-10 10:08:02 UTC
(In reply to Paolo Pedroni from comment #5)
> I just tried media-libs/mesa-10.0.3 and, of course, it still fails.

And, of course, also media-libs/mesa-10.1.0 fails.
Comment 8 Patrick Lauer gentoo-dev 2014-05-27 02:44:37 UTC
10.1.4 still failing
Comment 9 Nikoli 2014-08-17 17:14:20 UTC
Created attachment 383042 [details]
build.log.xz for mesa-10.2.4

10.2.4 failed this test in one (llvm-3.4.2, kernel 3.14.4-hardened-r1, AMD A4-3300M APU) of my systems:
# cat ./work/Mesa-10.2.4-abi_x86_64.amd64/src/gallium/drivers/llvmpipe/lp_test_arit.log
floor(-0): ref = -1, out = 0, precision = -0.000000 bits, FAIL
ceil(0): ref = 1, out = 0, precision = -0.000000 bits, FAIL
fract(-0): ref = 0.99999994, out = -0, precision = -0.000000 bits, FAIL


Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.7.3, glibc-2.19-r1, 3.14.4-hardened-r1 x86_64)
=================================================================
                        System Settings
=================================================================
KiB Mem:     7603164 total,    849580 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 17 Aug 2014 15:45:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo nikoli
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
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="-march=amdfam10 -O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
INSTALL_MASK="/usr/share/gtk-doc"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/var/package-manager/overlay"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr audiofile bash-completion bzip2 cairo caps cdda cddb cdio cdparanoia cdr celt cli consolekit cracklib crypt css cups cxx dbus djvu dri dvd dvdr encode exif fat ffmpeg flac fluidsynth fontconfig fortran gd geoip gif gimp gmp gphoto2 gpm graphviz gsm gstreamer gtk handbook hardened iconv icu id3tag idn imagemagick imap imlib ios ipod ipv6 jbig jpeg jpeg2k justify kde kipi lame laptop lcms libass libnotify libproxy libsamplerate lm_sensors lzma lzo mac mad matroska mikmod mmx mmxext mng modplug modules mp3 mp4 mtp multilib musepack musicbrainz ncurses networkmanager nls nptl nptlonly ntfs ogg openal openexr opengl openmp opus pam pango pax_kernel pcre pdf pg-intdatetime phonon plasma pm-utils png policykit postscript qt3support qt4 rar raw readline reiserfs replaygain rtmp sasl scanner session smp sndfile socks5 speex spell sqlite sse sse2 sse3 sse4a ssl startup-notification svg symlink sysfs taglib threads thumbnail tiff truetype udev udisks unicode upnp upower usb v4l v4l2 vcd vorbis vpx wavpack webkit webp wifi wma x264 xattr xcb xcomposite xface xinerama xml xmp xpm xscreensaver xtpax xv xz zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer" LINGUAS="ru ru_RU en" NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi gzip rewrite" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600 modesetting vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-libs/mesa-10.2.4 was built with the following:
USE="dri3 egl gallium gbm nptl openvg pax_kernel pic xa -bindist -classic -debug -gles1 -gles2 -llvm -opencl -openmax -osmesa -r600-llvm-compiler (-selinux) -vdpau -wayland -xvmc" ABI_X86="64 -32 -x32" VIDEO_CARDS="r600 radeon -freedreno -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -radeonsi -vmware"
Comment 10 Paolo Pedroni 2014-09-23 08:52:20 UTC
Still there in media-libs/mesa-10.3.0 :-(
Comment 11 Matt Turner gentoo-dev 2014-12-09 05:41:38 UTC
This has been fixed upstream, and I've requested that the commit be picked to the 10.4 branch.
Comment 12 Paolo Pedroni 2014-12-09 08:26:32 UTC
Hurrah!! Thanks.
Comment 13 Matt Turner gentoo-dev 2015-02-21 19:27:50 UTC
This is fixed in mesa-10.5.0_rc1.
Comment 14 Matt Turner gentoo-dev 2015-02-21 19:28:41 UTC
And actually the whole 10.4 series as well.