Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715130 - media-libs/openjpeg-2.3.1-r1: multiple test failures unless CFLAGS=-ffp-contract=off is set
Summary: media-libs/openjpeg-2.3.1-r1: multiple test failures unless CFLAGS=-ffp-contr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2020-03-28 08:49 UTC by tka
Modified: 2020-12-29 02:59 UTC (History)
2 users (show)

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


Attachments
build.log (failure) (build.log,357.61 KB, text/plain)
2020-03-28 08:50 UTC, tka
Details
build.log (-ffp-contract=off -> pass) (build.log,354.19 KB, text/plain)
2020-03-28 09:02 UTC, tka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tka 2020-03-28 08:49:13 UTC
This is a new bug report as requested in 628430#c12. Multiple tests still fail for openjpeg-2.3.1-r1 unless I add -ffp-contract=off to the CFLAGS as described in 628430#c1. This is the first time that I build openjpeg on a haswell system. Earlier versions <=2.3.1-r0 built on an ivybridge system were fine. Together with the statement that the failures causeed by new versions of tiff are fixed, this supports the assumption in the other bug that these failures are caused by -march=native together with certain CPU features.

# emerge -1 =media-libs/openjpeg-2.3.1-r1:2/7::gentoo:

Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -mtune=native -O2 -pipe
C++             -march=native -mtune=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
Module          -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
Shared          -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
[...]
97% tests passed, 49 tests failed out of 1481

Total Test time (real) = 110.54 sec

The following tests FAILED:
	 38 - NR-C1P0-p0_04.j2k-compare2base (Failed)
	 41 - NR-C1P0-p0_05.j2k-compare2base (Failed)
	 44 - NR-C1P0-p0_06.j2k-compare2base (Failed)
	 80 - NR-C1P1-p1_02.j2k-compare2base (Failed)
	 83 - NR-C1P1-p1_03.j2k-compare2base (Failed)
	 86 - NR-C1P1-p1_04.j2k-compare2base (Failed)
	 89 - NR-C1P1-p1_05.j2k-compare2base (Failed)
	101 - NR-JP2-file2.jp2-compare2base (Failed)
	188 - NR-RIC-subsampling_1.jp2-compare2base (Failed)
	191 - NR-RIC-subsampling_2.jp2-compare2base (Failed)
	194 - NR-RIC-zoo1.jp2-compare2base (Failed)
	197 - NR-RIC-zoo2.jp2-compare2base (Failed)
	951 - NR-DEC-_00042.j2k-2-decode-md5 (Failed)
	961 - NR-DEC-buxI.j2k-9-decode-md5 (Failed)
	969 - NR-DEC-CT_Phillips_JPEG2K_Decompr_Problem.j2k-13-decode-md5 (Failed)
	979 - NR-DEC-Marrin.jp2-18-decode-md5 (Failed)
	1005 - NR-DEC-kodak_2layers_lrcp.j2c-31-decode-md5 (Failed)
	1007 - NR-DEC-kodak_2layers_lrcp.j2c-32-decode-md5 (Failed)
	1018 - NR-DEC-file409752.jp2-40-decode-md5 (Failed)
	1020 - NR-DEC-issue188_beach_64bitsbox.jp2-41-decode-md5 (Failed)
	1022 - NR-DEC-issue206_image-000.jp2-42-decode-md5 (Failed)
	1024 - NR-DEC-issue205.jp2-43-decode-md5 (Failed)
	1042 - NR-DEC-issue228.j2k-60-decode-md5 (Failed)
	1050 - NR-DEC-issue142.j2k-66-decode-md5 (Failed)
	1052 - NR-DEC-issue134.jp2-67-decode-md5 (Failed)
	1054 - NR-DEC-issue135.j2k-68-decode-md5 (Failed)
	1056 - NR-DEC-issue208.jp2-69-decode-md5 (Failed)
	1058 - NR-DEC-issue211.jp2-70-decode-md5 (Failed)
	1064 - NR-DEC-issue226.j2k-74-decode (Failed)
	1065 - NR-DEC-issue226.j2k-74-decode-md5 (Failed)
	1124 - NR-DEC-p1_04.j2k-124-decode-md5 (Failed)
	1126 - NR-DEC-p1_04.j2k-125-decode-md5 (Failed)
	1128 - NR-DEC-p1_04.j2k-126-decode-md5 (Failed)
	1130 - NR-DEC-p1_04.j2k-127-decode-md5 (Failed)
	1132 - NR-DEC-p1_04.j2k-128-decode-md5 (Failed)
	1134 - NR-DEC-p1_04.j2k-129-decode-md5 (Failed)
	1138 - NR-DEC-p1_04.j2k-131-decode-md5 (Failed)
	1152 - NR-DEC-p1_04.j2k-138-decode-md5 (Failed)
	1156 - NR-DEC-p1_04.j2k-140-decode-md5 (Failed)
	1206 - NR-DEC-p0_04.j2k-166-decode-md5 (Failed)
	1208 - NR-DEC-p0_04.j2k-167-decode-md5 (Failed)
	1210 - NR-DEC-p0_04.j2k-168-decode-md5 (Failed)
	1218 - NR-DEC-p0_04.j2k-172-decode-md5 (Failed)
	1379 - NR-DEC-issue205.jp2-253-decode-md5 (Failed)
	1381 - NR-DEC-issue236-ESYCC-CDEF.jp2-254-decode-md5 (Failed)
	1383 - NR-DEC-issue559-eci-090-CIELab.jp2-255-decode-md5 (Failed)
	1385 - NR-DEC-issue559-eci-091-CIELab.jp2-256-decode-md5 (Failed)
	1475 - NR-DEC-db11217111510058.jp2-306-decode-md5 (Failed)
	1477 - NR-DEC-tnsot_zero.jp2-307-decode-md5 (Failed)
Errors while running CTest


Reproducible: Always




# emerge --info '=media-libs/openjpeg-2.3.1-r1::gentoo'
Portage 2.3.96 (python 3.6.10-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-9.3.0, glibc-2.30-r6, 5.5.13 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.5.13-x86_64-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-gentoo-2.7
KiB Mem:    16356844 total,   7436656 free
KiB Swap:   20971516 total,  20971516 free
Timestamp of repository gentoo: Sat, 28 Mar 2020 07:30:01 +0000
Head commit of repository gentoo: a5bc0c40e167e5a47b9291cb72045699e1e00330
sh bash 5.0_p16
ld GNU ld (Gentoo 2.34 p1) 2.34.0
app-shells/bash:          5.0_p16::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.7::gentoo, 3.8.2::gentoo
dev-util/cmake:           3.17.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r6::gentoo
Repositories:

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

local
    location: /var/lib/portage-local/local
    masters: gentoo
    priority: 0

testing
    location: /var/lib/portage-local/testing
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup collision-protect 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 test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS=""
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
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"
USE="X a52 acl acpi alsa amd64 avx bzip2 cairo caps cdda cddb cdparanoia crypt cups dbus dri dts dvd fam ffmpeg fftw flac fontconfig gif gimp gmp gnutls gtk hardened iconv icu idn ipv6 jpeg lame lcms libnotify libtirpc lzma mad matroska mmap mmx mmxext mp3 mpeg ncurses networkmanager nptl ogg opengl openmp pam pcre pie png policykit ppds readline sasl sdl seccomp split-usr sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg test theora threads tiff truetype udev udisks unicode upower vaapi vorbis wayland x264 xattr xcb xinerama xml xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="i965 intel nouveau" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

media-libs/openjpeg-2.3.1-r1::gentoo was built with the following:
USE="test -doc -static-libs"
CFLAGS="-march=native -mtune=native -O2 -pipe -ffp-contract=off"


# emerge -pqv '=media-libs/openjpeg-2.3.1-r1::gentoo'
[ebuild   R   ] media-libs/openjpeg-2.3.1-r1  USE="test -doc -static-libs"
Comment 1 tka 2020-03-28 08:50:14 UTC
Created attachment 626516 [details]
build.log (failure)
Comment 2 tka 2020-03-28 09:02:10 UTC
Created attachment 626548 [details]
build.log (-ffp-contract=off -> pass)

# CFLAGS="-march=native -mtune=native -O2 -pipe -ffp-contract=off" emerge -1a =media-libs/openjpeg-2.3.1-r1:2/7::gentoo:

Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -mtune=native -O2 -pipe -ffp-contract=off
C++             -march=native -mtune=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
Module          -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
Shared          -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
[...]
99% tests passed, 2 tests failed out of 1481

Total Test time (real) = 109.76 sec

The following tests FAILED:
	1064 - NR-DEC-issue226.j2k-74-decode (Failed)
	1065 - NR-DEC-issue226.j2k-74-decode-md5 (Failed)
Errors while running CTest

 * Note: Upstream is maintaining a list of known test failures.
 * We will now compare our test results against this list and sort out any known failure.
 * Adding architecture specific failures (/var/tmp/portage/media-libs/openjpeg-2.3.1-r1/work/openjpeg-2.3.1/tools/travis-ci/knownfailures-Ubuntu14.04-gcc4.8.4-x86_64-Debug-3rdP.txt) to known failures list ...

 * Test 'NR-DEC-issue226.j2k-74-decode' is known to fail, ignoring ...
 * Test 'NR-DEC-issue226.j2k-74-decode-md5' is known to fail, ignoring ...

 * Test suite passed. No new/unknown test failure(s) found!
>>> Completed testing media-libs/openjpeg-2.3.1-r1
Comment 3 Larry the Git Cow gentoo-dev 2020-12-29 02:59:25 UTC
The bug has been closed via the following commit(s):

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

commit 77e5ad18b2cc380826ad062461b08357633889a6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-12-29 02:56:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-12-29 02:56:24 +0000

    media-libs/openjpeg: security bump to 2.4.0
    
    Bug: https://bugs.gentoo.org/675426
    Bug: https://bugs.gentoo.org/718918
    Closes: https://bugs.gentoo.org/715306
    Closes: https://bugs.gentoo.org/715422
    Closes: https://bugs.gentoo.org/715130
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openjpeg/Manifest                       |   2 +
 .../files/openjpeg-2.4.0-gnuinstalldirs.patch      | 420 +++++++++++++++++++++
 media-libs/openjpeg/openjpeg-2.4.0.ebuild          | 139 +++++++
 3 files changed, 561 insertions(+)