Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libreoffice build error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Apollo_Futurae
n00b
n00b


Joined: 17 May 2005
Posts: 18
Location: Amsterdam, Netherlands

PostPosted: Wed Jan 18, 2017 3:39 pm    Post subject: libreoffice build error Reply with quote

Trying to emerge app-office/libreoffice, either stable (version 5.2.3.3-r1) and unstable (version 5.2.4.2) gives a build error.

Hopefully relevant part of the build log:
Code:

[CXX] xmloff/source/forms/logging.cxx
S=/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/xmloff/source/forms/ $W/Dep/CxxObject/xmloff/source/forms/ && cd /var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2 &&   x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DTIMELOG -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT   -DXMLOFF_DLLIMPLEMENTATION   -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden   -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe  -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14   -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O2 -pipe -march=core-avx2  -DLIBO_INTERNAL_ONLY  -c $S/xmloff/source/forms/logging.cxx -o $W/CxxObject/xmloff/source/forms/logging.o  -I$S/xmloff/source/forms/ -I$S/xmloff/inc  -I$S/include   -I$S/config_host   -I/usr/include  -I$W/CustomTarget/officecfg/registry -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal   
[CXX] xmloff/source/forms/officeforms.cxx
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.cxx: In member function ‘void xmloff::OStackedLogging::enterContext(const sal_Char*)’:
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.cxx:29:59: error: invalid use of incomplete type ‘class rtl::Logfile’
         m_aLogger.push( new ::rtl::Logfile( _pContextName ) );
                                                           ^
In file included from /var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.cxx:20:0:
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.hxx:26:23: error: forward declaration of ‘class rtl::Logfile’
 namespace rtl { class Logfile; }
                       ^
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.cxx: In member function ‘void xmloff::OStackedLogging::leaveTopContext()’:
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.cxx:34:30: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
         delete m_aLogger.top();
                              ^
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.cxx:34:30: warning: invalid use of incomplete type ‘class rtl::Logfile’
In file included from /var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.cxx:20:0:
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.hxx:26:23: warning: forward declaration of ‘class rtl::Logfile’
 namespace rtl { class Logfile; }
                       ^
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/xmloff/source/forms/logging.cxx:34:30: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
         delete m_aLogger.top();
                              ^
/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/solenv/gbuild/LinkTarget.mk:189: recipe for target '/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/workdir/CxxObject/xmloff/source/forms/logging.o' failed
make[1]: *** [/var/tmp/portage/app-office/libreoffice-5.2.4.2/work/libreoffice-5.2.4.2/workdir/CxxObject/xmloff/source/forms/logging.o] Error 1


My emerge --info:
Code:

Portage 2.2.28 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.1.12-gentoo x86_64)
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.2
KiB Mem:    32808504 total,   7444560 free
KiB Swap:   20971516 total,  20971516 free
Timestamp of repository gentoo: Wed, 18 Jan 2017 15:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.3.5-r1::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.3::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.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::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.22-r4::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core-avx2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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="-O2 -pipe -march=core-avx2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libav libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vim-syntax vorbis widgets wxwidgets x264 xattr xcb xcomposite 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="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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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="keyboard mouse evdev wacom" KERNEL="linux" L10N="nl en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="nl nl_NL en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" SANE_BACKENDS="hpljm1005" USERLAND="GNU" VIDEO_CARDS="intel radeon" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


I couldn't find anything on bugs.gentoo.org, this forum or the web generally. Any ideas?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Jan 19, 2017 2:32 am    Post subject: Reply with quote

Libreoffice is one of those packages for which a binary exists for good reason. I recommend using libreoffice-bin instead. I've personally run into too many long emerge times resulting in failure anyway to even attempt compiling *office any more.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Apollo_Futurae
n00b
n00b


Joined: 17 May 2005
Posts: 18
Location: Amsterdam, Netherlands

PostPosted: Thu Jan 19, 2017 9:52 am    Post subject: Reply with quote

Yeah, that's a good workaround. I'll do that if I don't find a solution soonish.

Still, given that this is a stable package with default use flags, I would expect it to compile using the stable toolchain. The nature of the build failure – apparently an actual error in the source code of libreoffice, not some dependency mixup – suggests that it would fail for everyone, but I guess it compiled for someone, right?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Thu Jan 19, 2017 10:48 am    Post subject: Reply with quote

Apollo_Futurae,

Your logic is sound.
I know this doesn't help much but libreoffice 5.2.4.2 builds with gcc-5.x on amd64 and with gcc-6.3 on arm64
I don't recommend gcc-6.3 yet but gcc-5.x looks good.

If you decide to upgrade to gcc-5.x, be sure to read the news item on it. The C++ ABC changed between gcc-4 and gcc-5 so you need to rebuild all your C++ code when you switch.
This means you may not mix and match gcc-4 and gcc-5.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Apollo_Futurae
n00b
n00b


Joined: 17 May 2005
Posts: 18
Location: Amsterdam, Netherlands

PostPosted: Thu Jan 19, 2017 3:39 pm    Post subject: Reply with quote

NeddySeagoon,

Thanks for your information! Good to know that it builds with newer gccs.

For now, I've installed libreoffice-bin, as I'd like to stay on stable gcc, at least until I've gone through this round of upgrades.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum