checking libaio.h presence... yes checking for libaio.h... yes checking xfs/xfs.h usability... no checking xfs/xfs.h presence... yes configure: WARNING: xfs/xfs.h: present but cannot be compiled configure: WARNING: xfs/xfs.h: check for missing prerequisite headers? configure: WARNING: xfs/xfs.h: see the Autoconf documentation configure: WARNING: xfs/xfs.h: section "Present But Cannot Be Compiled" configure: WARNING: xfs/xfs.h: proceeding with the compiler's result configure: WARNING: ## ----------------------------------------- ## configure: WARNING: ## Report this to ceph-devel@vger.kernel.org ## configure: WARNING: ## ----------------------------------------- ## checking for xfs/xfs.h... no configure: error: xfs/xfs.h not found (--without-libxfs to disable) !!! Please attach the following file when seeking support: !!! /var/tmp/portage/sys-cluster/ceph-9.2.1/work/ceph-9.2.1/config.log * ERROR: sys-cluster/ceph-9.2.1::gentoo failed (configure phase): * econf failed This failure happens with sys-fs/xfsprogs-4.5.0, with older versions (3.2.x) installed the configure check works. Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.9.3, glibc-2.22-r4, 4.4.1-gentoo x86_64) ================================================================= System uname: Linux-4.4.1-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5620_@_2.40GHz-with-gentoo-2.2 KiB Mem: 132032592 total, 53412948 free KiB Swap: 19529720 total, 19529720 free Timestamp of repository gentoo: Tue, 14 Jun 2016 06:30:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r1::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.18.4::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::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.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://192.168.1.21/gentoo-portage priority: -1000 adjust location: /var/lib/layman/adjust masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=corei7" 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="-O2 -pipe -march=corei7" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" 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 cracklib crypt cxx dri fortran gdbm git iconv iproute2 ipv6 mmx mmxext modules ncurses nls nptl openmp pam pcre perl python readline seccomp session sse sse2 ssl tcpd unicode vim-syntax 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="keyboard mouse evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
!!! Please attach the following file when seeking support: !!! /var/tmp/portage/sys-cluster/ceph-9.2.1/work/ceph-9.2.1/config.log
Created attachment 437690 [details] the build config.log ==== err === configure:23076: checking xfs/xfs.h usability configure:23076: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=core2 -g conftest.c >&5 In file included from /usr/include/xfs/xfs.h:37:0, from conftest.c:80: /usr/include/xfs/linux.h:145:9: error: unknown type name 'off64_t' typedef off64_t xfs_off_t; ^ configure:23076: $? = 1 configure: failed program was: ============================== actually introduced by this commit in xfsprogs, also see http://comments.gmane.org/gmane.comp.file-systems.ceph.devel/30387 commit cb898f157f8410a03cf5f3400baa1df9e5eecd33 Author: Felix Janda <felix.janda@posteo.de> Date: Fri Feb 5 08:34:06 2016 +1100 linux.h: Use off64_t instead of loff_t These are equivalent on glibc, while musl does not know loff_t. In the long run, it would be preferable to enable transparent LFS so that off64_t could be replaced by off_t. Signed-off-by: Felix Janda <felix.janda@posteo.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com> diff --git a/include/linux.h b/include/linux.h index 674717c..a7d2f85 100644 --- a/include/linux.h +++ b/include/linux.h @@ -141,7 +141,7 @@ platform_discard_blocks(int fd, uint64_t start, uint64_t len) #define EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */ #define EFSBADCRC EBADMSG /* Bad CRC detected */ -typedef loff_t xfs_off_t; +typedef off64_t xfs_off_t; typedef __uint64_t xfs_ino_t; typedef __uint32_t xfs_dev_t; typedef __int64_t xfs_daddr_t;
$ qfile -Cv /usr/include/sys/types.h sys-libs/glibc-2.23-r2 (/usr/include/sys/types.h) $ /usr/include/sys/types.h:92 #if defined __USE_LARGEFILE64 && !defined __off64_t_defined typedef __off64_t off64_t; # define __off64_t_defined #endif and checked here, __USE_LARGEFILE64 is not defined
For now, ceph has worked around this with https://github.com/ceph/ceph/commit/602425abd5cef741fc1b5d4d1dd70c68e153fc8d
fixed in tree without revision bump, thanks commit 3136c76f780e6102b2e55598d85861808cc4abb7 Author: Yixun Lan <dlan@gentoo.org> Date: Thu Jun 16 18:52:37 2016 +0800 sys-cluster/ceph: fix missing xfs header err when USE=xfs enabled Gentoo-Bug: 585988 Package-Manager: portage-2.3.0_rc1 :100644 100644 53f3e9c... 494094e... M sys-cluster/ceph/ceph-9.2.1-r1.ebuild :000000 100644 0000000... 85515be... A sys-cluster/ceph/files/ceph-9.2.1-libxfs.patch