Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651234 - app-office/libreoffice-5.4.5.1 - i686-pc-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
Summary: app-office/libreoffice-5.4.5.1 - i686-pc-linux-gnu-g++: internal compiler err...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-23 08:04 UTC by Paul Bors
Modified: 2018-04-26 00:08 UTC (History)
1 user (show)

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 Paul Bors 2018-03-23 08:04:18 UTC
# MAKEOPTS="-j1" emerge -av libreoffice

$ emerge -pqv '=app-office/libreoffice-5.4.5.1::gentoo'
[ebuild  N    ] app-office/libreoffice-5.4.5.1  USE="branding cups googledrive gtk java vlc -bluetooth (-coinmp) -collada -dbus -debug -eds (-firebird) -gltf -gstreamer -gtk3 -jemalloc -kde -libressl -mysql -odk -pdfimport -postgres -quickstarter {-test}" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_5 -python2_7 -python3_4 -python3_6" PYTHON_TARGETS="python3_5 -python2_7 -python3_4 -python3_6"

$ emerge --info '=app-office/libreoffice-5.4.5.1::gentoo'
Portage 2.3.24 (python 3.5.4-final-0, default/linux/x86/17.0/systemd, gcc-6.4.0, glibc-2.25-r10, 4.9.76-gentoo-r1 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.76-gentoo-r1-i686-Intel-R-_Atom-TM-_CPU_Z530_@_1.60GHz-with-gentoo-2.4.1
KiB Mem:     1016836 total,    264620 free
KiB Swap:    1048572 total,    861028 free
Timestamp of repository gentoo: Tue, 20 Mar 2018 21:00:01 +0000
Head commit of repository gentoo: 82c47df3964af7f1266f064b3a7cf8f4f3422333
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
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"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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 acl acpi alsa berkdb bluetooth branding bzip2 cli client crypt cups cxx dri exif fortran gdbm gif gimp grub gtk iconv imlib ipv6 java javafx jpeg jpeg2k libssh2 modules ncat ncurses ndiff networkmanager nls nping nptl nse opengl openmp pam pcre png python raw readline seccomp session ssl startup-notification system-lua systemd tcpd tiff udev udisks unicode vlc x86 xattr xdg zenmap zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput 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-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Bottom of build log:
[CXX] sd/source/ui/view/drviewsk.cxx
S=/var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/sd/source/ui/view/ $W/Dep/CxxObject/sd/source/ui/view/ && cd /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1 &&    i686-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DINTEL -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86 -D_FILE_OFFSET_BITS=64 -D_PTHREADS -D_REENTRANT   -DSD_DLLIMPLEMENTATION -DSDUI_DLL_NAME=\"libsduilo.so\"  -DSYSTEM_LIBXML  -DENABLE_SDREMOTE   -fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe  -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14   -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O2 -march=i686 -pipe  -DLIBO_INTERNAL_ONLY  -c $S/sd/source/ui/view/drviewsk.cxx -o $W/CxxObject/sd/source/ui/view/drviewsk.o  -I$S/sd/source/ui/view/ -I$S/external/bluez_bluetooth/inc  -I$S/include  -I/opt/oracle-jdk-bin-1.8.0.162/include -I/opt/oracle-jdk-bin-1.8.0.162/include/linux -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    
[CXX] sd/source/ui/view/drvwshrg.cxx
S=/var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/sd/source/ui/view/ $W/Dep/CxxObject/sd/source/ui/view/ && cd /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1 &&    i686-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DINTEL -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86 -D_FILE_OFFSET_BITS=64 -D_PTHREADS -D_REENTRANT   -DSD_DLLIMPLEMENTATION -DSDUI_DLL_NAME=\"libsduilo.so\"  -DSYSTEM_LIBXML  -DENABLE_SDREMOTE   -fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe  -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14   -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O2 -march=i686 -pipe  -DLIBO_INTERNAL_ONLY  -c $S/sd/source/ui/view/drvwshrg.cxx -o $W/CxxObject/sd/source/ui/view/drvwshrg.o  -I$S/sd/source/ui/view/ -I$S/external/bluez_bluetooth/inc  -I$S/include  -I/opt/oracle-jdk-bin-1.8.0.162/include -I/opt/oracle-jdk-bin-1.8.0.162/include/linux -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    
i686-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.
make[1]: *** [/var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/solenv/gbuild/LinkTarget.mk:293: /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CxxObject/sd/source/ui/view/drvwshrg.o] Error 4
make[1]: *** Deleting file '/var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CxxObject/sd/source/ui/view/drvwshrg.o'
rm /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/count_word.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/count_word.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/char_in.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/line.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/sent.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/line.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/char.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/char_in.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/char.brk /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CustomTarget/i18npool/breakiterator/sent.txt
make[1]: Leaving directory '/var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1'
make: *** [Makefile:269: build] Error 2
 * ERROR: app-office/libreoffice-5.4.5.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 6494:  Called die
 * The specific snippet of code:
 *       make ${target} || die
 * 
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-5.4.5.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-5.4.5.1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=oracle-jdk-bin-1.8  CLASSPATH="" JAVA_HOME="/opt/oracle-jdk-bin-1.8.0.162"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info =libreoffice-5.4.5.1
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-5.4.5.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-5.4.5.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1'
 * S: '/var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1'
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-23 08:08:51 UTC
Please attach the entire build log to this bug report.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-23 08:11:31 UTC
You ran out of memory.

You have one gigabyte of memory and you want to run three make jobs concurrently. Either you install more RAM or you greatly reduce the number of make jobs, but the latter option probably will not work as g++ easily requires more than a gigabyte per process.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-23 08:24:32 UTC
(In reply to Jeroen Roovers from comment #2)
> You have one gigabyte of memory and you want to run three make jobs
> concurrently. Either you install more RAM or you greatly reduce the number
> of make jobs, but the latter option probably will not work as g++ easily
> requires more than a gigabyte per process.

Or you simply install app-office/libreoffice-bin.
Comment 4 Paul Bors 2018-03-23 13:11:45 UTC
You mean Gentoo no longer passes the in-line MAKEOPTS="-j1" to the compiler and we must edit our make.conf?

Where in the bild.log is the OOM exception? I'm sorry, but I am blind and I don't see it...
Comment 5 Paul Bors 2018-03-23 13:16:03 UTC
What does this really mean?

i686-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.
make[1]: *** [/var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/solenv/gbuild/LinkTarget.mk:293: /var/tmp/portage/app-office/libreoffice-5.4.5.1/work/libreoffice-5.4.5.1/workdir/CxxObject/sd/source/ui/view/drvwshrg.o] Error 4
Comment 6 Ben Kohler gentoo-dev 2018-04-25 20:53:52 UTC
"Killed" in this context means that the compiler didn't die of its own error, but an external killer.  99% of the time this is oom-killer, you can check dmesg to confirm that.  It could also be something like grsec.

1G mem + 1G swap is not really enough for a modern gentoo desktop, even if forcing j1.
Comment 7 Paul Bors 2018-04-25 23:40:03 UTC
Ha! Where are the system requirements for Gentoo Linux?

Beside, the OS and Gnome both compiled fine and are running fine with 1GB of RAM.

I take it the devs for Libre Office forgot how to program efficiently and looked over Micro$oft Office code too much to the point where wasting RAM became the norm LOL

Thanks for the answer guys! I'll make sure to compile Libre Office on my desktop with the 32GB of RAM and configure GCC to spit out the binary code for my laptop's architecture.

Let's close this ticket, is not on Gentoo...
Comment 8 Ben Kohler gentoo-dev 2018-04-25 23:47:28 UTC
I'm just an end-user trying to help, man
Comment 9 Paul Bors 2018-04-26 00:07:16 UTC
And your help is much appreciated. You nailed it.

Might as well learn a bit of scripting on python and start fixing some od the bugs. Open Source Code is cool like that.