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.
# 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
Created attachment 348258 [details] -j2 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Created attachment 348260 [details] -j2 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2
Created attachment 348262 [details] -j2 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Created attachment 348264 [details] -j2 attempt 2: build.log (xzipped)
Created attachment 348266 [details] -j2 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Created attachment 348268 [details] emerge --info '=app-office/libreoffice-3.6.6.2'
Created attachment 348270 [details] -j2 attemt 2:emerge --info '=app-office/libreoffice-3.6.6.2'
Created attachment 348272 [details] -j2 attempt 2: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Created attachment 348274 [details] -j3 attempt 1: build.log (xzipped)
Created attachment 348276 [details] -j3 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Created attachment 348278 [details] -j3 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2'
Created attachment 348280 [details] -j3 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Created attachment 348282 [details] -j3 attempt 2: build.log (xzipped)
Created attachment 348284 [details] -j3 attempt 2: build.log (xzipped)
Created attachment 348286 [details] -j3 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Created attachment 348288 [details] -j3 attempt 2: emerge --info '=app-office/libreoffice-3.6.6.2'
Created attachment 348290 [details] -j3 attempt 2:emerge -pqv '=app-office/libreoffice-3.6.6.2'
Created attachment 348292 [details] -j5 attempt 1: build.log (xzipped)
Created attachment 348294 [details] -j5 attempt 1: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Created attachment 348296 [details] -j5 attempt 1: emerge --info '=app-office/libreoffice-3.6.6.2'
Created attachment 348298 [details] -j5 attempt 1: emerge -pqv '=app-office/libreoffice-3.6.6.2'
Created attachment 348300 [details] -j5 attempt 2: build.log (xzipped)
Created attachment 348302 [details] -j5 attempt 2: /var/tmp/portage/app-office/libreoffice-3.6.6.2/temp/environment
Created attachment 348304 [details] -j5 attempt 2: emerge --info '=app-office/libreoffice-3.6.6.2'
Created attachment 348306 [details] -j5 attempt 2: emerge -pqv '=app-office/libreoffice-3.6.6.2'
!!! 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=""
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.
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?
Created attachment 348332 [details] -j3 with disabled -march=native in libreoffice and boost: environment
Created attachment 348334 [details] -j3 with disabled -march=native in libreoffice and boost: emerge --info '=app-office/libreoffice-3.6.6.2'
Created attachment 348336 [details] -j3 with disabled -march=native in libreoffice and boost: emerge -pqv '=app-office/libreoffice-3.6.6.2'
(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.
Hmm, I wonder what's in build_error.log when the compilation crashes.
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:".
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....
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.
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.
memtest86+ shows no errors. I will try the other things you suggested later.
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.