Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469830 - app-office/libreoffice-3.6.6.2 build fails randomly with MAKEOPTS -j2, -j3, or -j5, builds OK with -j1
Summary: app-office/libreoffice-3.6.6.2 build fails randomly with MAKEOPTS -j2, -j3, o...
Status: RESOLVED OBSOLETE
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: 2013-05-14 12:54 UTC by Rostislav Devyatov
Modified: 2013-09-15 10:45 UTC (History)
2 users (show)

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


Attachments
-j2 attempt 1: build.log (build.log,899.01 KB, text/plain)
2013-05-14 12:54 UTC, Rostislav Devyatov
Details
-j2 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment (environment,262.38 KB, text/plain)
2013-05-14 12:56 UTC, Rostislav Devyatov
Details
-j2 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2 (emerge-info,5.65 KB, text/plain)
2013-05-14 12:57 UTC, Rostislav Devyatov
Details
-j2 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2' (emerge-pqv,452 bytes, text/plain)
2013-05-14 12:57 UTC, Rostislav Devyatov
Details
-j2 attempt 2: build.log (xzipped) (build.log.xz,224.80 KB, application/octet-stream)
2013-05-14 13:00 UTC, Rostislav Devyatov
Details
-j2 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment (environment,262.38 KB, text/plain)
2013-05-14 13:01 UTC, Rostislav Devyatov
Details
emerge --info '=app-office/libreoffice-3.6.6.2' (emerge-info,5.65 KB, text/plain)
2013-05-14 13:02 UTC, Rostislav Devyatov
Details
-j2 attemt 2:emerge --info '=app-office/libreoffice-3.6.6.2' (emerge-info,5.65 KB, text/plain)
2013-05-14 13:03 UTC, Rostislav Devyatov
Details
-j2 attempt 2: emerge -pqv '=app-office/libreoffice-3.6.6.2' (emerge-pqv,452 bytes, text/plain)
2013-05-14 13:03 UTC, Rostislav Devyatov
Details
-j3 attempt 1: build.log (xzipped) (build.log.xz,331.94 KB, application/octet-stream)
2013-05-14 13:06 UTC, Rostislav Devyatov
Details
-j3 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment (environment,262.38 KB, text/plain)
2013-05-14 13:06 UTC, Rostislav Devyatov
Details
-j3 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2' (emerge-info,5.65 KB, text/plain)
2013-05-14 13:07 UTC, Rostislav Devyatov
Details
-j3 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2' (emerge-pqv,452 bytes, text/plain)
2013-05-14 13:07 UTC, Rostislav Devyatov
Details
-j3 attempt 2: build.log (xzipped) (build.log.xz,333.11 KB, text/plain)
2013-05-14 13:09 UTC, Rostislav Devyatov
Details
-j3 attempt 2: build.log (xzipped) (build.log.xz,333.11 KB, application/octet-stream)
2013-05-14 13:10 UTC, Rostislav Devyatov
Details
-j3 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment (environment,262.38 KB, text/plain)
2013-05-14 13:11 UTC, Rostislav Devyatov
Details
-j3 attempt 2: emerge --info '=app-office/libreoffice-3.6.6.2' (emerge-info,5.65 KB, text/plain)
2013-05-14 13:12 UTC, Rostislav Devyatov
Details
-j3 attempt 2:emerge -pqv '=app-office/libreoffice-3.6.6.2' (emerge-pqv,452 bytes, text/plain)
2013-05-14 13:13 UTC, Rostislav Devyatov
Details
-j5 attempt 1: build.log (xzipped) (build.log.xz,227.47 KB, application/octet-stream)
2013-05-14 13:15 UTC, Rostislav Devyatov
Details
-j5 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment (environment,262.38 KB, text/plain)
2013-05-14 13:16 UTC, Rostislav Devyatov
Details
-j5 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2' (emerge-info,5.65 KB, text/plain)
2013-05-14 13:17 UTC, Rostislav Devyatov
Details
-j5 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2' (emerge-pqv,452 bytes, text/plain)
2013-05-14 13:18 UTC, Rostislav Devyatov
Details
-j5 attempt 2: build.log (xzipped) (build.log.xz,228.98 KB, application/octet-stream)
2013-05-14 13:24 UTC, Rostislav Devyatov
Details
-j5 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment (environment,262.38 KB, text/plain)
2013-05-14 13:26 UTC, Rostislav Devyatov
Details
-j5 attempt 2: emerge --info '=app-office/libreoffice-3.6.6.2' (emerge-info,5.65 KB, text/plain)
2013-05-14 13:26 UTC, Rostislav Devyatov
Details
-j5 attempt 2: emerge -pqv '=app-office/libreoffice-3.6.6.2' (emerge-pqv,452 bytes, text/plain)
2013-05-14 13:27 UTC, Rostislav Devyatov
Details
-j3 with disabled -march=native in libreoffice and boost: build.log (xzipped) (build.log.xz,231.68 KB, application/octet-stream)
2013-05-14 17:05 UTC, Rostislav Devyatov
Details
-j3 with disabled -march=native in libreoffice and boost: environment (environment,262.31 KB, text/plain)
2013-05-14 17:08 UTC, Rostislav Devyatov
Details
-j3 with disabled -march=native in libreoffice and boost: emerge --info '=app-office/libreoffice-3.6.6.2' (emerge-info,5.68 KB, text/plain)
2013-05-14 17:09 UTC, Rostislav Devyatov
Details
-j3 with disabled -march=native in libreoffice and boost: emerge -pqv '=app-office/libreoffice-3.6.6.2' (emerge-pqv,452 bytes, text/plain)
2013-05-14 17:09 UTC, Rostislav Devyatov
Details
-j3 with disabled -march=native in libreoffice and boost: build_error.log (build_error.log,50.36 KB, text/plain)
2013-05-14 20:41 UTC, Rostislav Devyatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rostislav Devyatov 2013-05-14 12:54:41 UTC
Created attachment 348256 [details]
-j2 attempt 1: build.log

When I try to emerge libreoffice-3.6.6.2 (the latest stable version) with MAKEOPTS="-j2", MAKEOPTS="-j3", or MAKEOPTS="-j5", it fails, and the actual place where it fails varies from time to time, even if I keep the value in makeopts unchanged (e. g. if I try to build it with MAKEOPTS="-j2" twice, the error occurs at two different points). See eaxct errors in the attachment.

When I try to build it with "-j1", it works ok for me (tried three times), however, each build process takes more than 6 hours on my machine.
Comment 1 Rostislav Devyatov 2013-05-14 12:55:44 UTC
# emerge --info
Portage 2.1.11.62 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.4.9-gentoo-gnu_build20120904 x86_64)
=================================================================
System uname: Linux-3.4.9-gentoo-gnu_build20120904-x86_64-Intel-R-_Core-TM-_i5_CPU_M_450_@_2.40GHz-with-gentoo-2.2
KiB Mem:     3906988 total,    237536 free
KiB Swap:    6291452 total,   5982312 free
Timestamp of tree: Tue, 14 May 2013 11:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            3.4.6-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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 -march=native -pipe -ggdb"
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 protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apng berkdb bluetooth bzip2 cairo cdda cli consolekit cracklib crypt cxx dbus deblob declarative device-mapper djvu dri ebook embedded extras fontconfig fortran gdbm gdu gpm iconv ipv6 jpeg kde kpathsea mmx mng modules mudflap multilib ncurses networkmanager nls nptl ogg opengl openmp pam pcre png policykit qt3support qt4 readline session spell sql sqlite sse sse2 ssl svg tcpd truetype udev unicode vorbis webkit 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" 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 ubx" INPUT_DEVICES="synaptics 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_US fr ru de en ua" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby18 ruby19" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Rostislav Devyatov 2013-05-14 12:56:48 UTC
Created attachment 348258 [details]
-j2 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Comment 3 Rostislav Devyatov 2013-05-14 12:57:25 UTC
Created attachment 348260 [details]
-j2 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2
Comment 4 Rostislav Devyatov 2013-05-14 12:57:57 UTC
Created attachment 348262 [details]
-j2 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Comment 5 Rostislav Devyatov 2013-05-14 13:00:29 UTC
Created attachment 348264 [details]
-j2 attempt 2: build.log (xzipped)
Comment 6 Rostislav Devyatov 2013-05-14 13:01:18 UTC
Created attachment 348266 [details]
-j2 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Comment 7 Rostislav Devyatov 2013-05-14 13:02:14 UTC
Created attachment 348268 [details]
emerge --info '=app-office/libreoffice-3.6.6.2'
Comment 8 Rostislav Devyatov 2013-05-14 13:03:08 UTC
Created attachment 348270 [details]
-j2 attemt 2:emerge --info '=app-office/libreoffice-3.6.6.2'
Comment 9 Rostislav Devyatov 2013-05-14 13:03:48 UTC
Created attachment 348272 [details]
-j2 attempt 2: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Comment 10 Rostislav Devyatov 2013-05-14 13:06:00 UTC
Created attachment 348274 [details]
-j3 attempt 1: build.log (xzipped)
Comment 11 Rostislav Devyatov 2013-05-14 13:06:30 UTC
Created attachment 348276 [details]
-j3 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Comment 12 Rostislav Devyatov 2013-05-14 13:07:07 UTC
Created attachment 348278 [details]
-j3 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2'
Comment 13 Rostislav Devyatov 2013-05-14 13:07:43 UTC
Created attachment 348280 [details]
-j3 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Comment 14 Rostislav Devyatov 2013-05-14 13:09:56 UTC
Created attachment 348282 [details]
-j3 attempt 2: build.log (xzipped)
Comment 15 Rostislav Devyatov 2013-05-14 13:10:35 UTC
Created attachment 348284 [details]
-j3 attempt 2: build.log (xzipped)
Comment 16 Rostislav Devyatov 2013-05-14 13:11:44 UTC
Created attachment 348286 [details]
-j3 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Comment 17 Rostislav Devyatov 2013-05-14 13:12:36 UTC
Created attachment 348288 [details]
-j3 attempt 2: emerge --info '=app-office/libreoffice-3.6.6.2'
Comment 18 Rostislav Devyatov 2013-05-14 13:13:30 UTC
Created attachment 348290 [details]
-j3 attempt 2:emerge -pqv '=app-office/libreoffice-3.6.6.2'
Comment 19 Rostislav Devyatov 2013-05-14 13:15:33 UTC
Created attachment 348292 [details]
-j5 attempt 1: build.log (xzipped)
Comment 20 Rostislav Devyatov 2013-05-14 13:16:53 UTC
Created attachment 348294 [details]
-j5 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Comment 21 Rostislav Devyatov 2013-05-14 13:17:42 UTC
Created attachment 348296 [details]
-j5 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2'
Comment 22 Rostislav Devyatov 2013-05-14 13:18:42 UTC
Created attachment 348298 [details]
-j5 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Comment 23 Rostislav Devyatov 2013-05-14 13:24:53 UTC
Created attachment 348300 [details]
-j5 attempt 2: build.log (xzipped)
Comment 24 Rostislav Devyatov 2013-05-14 13:26:02 UTC
Created attachment 348302 [details]
-j5 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Comment 25 Rostislav Devyatov 2013-05-14 13:26:35 UTC
Created attachment 348304 [details]
-j5 attempt 2: emerge --info '=app-office/libreoffice-3.6.6.2'
Comment 26 Rostislav Devyatov 2013-05-14 13:27:17 UTC
Created attachment 348306 [details]
-j5 attempt 2: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Comment 27 Rostislav Devyatov 2013-05-14 13:27:41 UTC
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
Comment 28 Roman Žilka 2013-05-14 14:21:02 UTC
Personally, I can't compile libreoffice if dev-libs/boost was built with -march=native (and I'm not sure if I could compile libreoffice with -march=native even if boost hadn't been built with -march=native). The problem is -fno-strict-overflow which is implied by -march=native on my Core i5-2520M. I see you've got some kind of i5 too.

By the way, you most likely run a kernel affected by bug 459124, among others.
Comment 29 Rostislav Devyatov 2013-05-14 17:05:46 UTC
Created attachment 348330 [details]
-j3 with disabled -march=native in libreoffice and boost: build.log (xzipped)

(In reply to comment #28)
> Personally, I can't compile libreoffice if dev-libs/boost was built with
> -march=native (and I'm not sure if I could compile libreoffice with
> -march=native even if boost hadn't been built with -march=native). The
> problem is -fno-strict-overflow which is implied by -march=native on my Core
> i5-2520M. I see you've got some kind of i5 too.

I have removed -march=native from /etc/make.conf and rebuilt dev-libs/boost .
emerge libreoffice with -j3 fails again, with a similar error (see build.log in the new attachment)
 
> By the way, you most likely run a kernel affected by bug 459124, among
> others.

Thank you for the warning. Do you think it is related to this bug?
Comment 30 Rostislav Devyatov 2013-05-14 17:08:32 UTC
Created attachment 348332 [details]
-j3 with disabled -march=native in libreoffice and boost: environment
Comment 31 Rostislav Devyatov 2013-05-14 17:09:23 UTC
Created attachment 348334 [details]
-j3 with disabled -march=native in libreoffice and boost: emerge --info '=app-office/libreoffice-3.6.6.2'
Comment 32 Rostislav Devyatov 2013-05-14 17:09:57 UTC
Created attachment 348336 [details]
-j3 with disabled -march=native in libreoffice and boost: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Comment 33 Roman Žilka 2013-05-14 17:10:24 UTC
(In reply to comment #29)
> > By the way, you most likely run a kernel affected by bug 459124, among
> > others.
> 
> Thank you for the warning. Do you think it is related to this bug?

No, it's an unrelated security issue.
Comment 34 Roman Žilka 2013-05-14 19:37:08 UTC
Hmm, I wonder what's in build_error.log when the compilation crashes.
Comment 35 Rostislav Devyatov 2013-05-14 20:41:04 UTC
Created attachment 348352 [details]
-j3 with disabled -march=native in libreoffice and boost: build_error.log

Sorry, I didn't notice that build.log refers to build_error.log, and I didn't include it in my report. I am including it now  (for the last try). However, the error present in this build_error.log repeats the compiler error that can be found in build.log as well, so I expect this also happened every time. You can find these errors in build.log files by searching for "error:".
Comment 36 Tomáš Chvátal (RETIRED) gentoo-dev 2013-05-15 08:16:43 UTC
The error is not or at least should not be paralel build related as it is always the same:

[ build CXX ] codemaker/source/codemaker/global.cxx
In member function ‘typename rtl::internal::ConstCharArrayDetector<T, int>::Type rtl::OUString::indexOf(T&, sal_Int32) const’:
cc1plus: error: expected primary-expression before ‘=’ token
In file included from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/osl/file.hxx:38:0,
                 from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/codemaker/inc/codemaker/global.hxx:38,
                 from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/codemaker/inc/codemaker/exceptiontree.hxx:32,
                 from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/codemaker/source/codemaker/exceptiontree.cxx:30:
/var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/rtl/ustring.hxx:1153:47: error: expected primary-expression before ‘;’ token
[ build LNK ] Executable/idlc
make[2]: *** [/var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/workdir/unxlngx6.pro/CxxObject/codemaker/source/codemaker/exceptiontree.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Comment 37 Rostislav Devyatov 2013-05-15 16:27:08 UTC
No, this error occured only in the first attempt. In the second attempt, the errors were different despite they were in the same files:

In member function ‘typename rtl::internal::ConstCharArrayDetector<T, bool>::Type rtl::OUString::equalsIgnoreAsciiCase(T&) const’:
cc1plus: error: expected primary-expression before ‘=’ token
In file included from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/registry/registry.hxx:34:0,
                 from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/rdbmaker/inc/codemaker/registry.hxx:34,
                 from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/rdbmaker/source/rdbmaker/specialtypemanager.hxx:32,
                 from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/rdbmaker/source/rdbmaker/specialtypemanager.cxx:31:
/var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/rtl/ustring.hxx:542:41: error: ‘ConstCharArrayDetector’ was not declared in this scope
/var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/rtl/ustring.hxx:542:41: note: suggested alternative:
/var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/rtl/stringutils.hxx:115:8: note:   ‘rtl::internal::ConstCharArrayDetector’
/var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/rtl/ustring.hxx:542:66: error: expected primary-expression before ‘,’ token
/var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/rtl/ustring.hxx:542:68: error: expected primary-expression before ‘void’
/var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/solver/unxlngx6.pro/inc/rtl/ustring.hxx:542:68: error: expected ‘)’ before ‘void’

and also there was this error that did not occur previously:

Compiling: bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
Compiling: bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx
cc1plus: error: expected primary-expression before '=' token
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/cwctype:52:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/locale_facets.h:41,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/basic_ios.h:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/ios:45,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/ostream:40,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/iterator:64,
                 from /usr/include/boost/detail/iterator.hpp:54,
                 from /usr/include/boost/iterator/iterator_categories.hpp:10,
                 from /usr/include/boost/unordered/detail/util.hpp:16,
                 from /usr/include/boost/unordered/detail/buckets.hpp:14,
                 from /usr/include/boost/unordered/detail/table.hpp:10,
                 from /usr/include/boost/unordered/detail/equivalent.hpp:14,
                 from /usr/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/include/boost/unordered_map.hpp:16,
                 from /var/tmp/portage/app-office/libreoffice-3.6.6.2/work/libreoffice-core-3.6.6.2/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx:39:
/usr/include/wctype.h:90:15: error: expected primary-expression before ')' token

In the subsequent logs, the errors are in totally different locations.
Comment 38 Roman Žilka 2013-05-15 17:13:13 UTC
Does your system behave OK otherwise? No signs of RAM failure (random system lock-ups, random app crashes)? If yes, try memtest86+. Besides that, if you really have time, you can try some general desperate things (everything without -march=native for LO and boost).

* Swapoff-ing all swaps and compiling LO with PORTAGE_TMPDIR=/a/completely/different/physical/disk.

* quickpkg-ing the current LO, then unmerging it, then emerging LO. If it fails again, restoring the old LO from the tbz2.

* Changing USE="-cups -dbus -kde" LIBREOFFICE_EXTENSIONS="-*" FEATURES="userpriv usersandbox", C(XX)FLAGS without -ggdb. On my arch-stable amd64 system LO compiles with this setup with "-j4". If it does for you too, you can then further isolate the culprit.
Comment 39 Rostislav Devyatov 2013-05-16 12:27:33 UTC
memtest86+ shows no errors. I will try the other things you suggested later.
Comment 40 Tomáš Chvátal (RETIRED) gentoo-dev 2013-09-15 10:45:24 UTC
The 3.6 is out of the tree and the 4.0 should not have this kind of issues.
Please open new bug if you have this problem on 4.0 or 4.1.