Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576316 - app-office/libreoffice-5.1.0.3 build fails with undefined reference to 'ScTPValidationValue::RemoveRefDlg()' with -O3
Summary: app-office/libreoffice-5.1.0.3 build fails with undefined reference to 'ScTPV...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-03 01:59 UTC by Matt Whitlock
Modified: 2016-03-25 20:50 UTC (History)
2 users (show)

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


Attachments
build.log.gz (build.log.gz,564.54 KB, application/gzip)
2016-03-03 01:59 UTC, Matt Whitlock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2016-03-03 01:59:47 UTC
Created attachment 427256 [details]
build.log.gz

Building app-office/libreoffice-5.1.0.3 fails with errors:

/var/tmp/portage/app-office/libreoffice-5.1.0.3/work/libreoffice-5.1.0.3/workdir/CxxObject/sc/source/ui/view/reffact.o:reffact.cxx:function ScValidationDlg::Close(): error: undefined reference to 'ScTPValidationValue::RemoveRefDlg()'
/var/tmp/portage/app-office/libreoffice-5.1.0.3/work/libreoffice-5.1.0.3/workdir/CxxObject/sc/source/ui/view/reffact.o:reffact.cxx:function ScValidationDlg::dispose(): error: undefined reference to 'ScValidationDlg::RemoveRefDlg(bool)'
collect2: error: ld returned 1 exit status
/var/tmp/portage/app-office/libreoffice-5.1.0.3/work/libreoffice-5.1.0.3/sc/Library_sc.mk:10: recipe for target '/var/tmp/portage/app-office/libreoffice-5.1.0.3/work/libreoffice-5.1.0.3/instdir/program/libsclo.so' failed
make[1]: *** [/var/tmp/portage/app-office/libreoffice-5.1.0.3/work/libreoffice-5.1.0.3/instdir/program/libsclo.so] Error 1


Portage 2.2.27 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.22-r2, 4.1.15-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.15-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8166912 total,     83352 free
KiB Swap:    8388604 total,   6038352 free
Timestamp of repository gentoo: Wed, 02 Mar 2016 11:00:01 +0000
sh dash 0.5.8.2
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.3::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r2::gentoo
Repositories:

local
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: -2000

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo
    priority: -1500

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

lbry
    location: /usr/local/portage/overlays/lbry
    sync-type: git
    sync-uri: https://github.com/whitslack/lbry-gentoo-overlay.git
    masters: gentoo

bitcoin
    location: /var/lib/layman/bitcoin
    sync-type: laymansync
    sync-uri: https://gitlab.com/bitcoin/gentoo.git
    masters: gentoo
    priority: 50

fw-overlay
    location: /var/lib/layman/fw-overlay
    sync-type: laymansync
    sync-uri: https://github.com/no-hope/fw-overlay.git
    masters: gentoo
    priority: 50

jmesmon
    location: /var/lib/layman/jmesmon
    sync-type: laymansync
    sync-uri: git://github.com/jmesmon/overlay.git
    masters: gentoo jmesmon
    priority: 50

vmware
    location: /var/lib/layman/vmware
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/vmware.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/X11/xkb /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -ggdb -pipe"
DISTDIR="/usr/local/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --unordered-display --usepkg"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://mirrors.rit.edu/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/local/portage/packages"
PORTAGE_COMPRESS="xz"
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 acpi alsa amd64 berkdb branding bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib crypt cups curl cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig gdbm geoip gif git glamor gmp gstreamer gtk iconv icu ipv6 java jpeg kde kipi lame lcms libnotify libsamplerate lzma mad matroska mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses nptl nsplugin ogg opengl openmp pango pcre pdf phonon php plasma png policykit ppds qt3support qt4 quicktime readline sdl seccomp session smp spell sse sse2 ssl startup-notification subversion svg taglib tcmalloc theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vnc vorbis vpx webkit x264 xcb xcomposite xml xscreensaver xv xvid xvmc yahoo zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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 sse3 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="presenter-console presenter-minimizer" LINGUAS="en_US en" LIRC_DEVICES="mceusb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[ebuild     U ] app-office/libreoffice-5.1.0.3 [5.0.5.2] USE="branding cups dbus gstreamer gtk kde (-aqua) -bluetooth -coinmp -collada -debug -eds (-firebird) -gltf -gnome -gtk3 -java -jemalloc -libressl -mysql -odk -postgres (-telepathy) {-test} -vlc" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_4* -python3_5 (-python2_7%*)" PYTHON_TARGETS="python3_4 -python3_5 (-python2_7%*)"
Comment 1 Cănărău Constantin 2016-03-03 12:13:51 UTC
As a workaround, using -O2 instead of -O3 solved the problem.
Comment 2 Matt Whitlock 2016-03-03 21:31:32 UTC
(In reply to Cănărău Constantin from comment #1)
> As a workaround, using -O2 instead of -O3 solved the problem.

That's a shame since LibreOffice needs all the help it can get at runtime speed-wise.

But you're right: compiling with -O2 instead of -O3 did result in a completed build.
Comment 3 Cănărău Constantin 2016-03-10 11:24:58 UTC
Good news it seems:
https://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-5-1&id=a6a65ecdef3a577b537b5d9fccb9d41e585b9f14

I haven't had yet time to test it but I will recompile libreoffice tonight, I hope.
Comment 4 Russell Knighton 2016-03-10 16:53:05 UTC
I have just tried the patch from the commit mentioned by Cănărău Constantin, and can confirm success.

For anyone else that wishes to try it, just download the following: https://cgit.freedesktop.org/libreoffice/core/patch/?id=a6a65ecdef3a577b537b5d9fccb9d41e585b9f14
and save it into /etc/portage/patches.

Here's a one liner for those that wish to try it:
mkdir -p /etc/portage/patches/app-office/libreoffice-5.1.0.3 && wget https://cgit.freedesktop.org/libreoffice/core/patch/?id=a6a65ecdef3a577b537b5d9fccb9d41e585b9f14 -O /etc/portage/patches/app-office/libreoffice-5.1.0.3/sctpvalidation.patch
Comment 5 Andreas Sturmlechner gentoo-dev 2016-03-10 17:12:55 UTC
Which means it is fixed in 5.1.1.3 already.
Comment 6 Cănărău Constantin 2016-03-13 14:46:39 UTC
I confirm that patch is working fine on 5.1.0.3 and it is not required on 5.1.1.3 (hardmasked in portage).
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2016-03-25 20:50:46 UTC
(In reply to Andreas Sturmlechner from comment #5)
> Which means it is fixed in 5.1.1.3 already.