Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548460 - app-office/libreoffice-4.4.1.2 build failure w/ FEATURES=test: emfplus.cxx:89:Test::testFdo77229 equality assertion failed
Summary: app-office/libreoffice-4.4.1.2 build failure w/ FEATURES=test: emfplus.cxx:89...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 622838 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-03 08:21 UTC by Markus Lischka
Modified: 2020-11-26 23:23 UTC (History)
4 users (show)

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


Attachments
Build log for libreoffice-4.4.1.2 (libreoffice-4.4.1.2_build.log.gz,634.49 KB, application/gzip)
2015-05-03 08:21 UTC, Markus Lischka
Details
Build log for libreoffice-4.4.2.2 (libreoffice-4.4.2.2_build.log.gz,636.88 KB, application/gzip)
2015-05-03 08:21 UTC, Markus Lischka
Details
Build log for libreoffice-4.4.3.2 (build.log.gz,631.82 KB, application/gzip)
2015-05-27 20:41 UTC, Markus Lischka
Details
Build log for libreoffice-4.4.4.3 (compressed) (app-office:libreoffice-4.4.4.3:20150731-160318.log.gz,623.18 KB, text/plain)
2015-07-31 23:02 UTC, Jonathan Lovelace
Details
Build log for libreoffice-4.4.5.2 (xz compressed) (build.log.xz,434.32 KB, application/x-xz)
2015-08-08 04:11 UTC, Adam Feldman
Details
log file showing failing tests in compile phase (compressed) (app-office:libreoffice-5.0.5.2:20160401-002153.log.bz2,463.90 KB, application/x-bzip)
2016-04-01 22:46 UTC, Jonathan Lovelace
Details
Patch to unset DSIPLAY (libreoffice-DISPLAY.patch,286 bytes, patch)
2016-05-07 15:33 UTC, gentoo_usr
Details | Diff
build log for 5.1.4.2 showing continued failing tests in compile phase (app-office:libreoffice-5.1.4.2:20160909-170012.log.bz2,472.48 KB, application/x-bzip)
2016-09-09 21:56 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Lischka 2015-05-03 08:21:27 UTC
Created attachment 402494 [details]
Build log for libreoffice-4.4.1.2

Compiling libreoffice-4.4.1.2 fails with the following error when FEATURES="test" is enabled:

unknown:0:Test::testFdo77229
An uncaught exception of type com.sun.star.uno.RuntimeException
- PresenterCanvas: invalid number of arguments

##Failure Location unknown## : Error
Test name: Test::testFdo77229
An uncaught exception of type com.sun.star.uno.RuntimeException
- PresenterCanvas: invalid number of arguments

Failures !!!
Run: 1   Failure total: 1   Failures: 0   Errors: 1

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export CPPUNITTRACE="gdb --args"    # for interactive debugging on Linux
export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive debugging in Visual Studio
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_cppcanvas_emfplus

...

make: *** [build] Error 2
 * ERROR: app-office/libreoffice-4.4.1.2::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 7326:  Called die
 * The specific snippet of code:
 *       make ${target} || die
 * 
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-4.4.1.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-4.4.1.2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.5.3"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info =libreoffice-4.4.1.2


By emerging libreoffice with USE=-test, compilation and installation succeeds. The same problem occurs with the current ebuild for libreoffice-4.4.2.2. Full build logs for both libreoffice-4.4.1.2 and libreoffice-4.4.2.2 are attached.


Output of emerge --info:

Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r2, 3.18.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.11-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     8141604 total,    171016 free
KiB Swap:   16777212 total,  16715724 free
Timestamp of repository gentoo: Thu, 30 Apr 2015 19:45:01 +0000
sh bash 4.2_p53
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/cdlabelgen /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/dconf /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=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.halifax.rwth-aachen.de/gentoo http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -l3"
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"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emacs emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gphoto2 gpm gtk iconv ipv6 java java6 jpeg kde kipi lame lcms libnotify lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline samba scanner sdl semantic-desktop session smp spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg syslog tcpd theora tiff truetype udev udisks unicode upower usb vaapi vorbis wmf wxwidgets x264 xattr xcb xcomposite xft xinerama xml xscreensaver xv xvid 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="alias auth_basic authn_default authn_file authz_default authz_groupfile authz_host authz_user autoindex dav dav_fs deflate dir env filter headers include log_config mime negotiation rewrite setenvif status" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" 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" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer" LINGUAS="de_DE de en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="test" USERLAND="GNU" VIDEO_CARDS="intel 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

app-office/libreoffice-4.4.1.2::gentoo was built with the following:
USE="branding cups dbus gtk java kde mysql (-aqua) -bluetooth (-coinmp) -collada -debug -eds (-firebird) -gltf -gnome -gstreamer -gtk3 -jemalloc -odk -postgres -telepathy -test -vlc" ABI_X86="64" LIBREOFFICE_EXTENSIONS="nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_3 -python3_4"
Comment 1 Markus Lischka 2015-05-03 08:21:56 UTC
Created attachment 402500 [details]
Build log for libreoffice-4.4.2.2
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2015-05-23 20:43:17 UTC
Do you still have this problem with 4.4.3 ?
Comment 3 Markus Lischka 2015-05-27 20:41:29 UTC
Created attachment 404104 [details]
Build log for libreoffice-4.4.3.2

The problem is still reproduceable with libreoffice-4.4.3.2, see attached build log!
Comment 4 Jonathan Lovelace 2015-07-31 23:02:21 UTC
Created attachment 408078 [details]
Build log for libreoffice-4.4.4.3 (compressed)

I also see these failures in the compile phase for 4.4.3.2 and for the recently-stabilized 4.4.4.3 (see the attached build log for the latter). My emerge --info:

Portage 2.2.20 (python 2.7.7-final-0, hardened/linux/amd64, gcc-4.8.4, glibc-2.17, 4.0.8-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.8-hardened-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:     8073200 total,   1546340 free
KiB Swap:   11718652 total,  11408680 free
Timestamp of repository gentoo: Thu, 30 Jul 2015 00:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.7::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.17::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://myrriddium/gentoo-portage
    priority: -1000

localoverlay
    location: /usr/local/portage
    masters: gentoo lovelace
    priority: 0

lovelace
    location: /usr/portage/local/layman/lovelace
    masters: gentoo

luman
    location: /usr/portage/local/layman/luman
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/luman.git
    masters: gentoo

science
    location: /usr/portage/local/layman/science
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo

steam-overlay
    location: /usr/portage/local/layman/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo

sunrise
    location: /usr/portage/local/layman/sunrise
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sunrise-reviewed.git
    masters: gentoo

Installed sets: @archivers, @backup-options, @capitol-oldkernels, @classes, @devel, @dicts, @doc-conv, @docs, @emulation, @fonts, @looked-interesting, @maintenance, @ocr, @office, @sp-devel
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mtune=generic"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="${CONFIG_PROTECT} /etc /etc/idea/conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /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=core2 -mtune=generic"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe -march=core2 -mtune=generic"
FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe -march=core2 -mtune=generic"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -l5"
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"
USE="acpi alsa amd64 bash-completion berkdb bzip2 cddb cli cracklib crypt cxx dri gdbm hardened iconv ipv6 java java5 java6 jpeg justify libnotify libsecret lm_sensors mmx mmxext modules multilib ncurses nls nptl nvidia openmp pam pax_kernel pcre pie png readline session sse sse2 sse4_1 sse4_2 ssl ssp ssse3 startup-notification tcpd theora truetype unicode urandom xattr xcomposite xdg xft xtpax xvmc 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="sheets words plan kexi braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport wiki-publisher" LINGUAS="en en_US" NETBEANS_MODULES="harness ide java nb javafx profile" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel fbdev i915" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

app-office/libreoffice-4.4.4.3::gentoo was built with the following:
USE="branding gtk java test (-aqua) -bluetooth (-coinmp) -collada -cups -dbus -debug -eds (-firebird) -gltf -gnome -gstreamer -gtk3 -jemalloc -kde -mysql -odk -postgres -telepathy -vlc" ABI_X86="64" LIBREOFFICE_EXTENSIONS="wiki-publisher -nlpsolver -scripting-beanshell -scripting-javascript" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_3 -python3_4"
Comment 5 Adam Feldman gentoo-dev 2015-08-08 04:11:50 UTC
Created attachment 408510 [details]
Build log for libreoffice-4.4.5.2 (xz compressed)

Occurs for me in 4.4.5.2 (xz compressed)
Comment 6 Jonathan Lovelace 2016-04-01 22:46:52 UTC
Created attachment 429460 [details]
log file showing failing tests in compile phase (compressed)

I'm continuing to see the app-office/libreoffice build try to run tests, and fail because those tests fail, in the compile phase for every version that's been marked stable up through version 5.0.5.2, though I'm seeing it failing with slightly different uncaught exceptions. (I haven't tried 5.1.1.3 yet.) Most recently, I tried (as the error message suggests) running with DEBUGCPPUNIT=TRUE in the environment; I attach the build log of that run.

Current emerge --info:
Portage 2.2.26 (python 2.7.10-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.21-r2, 4.3.3-hardened-r4 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.3-hardened-r4-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:     8072800 total,    506108 free
KiB Swap:   11718652 total,  10516564 free
Timestamp of repository gentoo: Thu, 31 Mar 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://myrriddium.local/gentoo-portage
    priority: -1000

dlang
    location: /var/lib/layman/dlang
    sync-type: git
    sync-uri: https://github.com/gentoo/dlang.git
    masters: gentoo

eclipse
    location: /var/lib/layman/eclipse-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo/eclipse-overlay.git
    masters: gentoo

localoverlay
    location: /usr/local/portage
    masters: gentoo lovelace
    priority: 0

lovelace
    location: /var/lib/layman/lovelace
    masters: gentoo

luman
    location: /var/lib/layman/luman
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/luman.git
    masters: gentoo

science
    location: /var/lib/layman/science
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo

sunrise
    location: /var/lib/layman/sunrise
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sunrise-reviewed.git
    masters: gentoo

Installed sets: @archivers, @backup-options, @classes, @devel, @dicts, @doc-conv, @docs, @emulation, @fonts, @kernels, @looked-interesting, @maintenance, @ocr, @office, @sp-devel
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mtune=generic -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="${CONFIG_PROTECT} /etc /etc/idea/conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /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=core2 -mtune=generic -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe -march=core2 -mtune=generic -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe -march=core2 -mtune=generic -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -l5"
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"
USE="acpi alsa amd64 bash-completion berkdb bzip2 cddb cli cracklib crypt cxx dri gdbm hardened iconv ipv6 java java5 java6 jpeg justify libnotify libsecret lm_sensors mmx mmxext modules multilib ncurses nls nptl ogg openmp pam pax_kernel pcre pie png readline seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification tcpd theora truetype unicode urandom vorbis xattr xcomposite xdg xft xtpax xvmc 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="sheets words plan kexi braindump flow" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="en en_US" NETBEANS_MODULES="harness ide java nb javafx profile" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel fbdev i915" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 7 gentoo_usr 2016-05-07 15:33:38 UTC
Created attachment 433528 [details, diff]
Patch to unset DSIPLAY

Same happened to me. I've done some digging and found this[0] bug report on
Debian.  The solution suggested in message 30 is to unset the DISPLAY variable
for the build, and indeed that did the trick.

Attached you find a patch which unsets DISPLAY in the ebuild.
The diff is made against the latest stable ebuild (libreoffice-5.0.5.2.ebuild)
but besides having to be moved some lines up or down the patch also applies
to all other ebuilds in the tree.

I followed the dev manuel[1] and placed the unset in pkg_setup() though this 
seems not to be consensus: other ebuilds place that kind of unset inside
src_compile(), src_configure(), src_prepare() or src_test(). Feel free to
place it wherever you seem fit it best. 

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819530
[1] https://devmanual.gentoo.org/general-concepts/user-environment/index.html

--- a/libreoffice-5.0.5.2.ebuild        2016-05-07 17:10:30.843600132 +0200
+++ b/libreoffice-5.0.5.2.ebuild        2016-05-07 17:13:22.847607908 +0200
@@ -298,6 +298,7 @@
 }

 pkg_setup() {
+       unset DISPLAY # bug #548460
        java-pkg-opt-2_pkg_setup
        kde4-base_pkg_setup
        python-single-r1_pkg_setup
Comment 8 gentoo_usr 2016-09-05 15:35:00 UTC
libreoffice-5.1.2.2 and libreoffice-5.1.4.2 suffer from the same failure.
Unsetting DISPLAY also solves the problem in these cases.
Comment 9 Jonathan Lovelace 2016-09-09 21:56:59 UTC
Created attachment 445342 [details]
build log for 5.1.4.2 showing continued failing tests in compile phase

I have tried adding an "unset DISPLAY" command (via /etc/portage/env) in the src_compile() and src_test() phases, and today tried adding an unconditional "unset DISPLAY' in /etc/portage/env/app-office/libreoffice, but even with those measures it still ran the tests in src_compile(), failed them, and aborted the build. I attach the (compressed) build log of that run.
Comment 10 gentoo_usr 2016-09-11 06:23:02 UTC
@Jonathan Lovelace

Your failure is a different one as in the original bug description.
The test case which fails for you is "CppunitTest_dbaccess_hsqldb_test".
The original failing test (those for which unset DISPLAY works for me) is "CppunitTest_cppcanvas_emfplus".

Please open a separate bug report for your failure. Thx.
Comment 11 Andreas Sturmlechner gentoo-dev 2017-12-05 18:55:23 UTC
*** Bug 622838 has been marked as a duplicate of this bug. ***
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2020-11-26 23:23:21 UTC
Please file a new bug if things still fail with current versions.