Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540708 - app-office/calligra-2.8.7 - build gets stuck at "Generating writeodf.h" with 100% CPU usage
Summary: app-office/calligra-2.8.7 - build gets stuck at "Generating writeodf.h" with ...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-19 22:10 UTC by Enne Eziarc
Modified: 2015-03-03 18:48 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enne Eziarc 2015-02-19 22:10:57 UTC
I'm having the problem described above - this package has installed fine for me in the recent past so I'm not sure what changed this time.

So far I've tried these workarounds with no success:
- reducing CFLAGS, MAKEOPTS and disabling distcc/ccache
- Using portage instead of paludis
- depclean'ing all of dev-qt/*:4 and its dependent packages and reinstalling them from scratch
- Using slightly newer versions from the KDE overlay, in case they fixed it upstream


My system's currently stuck like this unless I Ctrl+C:

# pstree -al `pgrep emerge`
emerge -b /usr/lib/python-exec/python3.3/emerge -av calligra
  └─sandbox /usr/lib/portage/python3.3/ebuild.sh compile
      └─ebuild.sh /usr/lib/portage/python3.3/ebuild.sh compile
          └─ebuild.sh /usr/lib/portage/python3.3/ebuild.sh compile
              └─emake /usr/lib/portage/python3.3/ebuild-helpers/emake VERBOSE=1
                  └─make -j1 -l4 VERBOSE=1
                      └─make -f CMakeFiles/Makefile2 all
                          └─make -f libs/odf/writeodf/CMakeFiles/writeodf.h-target.dir/build.make libs/odf/writeodf/CMakeFiles/writeodf.h-target.dir/build
                              └─sh -c cd /var/tmp/portage/app-office/calligra-2.8.7/work/calligra-2.8.7_build/libs/odf/writeodf && /var/tmp/portage/app-office/calligra-2.8.7/work/calligra-2.8.7_build/devtools/rng2cpp/rng2cpp /var/tmp/portage/app-office/calligra-2.8.7/work/calligra-2.8.7/devtools/scripts/OpenDocument-v1.2-cs01-schema-calligra.rng /var/tmp/portage/app-office/calligra-2.8.7/work/calligra-2.8.7_build/libs/odf/writeodf
                                  └─rng2cpp /var/tmp/portage/app-office/calligra-2.8.7/work/calligra-2.8.7/devtools/scripts/OpenDocument-v1.2-cs01-schema-calligra.rng /var/tmp/portage/app-office/calligra-2.8.7/work/calligra-2.8.7_build/libs/odf/writeodf


Current `emerge --info calligra`:

Portage 2.2.17 (python 3.3.5-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.9.2, glibc-2.20-r1, 3.18.1-zen+local-170390-gc7d5e0c0d320 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.1-zen+local-170390-gc7d5e0c0d320-x86_64-AMD_Phenom-tm-_II_X4_20_Processor-with-gentoo-2.2
KiB Mem:     6101356 total,   1727480 free
KiB Swap:    3077096 total,   3077096 free
Timestamp of repository gentoo: Tue, 17 Feb 2015 00:45:01 +0000
sh dash 0.5.8.2
ld GNU gold (Gentoo 2.25 p1.0 2.25) 1.11
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.2.1 [enabled]
app-shells/bash:          4.3_p33-r1::<unknown repository>
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::<unknown repository>
dev-lang/python:          2.7.9-r2::<unknown repository>, 3.3.5-r1::gentoo
dev-util/ccache:          3.2.1-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.9::<unknown repository>
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::<unknown repository>, 2.69::<unknown repository>
sys-devel/automake:       1.11.6-r1::<unknown repository>, 1.12.6::<unknown repository>, 1.13.4::<unknown repository>, 1.14.1::<unknown repository>, 1.15::<unknown repository>
sys-devel/binutils:       2.25::<unknown repository>
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::<unknown repository>
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::<unknown repository> (virtual/os-headers)
sys-libs/glibc:           2.20-r1::gentoo
Repositories:

gentoo
    location: /var/db/repositories/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA ut2003 AdobeFlash-11.x FraunhoferFDK"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/tmp/portage-distdir/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distcc 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 webrsync-gpg"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://192.168.0.7:3142/gentoo/distfiles/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed"
MAKEOPTS="-j1 -l4"
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="amd64 bzip2 caps cli cracklib crypt cxx dri fortran iconv ipv6 mmx modules ncurses nls nptl openmp pcre readline session sse sse2 ssl tcpd unicode 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 sse sse2 3dnow 3dnowext mmxext sse3 sse4" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


`emerge -pv calligra`:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-office/calligra-2.8.7:4::gentoo  USE="eigen exif fontconfig glew lcms opengl threads truetype vc (-aqua) -attica -crypt -fftw -freetds -glib -gsf -gsl -handbook -import-filter -jpeg -jpeg2k -kdcraw -kde -kdepim -marble -mysql -nepomuk -okular -openexr -pdf (-postgres) -spacenav (-sybase) {-test} -tiff -xbase -xml" CALLIGRA_FEATURES="krita -author -braindump -flow -karbon -kexi -plan -sheets -stage -words" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB
Comment 1 Enne Eziarc 2015-03-03 18:48:55 UTC
Figured out what was wrong - using ld.gold for dev-qt/*:4 stuff generates completely broken binaries, and this was just one of the symptoms of that.

More info here: https://forums.gentoo.org/viewtopic-t-1011246-highlight-.html