Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libreoffice-4.4.1.2 compilation repeatedly hangs [SOLVED]
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
saibot
n00b
n00b


Joined: 02 May 2006
Posts: 44
Location: nerd town

PostPosted: Fri Apr 17, 2015 1:22 am    Post subject: libreoffice-4.4.1.2 compilation repeatedly hangs [SOLVED] Reply with quote

I've tried to compile the libreoffice update to version 4.4.1.2 now several times, but it consistently freezes during compilation. Does anyone know what's going on here?

I'm not quite sure what information might be relevant, besides emerge --info:

Code:
Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4, glibc-2.20-r2, 3.18.9-gentoo x86_64)
=================================================================
System uname: Linux-3.18.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:     3997684 total,   1298500 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Fri, 17 Apr 2015 00:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.2
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.6
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /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/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=core2 -mtune=core2 -O2 -pipe"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync.ca.gentoo.org ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.UTF-8"
LC_ALL="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 ao bash-completion berkdb bluetooth branding bzip2 cairo cdda cjk cli consolekit cracklib crypt css cups cxx dbus dhcpcd djvu dri dts dvd dvdr emboss exif fam ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp glamor gnuplot gphoto2 gpm gps gtk gtk3 hal iconv icu imagemagick ipv6 javascript jpeg kpathsea lame latex lcms ldap libnotify lock mad mmx mmxext mng modules mozilla mp3 mp4 mpeg multilib musicbrainz ncurses networkmanager nls nptl nsplugin offensive ogg openal opengl openmp opus pam pango pcmcia pcre pdf perl php png policykit ppds pulseaudio python qt3support qt4 readline rss sdl session sound spell sqlite sse sse2 sse3 ssl startup-notification svg symlink tcpd thunar tiff truetype udev udisks unicode unicode3 upower usb v4l video vim-syntax vorbis wifi win32codecs wxwidgets x264 xcb xft xinerama xml xv xvid zlib zsh-completion" 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="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="keyboard mouse 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="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


Last edited by saibot on Sat Apr 18, 2015 12:33 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6500
Location: Saint Amant, Acadiana

PostPosted: Fri Apr 17, 2015 1:34 am    Post subject: Reply with quote

Define 'freezes'. The compilation freezes or the box freezes? BTW, your -march is not optimal for your CPU, why not use native?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6449
Location: Austria

PostPosted: Fri Apr 17, 2015 1:34 am    Post subject: Reply with quote

The build.log would be very relevant. If what you describe as a freeze really is a total system freeze, then it most likely would be a hardware fault (e.g. RAM).
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
saibot
n00b
n00b


Joined: 02 May 2006
Posts: 44
Location: nerd town

PostPosted: Fri Apr 17, 2015 12:53 pm    Post subject: Reply with quote

Thanks, both! By 'freeze' I did indeed mean total system freeze. The manufacturer's hardware tests at boot didn't find any issues. Taken together with the error posted below, I'm pretty sure now that it's not a hardware problem.

Jaglover wrote:
BTW, your -march is not optimal for your CPU, why not use native?

That's a great question! I changed it to native. Then I recompiled gcc and also decided to give libreoffice another try with the improved compiler options.

This time, the system didn't freeze, but the build still failed:

Code:
[..]
S=/var/tmp/portage/app-office/libreoffice-4.4.1.2/work/libreoffice-4.4.1.2 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/sd/source/ui/annotations/ $W/Dep/CxxObject/sd/source/ui/annotations/ && cd /var/tmp/portage/app-office/libreoffice-4.4.1.2/work/libreoffice-4.4.1.2 &&   x86_64-pc-linux-gnu-g++ -DCPPU_ENV=gcc3 -DLIBO_INTERNAL_ONLY -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT  -DRTL_USING   -DSD_DLLIMPLEMENTATION -DSDUI_DLL_NAME=\"libsduilo.so\"  -DSYSTEM_LIBXML  -DENABLE_DBUS  -DENABLE_SDREMOTE  -DENABLE_SDREMOTE_BLUETOOTH   -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden   -Wall -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe  -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=gnu++11   -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -march=native -mtune=native -O2 -pipe  -c $S/sd/source/ui/annotations/annotationtag.cxx -o $W/CxxObject/sd/source/ui/annotations/annotationtag.o  -I$S/sd/source/ui/annotations/  -I$S/include   -I$S/config_host  -I$S/sd/inc -I$S/sd/source/ui/inc -I$S/sd/source/ui/slidesorter/inc -I$W/SdiTarget/sd/sdi  -I$W/CustomTarget/officecfg/registry -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I/usr/include   -isystem /usr/include/libxml2    -isystem /usr/include/dbus-1.0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include     
[build CXX] sd/source/ui/annotations/annotationwindow.cxx
x86_64-pc-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
/var/tmp/portage/app-office/libreoffice-4.4.1.2/work/libreoffice-4.4.1.2/solenv/gbuild/LinkTarget.mk:189: recipe for target '/var/tmp/portage/app-office/libreoffice-4.4.1.2/work/libreoffice-4.4.1.2/workdir/CxxObject/sd/source/ui/animations/CustomAnimationPane.o' failed
make[1]: *** [/var/tmp/portage/app-office/libreoffice-4.4.1.2/work/libreoffice-4.4.1.2/workdir/CxxObject/sd/source/ui/animations/CustomAnimationPane.o] Error 4
[..]


The complete build.log is here. Should I turn this into my first bug report?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6500
Location: Saint Amant, Acadiana

PostPosted: Fri Apr 17, 2015 1:03 pm    Post subject: Reply with quote

It is OOM killer, methinks. MAKEOPTS=-j5 is too much for this compilation.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1965

PostPosted: Fri Apr 17, 2015 1:58 pm    Post subject: Reply with quote

I've had large compiles freeze due to the file system being out of inodes; df -i would be a worthwhile check.

Will
Back to top
View user's profile Send private message
saibot
n00b
n00b


Joined: 02 May 2006
Posts: 44
Location: nerd town

PostPosted: Fri Apr 17, 2015 2:07 pm    Post subject: Reply with quote

I'm currently trying again with MAKEOPTS=-j4. In my case, the inodes don't seem to be in short supply:

Code:
Filesystem       Inodes  IUsed    IFree IUse% Mounted on
/dev/sda3       1310720 683541   627179   53% /

This is well into compilation, and inode use doesn't seem to increase too much as the compilation proceeds. But let's wait and see. I'll report back here!
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 843
Location: Germany

PostPosted: Fri Apr 17, 2015 4:40 pm    Post subject: Reply with quote

I had some internal compiler errors on another machine, too. Possibly a heat problem?
My problems seem to have gone away after I fixed another issue:
When shutting down, I got a warning that lib64/rc/cache was not writable (because it did not exist). I created that folder and maybe by coincidence things seemed to work better after this.
However, I didn't find an explanation what this directory is actually for, so it probably was just a coincidence.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
saibot
n00b
n00b


Joined: 02 May 2006
Posts: 44
Location: nerd town

PostPosted: Fri Apr 17, 2015 5:00 pm    Post subject: Reply with quote

This time, the compilation lasted a bit longer, but again failed eventually with the same error message on a different source file. This is getting more and more mysterious...

Clad in Sky wrote:
Possibly a heat problem?

There were some warnings during the compilation that the CPU would be throttled down or something like that. But shouldn't the system itself make sure that the CPU doesn't overheat? Should I try a different governor?

Quote:
I got a warning that lib64/rc/cache was not writable (because it did not exist). I created that folder and maybe by coincidence things seemed to work better after this.

Thanks for sharing! But my lib64/rc/cache already exists.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6500
Location: Saint Amant, Acadiana

PostPosted: Fri Apr 17, 2015 5:56 pm    Post subject: Reply with quote

Same error, same problem. Reduce make instances or create a swap file.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
saibot
n00b
n00b


Joined: 02 May 2006
Posts: 44
Location: nerd town

PostPosted: Sat Apr 18, 2015 12:32 am    Post subject: libreoffice-4.4.1.2 compilation repeatedly hangs [SOLVED] Reply with quote

MAKEOPTS=-j2 finally did the trick, although the compilation took much longer. I don't quite understand why this made it work, but I'm happy that it did :) Thanks, Jaglover!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6449
Location: Austria

PostPosted: Sat Apr 18, 2015 5:05 pm    Post subject: Reply with quote

Impact: Less memory required, less overall system load. Of course that matters, especially with possible heat, defective memory, or out-of-memory problems.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
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