Created attachment 425698 [details] sys-cluster:ceph-9.2.0:20160217-062245.log In file included from ./erasure-code/jerasure/gf-complete/include/gf_complete.h:25:0, from ./erasure-code/jerasure/gf-complete/include/gf_int.h:14, from erasure-code/jerasure/gf-complete/src/gf_w16.c:11: erasure-code/jerasure/gf-complete/src/gf_w16.c: In function ‘gf_w16_split_4_16_lazy_sse_altmap_multiply_region’: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline ‘_mm_shuffle_epi8’: target specific option mi smatch _mm_shuffle_epi8 (__m128i __X, __m128i __Y) ^ erasure-code/jerasure/gf-complete/src/gf_w16.c:1129:11: error: called from here tph = _mm_shuffle_epi8 (thigh[0], ti); ^ [and so on] [ebuild U ] sys-cluster/ceph-9.2.0 [0.94.5] USE="gtk libaio nss -babeltrace -cryptopp -debug -fuse -jemalloc -libatomic -lttng -radosgw -static-libs -tcmalloc -xfs -zfs" PYTHON_TARGETS="python2_7" Wed 17 Feb 07:33:32 CET 2016 emerge --info =sys-cluster/ceph-9.2.0 Portage 2.2.27 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r1, 4.4.0-gentoo-r1-JeR x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.4.0-gentoo-r1-JeR-x86_64-AMD_Athlon-tm-_II_X3_455_Processor-with-gentoo-2.2 KiB Mem: 16434124 total, 734668 free KiB Swap: 2097148 total, 2076392 free Timestamp of repository gentoo: Wed, 17 Feb 2016 03:45:01 +0000 sh dash 0.5.8.2 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.2rc1 x86_64-pc-linux-gnu [enabled] ccache version 3.1.9 [disabled] app-shells/bash: 4.3_p42-r1::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.3.5-r1::gentoo, 3.4.3-r1::gentoo, 3.5.0-r1::gentoo dev-util/ccache: 3.1.9-r4::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.4_p6-r2::gentoo, 1.8.5-r5::gentoo, 1.9.6-r4::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.22-r1::gentoo, 2.23.1::gentoo, 2.23.2::gentoo, 2.24-r3::gentoo, 2.25.1-r1::gentoo sys-devel/gcc: 4.7.3-r1::gentoo, 4.8.4::gentoo, 4.9.3::gentoo, 5.2.0::gentoo, 5.3.0::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: steam-overlay location: /aches/gentoo/layman/steam masters: gentoo priority: -20000000 gentoo location: /world/gentoo/portage sync-type: rsync sync-uri: rsync://rsync.nl.gentoo.org/gentoo-portage priority: 0 JeR location: /aches/gentoo/local masters: gentoo priority: 10000 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-frecord-gcc-switches -g -pipe -O2 -Wall -Wformat=2 -march=amdfam10 -mmmx -m3dnow -msse -msse2 -msse3 -mno-ssse3 -msse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mlzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mprfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10 -Wno-comment" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/ccache/bin /usr/lib/distcc/bin /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/yp/Makefile" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-frecord-gcc-switches -g -pipe -O2 -Wall -Wformat=2 -march=amdfam10 -mmmx -m3dnow -msse -msse2 -msse3 -mno-ssse3 -msse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mlzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mprfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10" DISTDIR="/aches/gentoo/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg cgroup compressdebug config-protect-if-modified distcc distlocks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS=" http://mirror.netcologne.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.leaseweb.com/gentoo/ " LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/aches/gentoo/packages/wim" 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="256-color X a52 aac acl acpi alsa amd64 apng bash-completion berkdb bluetooth bzip2 cairo cli consolekit cracklib crypt cups cxx dbus distinct-l dri drm egl ffmpeg flac fortran gdbm gif gles gles1 gles2 graphite gtk gudev hwdb i3 iconv idn introspection ipv6 ithreads jack jpeg kmod lame lzma minizip mmx mmxext mng modules mtp multilib multislot multitarget musepack ncat ncurses netlink nfs nls nonblockdialogs nptl offensive ogg opencv opengl openmp openrc opus pam pcre perl png policykit python qml qt3support qt5 quesoglc readline samba savedconfig sbc seccomp sensord session sloppy smp socks5 sse sse2 sse3 sse4 sse4_1 ssl ssse3 system-libCg tcpd test theora threads tiff tinfo truetype unicode unwind upower uvm vdpau vim-syntax vorbis wavpack wayland webkit2 x264 xa xattr xcb xft xinerama zlib" ABI_X86="64 32" 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" 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="rrdtool rrdcached" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="gnutls" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby20 ruby21" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
hi, i bet this is caused by your loooong CFLAGS, but sorry I couldn't tell which is the exact one.. could you try simple CFLAGS? here I'm using CFLAGS="-O2 -pipe -march=core2 "
(In reply to Yixun Lan from comment #1) > hi, i bet this is caused by your loooong CFLAGS, but sorry I couldn't tell > which is the exact one.. Probably not. > could you try simple CFLAGS? here I'm using CFLAGS="-O2 -pipe -march=core2 " You mean, beside the endless compiler flags its build system already adds?
Dropping target specific CFLAGS obviously avoids this issue. The ceph build system should not push its own CFLAGS like this. If there is a clash, then the make.conf set CFLAGS should win/override.
The build system inherits any flags from make.conf then adds flags that upstream deems are necessary to make the package compile. If some flags from make.conf conflict with upstream's added flags, there is not much that can be done other than filter the offending flags. Dropping flags added by upstream is a bad idea, they are there for a reason.
(In reply to Patrick McLean from comment #4) > The build system inherits any flags from make.conf then adds flags that > upstream deems are necessary to make the package compile. If some flags from > make.conf conflict with upstream's added flags, there is not much that can > be done other than filter the offending flags. > > Dropping flags added by upstream is a bad idea, they are there for a reason. We set feature specific architecture USE flags for vendor extensions all over the tree, so this package really should be no exception.
I have no easy way of knowing which flags conflicting with which other flags. If you can figure out which flags are in conflict, I can probably add a filter-flags call to filter them out so ceph can compile.