Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662786 - sys-cluster/ceph-13.2.1 does not build
Summary: sys-cluster/ceph-13.2.1 does not build
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-04 16:34 UTC by Konstantin Agouros
Modified: 2021-02-25 23:43 UTC (History)
5 users (show)

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


Attachments
Build.log of the last attempt (build.log,893.74 KB, text/x-log)
2018-08-04 16:34 UTC, Konstantin Agouros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Agouros 2018-08-04 16:34:34 UTC
Created attachment 542364 [details]
Build.log of the last attempt

Trying to compile ceph 13.2.1 fails because of some inline stuff:

Error at end of Ebuild:

/rte_memcpy.h:821:2: note: in expansion of macro 'MOVEUNALIGNED_LEFT47'
  MOVEUNALIGNED_LEFT47(dst, src, n, srcofs);
  ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/x86intrin.h:39:0,
                 from /var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build/src/dpdk/include/rte_vect.h:56,
                 from /var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build/src/dpdk/include/rte_memcpy.h:46,
                 from /var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build/src/dpdk/include/rte_mempool.h:79,
                 from env.c:41:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/tmmintrin.h:185:1: error: inlining failed in call to always_inline '_mm_alignr_epi8': target specific option mismatch
 _mm_alignr_epi8(__m128i __X, __m128i __Y, const int __N)
 ^~~~~~~~~~~~~~~
In file included from /var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build/src/dpdk/include/rte_mempool.h:79:0,
                 from env.c:41:
/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build/src/dpdk/include/rte_memcpy.h:641:13: note: called from here
             _mm_storeu_si128((__m128i *)((uint8_t *)dst + 1 * 16), _mm_alignr_epi8(xmm2, xmm1, offset));    \
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build/src/dpdk/include/rte_memcpy.h:681:16: note: in expansion of macro 'MOVEUNALIGNED_LEFT47_IMM'
     case 0x0F: MOVEUNALIGNED_LEFT47_IMM(dst, src, n, 0x0F); break;    \
                ^~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build/src/dpdk/include/rte_memcpy.h:821:2: note: in expansion of macro 'MOVEUNALIGNED_LEFT47'
  MOVEUNALIGNED_LEFT47(dst, src, n, srcofs);
  ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1/src/spdk/mk/spdk.common.mk:216: env.o] Error 1
make[1]: *** [/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1/src/spdk/mk/spdk.subdirs.mk:35: env_dpdk] Error 2
make: *** [/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1/src/spdk/mk/spdk.subdirs.mk:35: lib] Error 2
make[2]: *** [CMakeFiles/spdk-ext.dir/build.make:112: spdk-ext-prefix/src/spdk-ext-stamp/spdk-ext-build] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build'
make[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/spdk-ext.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build'
make: *** [Makefile:141: all] Error 2
 * ERROR: sys-cluster/ceph-13.2.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-cluster/ceph-13.2.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-cluster/ceph-13.2.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-cluster/ceph-13.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-cluster/ceph-13.2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-cluster/ceph-13.2.1/work/ceph-13.2.1_build'



emerge --info:
Portage 2.3.40 (python 3.6.5-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.26-r7, 4.12.12-gentoo x86_64)
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_290-with-gentoo-2.4.1
KiB Mem:    12206156 total,   3026264 free
KiB Swap:   33554424 total,  33544432 free
Timestamp of repository gentoo: Sat, 04 Aug 2018 01:00:01 +0000
Head commit of repository gentoo: ae20bf9dbec6acbc567b1fbea247afc7d8febe28
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.8::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:
gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://172.24.80.254/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=athlon64 -mtune=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=athlon64 -mtune=athlon64"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/mnt/ceph/packages/AuthenticAMD/ceph-prod-osd2.matrix.test"
PORTAGE_BINHOST="http://ntop.matrix.test/packages/AuthenticAMD/ceph-prod-gw.matrix.test http://ntop/packages/AuthenticAMD/ceph-prod-mon1.matrix.test http://ntop/packages/AuthenticAMD/ceph-prod-osd1.matrix.test http://ntop/packages/AuthenticAMD/ceph-prod-osd2.matrix.test http://ntop/packages/AuthenticAMD/router.matrix.net http://ntop/packages/AuthenticAMD/testnetfw.matrix.test  http://ntop/packages/AuthenticAMD/ceph-prod-gw.matrix.test"
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="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 ldap libtirpc modules multilib ncurses nls nptl openmp pam pcre postgresql readline seccomp ssl tcpd unicode xattr 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" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I tried building with FEATURES -distcc and MAKEOPTS -j1 as well

Full build.log is attached.
Comment 1 Andrej Filipcic 2018-09-14 12:41:25 UTC
I have encountered the same problem. The dpdk library ceph mimic uses supports only cpus with sse 4.2, and the mimic release does neither compile nor run on older cpus. I was able to compile it on newer cpu with the same environment. The dpdk use flag does not seem to have an effect.