While trying to build libreoffice from source I get a segfault during the build process which causes it to fail. I've tried with MAKEOPT=-j1 but I still get the same error. register component './cppobj.uno.so' in registry 'uno_services.rdb' successful! register component './constructors.uno.so' in registry 'uno_services.rdb' successful! : && LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/testtools/unxlngx6.pro/lib:/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/lib /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/bin/regcomp -register -br ../../unxlngx6.pro/lib/uno_types.rdb -r ../../unxlngx6.pro/lib/uno_services.rdb \ -c javaloader.uno.so -c javavm.uno.so javaloader.uno.so javavm.uno.so register component 'javaloader.uno.so' in registry '../../unxlngx6.pro/lib/uno_services.rdb' successful! register component 'javavm.uno.so' in registry '../../unxlngx6.pro/lib/uno_services.rdb' successful! : && LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/testtools/unxlngx6.pro/lib:/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/lib /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/bin/regcomp -register -br ../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb -r ../../unxlngx6.pro/lib/uno_services.rdb -c \ file:///var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar \ -env:URE_INTERNAL_JAVA_DIR=file:///var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/bin using loader com.sun.star.loader.Java2 file:///var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar register component 'file:///var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar' in registry '../../unxlngx6.pro/lib/uno_services.rdb' successful! cd ../../unxlngx6.pro/lib && : && LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/lib /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/bin/uno \ -ro uno_services.rdb -ro uno_types.rdb \ -s com.sun.star.test.bridge.BridgeTest -- \ com.sun.star.test.bridge.CppTestObject /bin/bash: line 1: 22395 Segmentation fault LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/lib /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/solver/330/unxlngx6.pro/bin/uno -ro uno_services.rdb -ro uno_types.rdb -s com.sun.star.test.bridge.BridgeTest -- com.sun.star.test.bridge.CppTestObject dmake: Error code 139, while making 'runtest' ----------------------------------------------------------------------- Oh dear - something failed during the build - sorry ! For more help with debugging build errors, please see the section in: http://wiki.documentfoundation.org/Development it seems that the error is inside 'testtools', please re-run build inside this module to isolate the error and/or test your fix: ----------------------------------------------------------------------- /bin/bash cd /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2 source ./LinuxX86-64Env.Set.sh cd testtools build when the problem is isolated and fixed exit and re-run 'make' from the top-level sometimes (sadly) it is necessary to rm -Rf unxlngx6.pro in a module. make: *** [stamp/build] Error 1 * ERROR: app-office/libreoffice-3.3.1 failed (compile phase): * Build failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 8488: Called die * The specific snippet of code: * make || die "Build failed" * * If you need support, post the output of 'emerge --info =app-office/libreoffice-3.3.1', * the complete build log and the output of 'emerge -pqv =app-office/libreoffice-3.3.1'. !!! When you file a bug report, please include the following information: GENTOO_VM=icedtea6-bin CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.9.7" JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="" and of course, the output of emerge --info * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-3.3.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-3.3.1/temp/environment'. * S: '/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2' Reproducible: Always Steps to Reproduce: 1. emerge libreoffice Portage 2.1.9.41 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo x86_64) ================================================================= System uname: Linux-2.6.37-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 25 Feb 2011 05:30:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -mpclmul -march=core2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -mpclmul -march=core2" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j16" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi aim alsa amd64 apm applet avahi bash-completion berkdb bluetooth bluray branding bzip2 cairo caps cdda cddb cdio cli consolekit cracklib crypt cuda cups cxx daap dbus device-mapper dga dirac djvu dri dts dv dvb dvd dvdnav dvdr eds emboss encode evo exif faac faad fam fat ffmpeg firefox flac fontconfig foomaticdb fortran ftp gconf gcrypt gd gdbm gdu geoip gif gimp glut gmp gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphviz gsm gstreamer gtk guile gzip hddtemp iconv id3tag idn ieee1394 imagemagick imap imlib ipv6 jabber java java6 javascript jingle joystick jpeg jpeg2k kate kerberos kqemu kvm lame latex lcms ldap libass libnotify live lm_sensors loop-aes lzma lzo mad matroksa md5sum mikmod mime mmap mmx mmxext mng modules mozilla mp3 mp4 mpeg mpeg123 mplayer mtp mudflap multilib nautilus ncurses network networking nfs nls nntp nocd nptl nptlonly nsplugin numa offensive ogg openal opencl openexr opengl openmp oscar osdmenu pam pango pcre pdf perl png policykit posix ppds pppd pulseaudio python qemu qt3support quicktime rar raw readline rtc rtmp rtsp schroedinger sdl sdl-image seamonkey session shine smp sound sox speex spell sqlite sse sse2 sse3 ssl startup-notification stream subversion svg sysfs syslog tcpd templates theora threads tiff truetype udev unicode upnp usb vdpau videos vim-syntax virt-network vorbis vpx wavpack wmf x264 xattr xcb xcomposite xml xorg xosd xpm xscreensaver xulrunner xv xvid xvmc zlib" 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="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" 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="evdev mouse keyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 263767 [details] Build log
Please don't mark a libreoffice bug as "critical".
Not taking, try to build with generic CFLAGS before reporting (as the ebuild advices you to do)
Created attachment 274445 [details] build log, same problem, generic CFLAGS
I guess my CFLAGS are generic enough to reopen. Bug is perfectly reproducible, I tried a few times with gcc-4.4 and gcc-4.5 and different useflags. porto ~ # emerge --info Portage 2.1.9.49 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.12.2-r0, 2.6.38-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.38-gentoo-r5-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.0.2 Timestamp of tree: Sat, 21 May 2011 19:30:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs compress-build-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.utf8@euro" LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu" LINGUAS="de en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/kde /usr/local/portage/dilfridge" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="64bit X a52 aac acpi alsa amd64 bash-completion berkdb binfilter bluetooth branding bzip2 cairo cdparanoia cdr cli compat consolekit cracklib crypt css cups curl cvs cxx dbus declarative dri dts dvd dvdr dvipdfm encode exif extra fam firefox flac fortran gcj gd gdbm gdu gif git gpm graphics gtk hdaps iconv java javascript jpeg kde kpathsea latex3 lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd publishers python qt3support qt4 readline science sdl semantic-desktop session spell sql sqlite sse sse2 sse3 sse4 sse4a ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb v4l2 vorbis webkit x264 xcb xml xorg xulrunner xv xvid zlib" 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="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="braindump flow karbon kexi kpresenter krita tables words" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel nvidia vesa" 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 porto ~ #
Same with libreoffice-3.3.2. /bin/bash: line 1: 25657 Segmentation fault LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/var/tmp/portage/app-office/libreoffi ce-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/lib /var/tmp/portage/app-office/libreoffice-3.3.2/ work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/bin/uno -ro uno_services.rdb -ro uno_types.rdb -s com.sun.s tar.test.bridge.BridgeTest -- com.sun.star.test.bridge.CppTestObject dmake: Error code 139, while making 'runtest'
The backtrace is not really that informative: Core was generated by `/var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/bu'. Program terminated with signal 11, Segmentation fault. #0 0x00002aae5b195b02 in osl_incrementInterlockedCount () from /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/lib/libuno_sal.so.3 (gdb) bt #0 0x00002aae5b195b02 in osl_incrementInterlockedCount () from /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/lib/libuno_sal.so.3 #1 0x00002aae5b5783cf in uno_type_sequence_assign () from /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/lib/libuno_cppu.so.3 #2 0x00002aae5da90b13 in ?? () #3 0x0000000000000000 in ?? () (gdb) GENTOO_VM=icedtea6-bin CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.9.7" JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="" porto ~ # emerge --info =app-office/libreoffice-3.3.2 Portage 2.1.9.49 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.12.2-r0, 2.6.38-gentoo-r5 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.38-gentoo-r5-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.0.2 Timestamp of tree: Tue, 24 May 2011 18:30:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs compress-build-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.utf8@euro" LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu" LINGUAS="de en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/kde /usr/local/portage/dilfridge" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="64bit X a52 aac acpi alsa amd64 bash-completion berkdb binfilter bluetooth branding bzip2 cairo cdparanoia cdr cli compat consolekit cracklib crypt css cups curl cvs cxx dbus declarative dri dts dvd dvdr dvipdfm encode exif extra fam ffmpeg firefox flac fortran gcj gd gdbm gdu gif git gpm graphics gstreamer gtk hdaps iconv java javascript jpeg kde kpathsea lame latex3 lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pango pcre pdf perl png policykit ppds pppd publishers python qt3support qt4 readline science sdl semantic-desktop session spell sql sqlite sse sse2 sse3 sse4 sse4a ssl startup-notification svg sysfs tcpd theora tiff truetype udev unicode usb v4l2 vorbis webkit x264 xcb xml xorg xulrunner xv xvid zlib" 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="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="braindump flow karbon kexi kpresenter krita tables words" 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="keyboard mouse evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel nvidia vesa" 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 porto ~ # emerge -pqv =app-office/libreoffice-3.3.2 [ebuild N ] app-office/libreoffice-3.3.2 USE="bash-completion binfilter cups dbus gstreamer gtk java kde ldap nsplugin opengl (-aqua) -custom-cflags -debug -eds -gnome (-kdeenablefinal) -odk -templates" LINGUAS="de en -af -ar -as -ast -be_BY -bg -bn -bo -br -brx -bs -ca -ca_XV -cs -cy -da -dgo -dz -el -en_GB -en_US -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gd -gl -gu -he -hi -hr -hu -id -is -it -ja -ka -kk -km -kn -ko -kok -ks -ku -ky -lo -lt -lv -mai -mk -ml -mn -mni -mr -ms -my -nb -ne -nl -nn -nr -ns -oc -om -or -pa_IN -pap -pl -ps -pt -pt_BR -ro -ru -rw -sa_IN -sat -sd -sh -si -sk -sl -sq -sr -ss -st -sv -sw_TZ -ta -te -tg -th -ti -tn -tr -ts -ug -uk -uz -ve -vi -xh -zh_CN -zh_TW -zu" porto ~ #
Created attachment 274659 [details] build log, same problem, generic CFLAGS, LDFLAGS="-j1", libreoffice-3.3.2
I am now having this problem with a new Intel Core i7. Perhaps it is a hardware-related upstream bug? My other 2 systems, an AMD Athlon 64 x2 and an Intel Core 2 Duo do not have this problem with very similar kernel configurations and USE flags. cd ../../unxlngx6.pro/lib && : && LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/lib /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/bin/uno \ -ro uno_services.rdb -ro uno_types.rdb \ -s com.sun.star.test.bridge.BridgeTest -- \ com.sun.star.test.bridge.CppTestObject /bin/bash: line 1: 17329 Segmentation fault LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/lib /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/solver/330/unxlngx6.pro/bin/uno -ro uno_services.rdb -ro uno_types.rdb -s com.sun.star.test.bridge.BridgeTest -- com.sun.star.test.bridge.CppTestObject dmake: Error code 139, while making 'runtest' blee@supra ~ $ emerge --info Portage 2.1.9.50 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.39-gentoo x86_64) ================================================================= System uname: Linux-2.6.39-gentoo-x86_64-Intel-R-_Core-TM-_i7-2720QM_CPU_@_2.20GHz-with-gentoo-2.0.2 Timestamp of tree: Sun, 29 May 2011 01:45:01 +0000 ccache version 3.1.4 [enabled] app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.2 dev-util/ccache: 3.1.4 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.11.1-r1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.38 (virtual/os-headers) sys-libs/glibc: 2.13-r2 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Broadcom dlj-1.1 skype-eula AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US ko" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp"PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aac acl acpi alsa amd64 apng avahi bash-completion berkdb bluetooth bonjour branding bzip2 cairo cjk cli consolekit cracklib crypt css cups cxx dbus declarative device-mapper dri dvd dvdr dvdread ffmpeg firefox3 flac fluidsynth fortran gdbm gif gimp gphoto2 gpm gtk howl-compat iconv icu imap iproute2 ipv6 ithreads jpeg kde kerberos lame laptop latex lirc lm_sensors mad mdnsresponder-compat mmx mng modules mozilla mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png policykit pppd python qt3 qt3support qt4 readline rtmp rtsp scanner scim sdl secure-delete semantic-desktop session slp snmp spell sse sse2 ssl svg sysfs tcpd tiff truetype unicode usb vaapi vim-syntax webkit x264 xinerama xorg xscreensaver xulrunner xvid xvmc zeroconf zlib" 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="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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US ko" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" 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
Created attachment 275037 [details] Build log, MAKEOPTS="-j1"
(In reply to comment #9) > I am now having this problem with a new Intel Core i7. Perhaps it is a > hardware-related upstream bug? My other 2 systems, an AMD Athlon 64 x2 and an > Intel Core 2 Duo do not have this problem with very similar kernel > configurations and USE flags. Well, I have this problem ONLY on my really new Core i5 laptop. The slightly older Core i7 desktop shows no problems, and an old-ish Core 2 at the office runs the ebuild fine as well. All with very similar settings.
(In reply to comment #11) > (In reply to comment #9) > > I am now having this problem with a new Intel Core i7. Perhaps it is a > > hardware-related upstream bug? My other 2 systems, an AMD Athlon 64 x2 and an > > Intel Core 2 Duo do not have this problem with very similar kernel > > configurations and USE flags. > > Well, I have this problem ONLY on my really new Core i5 laptop. The slightly > older Core i7 desktop shows no problems, and an old-ish Core 2 at the office > runs the ebuild fine as well. All with very similar settings. I am also having this problem on a brand new laptop (Sandy Bridge Core i7 Mobile).
I wonder if this is maybe caused by some compiler optimization switch triggered within -march=native (as the ebuild already says that the build can be sensitive to such things). The command gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p' prints out the resulting settings. Here, it gives office (works fine, Core 2): -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2 desktop (works fine, Core i7): -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2 notebook (NOT working, Core i5): -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic
I tried: CFLAGS="-march=core2 -O2 -pipe" MAKEOPTS="-j1" emerge libreoffice And still had the same problem.
Today I discovered that some applications have runtime problems when built on Sandy Bridge Core i7 processors with -mavx in CFLAGS, which as you pointed out is enabled when using -march=native. Here are some forums posts regarding corresponding breakage with Mozilla Thunderbird: http://forums.gentoo.org/viewtopic-t-860223.html http://forums.gentoo.org/viewtopic-t-870595.html It seems likely, then, that one of libreoffice's build dependencies is affected by this problem. I've modified my CFLAGS to be: CFLAGS="-march=native -O2 -mno-avx -pipe" However, I suspect that I will be suffering from mysterious runtime problems until I emerge -e @world. I'll report back once I find the time to do so.
Interesting. I did have on this machine the "non-starting firefox" problem as described in the forum posts, and "solved" it by upgrading to firefox-4. I'll start rebuilding world tonight, however with >900 packages this will take a while... gcc-4.5.2 here since gcc-4.4.5 did not emerge (bug 368111, updated log coming later). @toolchain: please have a look
After changing my CFLAGS to CFLAGS="-march=native -mno-avx -O2 -pipe -ggdb" CXXFLAGS="${CFLAGS}" and an "emerge -eav world", app-office/libreoffice-3.3.2 now emerges and runs fine. So, it seems the problem is indeed triggered by the -mavx switch. I see two possible ways of action: 1) filter this somehow in libreoffice, i.e. hard-add -mno-avx, or 2) fix the problem in gcc...
Note that simply adding '-mno-avx' to CFLAGS to build libreoffice is insufficient. There are problems in the dependency graph for build tools that were also complied with -mavx, which is why it takes an 'emerge -e @world' after updating CFLAGS in make.conf to resolve the problem.
I can also report that after changing my CFLAGS from "-march=native -O2 -pipe" to "-march=native -O2 -mno-avx -pipe" and running: emerge -e @world I am now able to emerge and run libreoffice successfully.
i dont think so. this isnt specific to libreoffice at all. *** This bug has been marked as a duplicate of bug 352495 ***