Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373941 - app-office/libreoffice-3.3.1 emerge fails with -march=native
Summary: app-office/libreoffice-3.3.1 emerge fails with -march=native
Status: RESOLVED DUPLICATE of bug 352495
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-03 19:16 UTC by Clemente Aguiar
Modified: 2011-07-12 23:23 UTC (History)
1 user (show)

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


Attachments
version 3.3.3 build log zipped (build.log.zip,459.68 KB, application/zip)
2011-07-10 16:18 UTC, Clemente Aguiar
Details
version 3.4.1 build log zipped (build.log.zip,21.39 KB, application/zip)
2011-07-10 19:45 UTC, Clemente Aguiar
Details
version 3.3.3 build log and environment log with -mnoavx (noavx.log.zip,105.24 KB, application/zip)
2011-07-12 21:47 UTC, Clemente Aguiar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clemente Aguiar 2011-07-03 19:16:33 UTC
app-office/libreoffice-3.3.1 emerge build fails with 

CFLAGS="-O2 -pipe -march=native"

but builds with

CFLAGS="-O2 -pipe".

Reproducible: Always

Actual Results:  
=============
Building module testtools
=============

Entering /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/testtools/inc

mkout -- version: 1.8

Entering /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/idl

: &&     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/idlc -O../../../unxlngx6.pro/misc/bridgetest_idl -I/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/idl -cid -we bridgetest.idl
Compiling: bridgetest.idl
rm -f ../../../unxlngx6.pro/bin/bridgetest.rdb
: &&     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/regmerge ../../../unxlngx6.pro/bin/bridgetest.rdb /UCR ../../../unxlngx6.pro/misc/bridgetest_idl/bridgetest.urd
: &&     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/cppumaker -O../../../unxlngx6.pro/inc -BUCR ../../../unxlngx6.pro/bin/bridgetest.rdb -X/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/types.rdb
touch ../../../unxlngx6.pro/misc/bridgetest_idl.cppumaker.done
: &&     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/javamaker -O../../../unxlngx6.pro/class -BUCR -nD -X/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/types.rdb ../../../unxlngx6.pro/bin/bridgetest.rdb
touch ../../../unxlngx6.pro/misc/bridgetest_idl.javamaker.done

Entering /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/testtools/com/sun/star/comp/bridge


Entering /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

Making:    all_bridgetest.dpslo
Compiling: testtools/unxlngx6.pro/misc/cppobj.uno_version.c
Compiling: testtools/unxlngx6.pro/misc/bridgetest.uno_version.c
Compiling: testtools/unxlngx6.pro/misc/constructors.uno_version.c
Compiling: testtools/source/bridgetest/bridgetest.cxx
Compiling: testtools/source/bridgetest/cppobj.cxx
Compiling: testtools/source/bridgetest/currentcontextchecker.cxx
Compiling: testtools/source/bridgetest/multi.cxx
Making:    cppobj.lib
Making:    bridgetest.lib
Making:    cppobj.uno.so
Making:    bridgetest.uno.so
Compiling: testtools/source/bridgetest/constructors.cxx
Making:    constructors.uno.so
Making:    all_bridgetest.dpslo
echo ../../unxlngx6.pro/lib
../../unxlngx6.pro/lib
cp /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/udkapi.rdb ../../unxlngx6.pro/lib/uno_types.rdb
: &&     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/regmerge ../../unxlngx6.pro/lib/uno_types.rdb / ../../unxlngx6.pro/bin/bridgetest.rdb
mkdir ../../unxlngx6.pro/misc/bridgetest/
cp -f /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/types.rdb ../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb
mkdir ../../unxlngx6.pro/lib/
mkdir: cannot create directory `../../unxlngx6.pro/lib/': File exists
: &&     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 -wop \
        -c acceptor.uno.so \
        -c bridgefac.uno.so \
        -c connector.uno.so \
        -c remotebridge.uno.so \
        -c uuresolver.uno.so \
        -c stocservices.uno.so
acceptor.uno.so
bridgefac.uno.so
connector.uno.so
remotebridge.uno.so
uuresolver.uno.so
stocservices.uno.so
register component 'acceptor.uno.so' in registry '../../unxlngx6.pro/lib/uno_services.rdb' successful!
register component 'bridgefac.uno.so' in registry '../../unxlngx6.pro/lib/uno_services.rdb' successful!
register component 'connector.uno.so' in registry '../../unxlngx6.pro/lib/uno_services.rdb' successful!
register component 'remotebridge.uno.so' in registry '../../unxlngx6.pro/lib/uno_services.rdb' successful!
register component 'uuresolver.uno.so' in registry '../../unxlngx6.pro/lib/uno_services.rdb' successful!
register component 'stocservices.uno.so' 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/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 uno_types.rdb \
        -r uno_services.rdb -wop=./ \
        -c ./bridgetest.uno.so \
        -c ./cppobj.uno.so \
        -c ./constructors.uno.so
./bridgetest.uno.so
./cppobj.uno.so
./constructors.uno.so
register component './bridgetest.uno.so' in registry 'uno_services.rdb' successful!
register component './cppobj.uno.so' in registry 'uno_services.rdb' successful!
register component './constructors.uno.so' in registry '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:  3641 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 8538:  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=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" 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'



This is what -march=native actually picks on the local hardware:

$ cc -march=native -E -v - </dev/null 2>&1 | grep cc1
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2


$ emerge --info
Portage 2.1.10.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-x86_64-Intel-R-_Core-TM-_i3-2100_CPU_@_3.10GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 03 Jul 2011 12:15: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
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo wirelay sunrise my_local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
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"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://cesium.di.uminho.pt/pub/gentoo/ http://darkstar.ist.utl.pt/gentoo/"
LANG="pt_PT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt_PT pt en"
MAKEOPTS="-j1"
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="/var/lib/layman/wirelay /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.pt.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session smp spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vorbis wmf 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_PT pt en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vga" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pacho Ramos gentoo-dev 2011-07-10 09:54:15 UTC
Please retry with latest libreoffice from testing and, if still valid, attach full build.log
Comment 2 Clemente Aguiar 2011-07-10 16:16:55 UTC
(In reply to comment #1)
> Please retry with latest libreoffice from testing and, if still valid, attach
> full build.log

latest from testing? (don't know which version you mean)

I tried with version 3.3.3 and still does not build.
See attached build.log

Let me know if I should try with version 3.4.1
Comment 3 Clemente Aguiar 2011-07-10 16:18:19 UTC
Created attachment 279651 [details]
version 3.3.3 build log zipped
Comment 4 Pacho Ramos gentoo-dev 2011-07-10 17:24:35 UTC
Maybe this is related with bug 373945
Comment 5 Clemente Aguiar 2011-07-10 19:44:49 UTC
Tried with version 3.4.1, same result.
see attached build.log
Comment 6 Clemente Aguiar 2011-07-10 19:45:36 UTC
Created attachment 279681 [details]
version 3.4.1 build log zipped
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2011-07-10 23:49:58 UTC

*** This bug has been marked as a duplicate of bug 352495 ***
Comment 8 Clemente Aguiar 2011-07-12 21:47:40 UTC
Created attachment 279913 [details]
version 3.3.3 build log and environment log with -mnoavx
Comment 9 Clemente Aguiar 2011-07-12 21:49:03 UTC
As can be seen from the attached build.log and environment log of the build with -mnoavx, the error persists.
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2011-07-12 23:23:24 UTC

*** This bug has been marked as a duplicate of bug 352495 ***