Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790254 - sys-fs/btrfs-progs-5.12: configure: error: linux/blkzoned.h does not provide blk_zone.capacity
Summary: sys-fs/btrfs-progs-5.12: configure: error: linux/blkzoned.h does not provide ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-14 18:26 UTC by contactopublico57
Modified: 2021-05-17 11:33 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description contactopublico57 2021-05-14 18:26:24 UTC
[31;01m*[0m ERROR: sys-fs/btrfs-progs-5.12::gentoo failed (configure phase):
 [31;01m*[0m   econf failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line  125:  Called src_configure
 [31;01m*[0m             environment, line 2098:  Called econf '--bindir=/sbin' '--enable-convert' '--disable-documentation' '--enable-backtrace' '--disable-python' '--disable-static' '--enable-zstd' '--with-convert=ext2'
 [31;01m*[0m        phase-helpers.sh, line  680:  Called __helpers_die 'econf failed'
 [31;01m*[0m   isolated-functions.sh, line  112:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   		die "$@"

Reproducible: Always

Steps to Reproduce:
1.sudo emerge btrfs-progs
2.build fails
3.
Actual Results:  
1.sudo emerge btrfs-progs
2.build fails

Expected Results:  
btrfs-proga builds and installs

===============
btrfs-progs log
===============
[32;01m * [39;49;00mPackage:    sys-fs/btrfs-progs-5.12
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: base-system@gentoo.org
[32;01m * [39;49;00mUSE:        abi_x86_64 amd64 convert elibc_glibc kernel_linux python_single_target_python3_9 userland_GNU zstd
[32;01m * [39;49;00mFEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking btrfs-progs-v5.12.tar.xz to /var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/work
>>> Source unpacked in /var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/work
>>> Preparing source in /var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/work/btrfs-progs-v5.12 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/work/btrfs-progs-v5.12 ...
 * econf: updating btrfs-progs-v5.12/config/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating btrfs-progs-v5.12/config/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/btrfs-progs-5.12 --htmldir=/usr/share/doc/btrfs-progs-5.12/html --libdir=/usr/lib64 --bindir=/sbin --enable-convert --disable-documentation --enable-backtrace --disable-python --disable-static --enable-zstd --with-convert=ext2
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking whether C compiler accepts -std=gnu90... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for a BSD-compatible install... /usr/lib/portage/python3.9/ebuild-helpers/xattr/install -c
checking whether ln -s works... yes
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for openat... yes
checking for reallocarray... yes
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for backtrace... yes
checking for backtrace_symbols_fd... yes
checking for EXT2FS... yes
checking for COM_ERR... yes
checking for FIEMAP_EXTENT_SHARED defined in linux/fiemap.h... yes
checking for EXT4_EPOCH_MASK defined in ext2fs/ext2_fs.h... yes
checking linux/blkzoned.h usability... yes
checking linux/blkzoned.h presence... yes
checking for linux/blkzoned.h... yes
checking for struct blk_zone.capacity... no
checking for BLKGETZONESZ defined in linux/blkzoned.h... yes
configure: error: linux/blkzoned.h does not provide blk_zone.capacity

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/work/btrfs-progs-v5.12/config.log
 [31;01m*[0m ERROR: sys-fs/btrfs-progs-5.12::gentoo failed (configure phase):
 [31;01m*[0m   econf failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line  125:  Called src_configure
 [31;01m*[0m             environment, line 2098:  Called econf '--bindir=/sbin' '--enable-convert' '--disable-documentation' '--enable-backtrace' '--disable-python' '--disable-static' '--enable-zstd' '--with-convert=ext2'
 [31;01m*[0m        phase-helpers.sh, line  680:  Called __helpers_die 'econf failed'
 [31;01m*[0m   isolated-functions.sh, line  112:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   		die "$@"
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=sys-fs/btrfs-progs-5.12::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-fs/btrfs-progs-5.12::gentoo'`.
 [31;01m*[0m The complete build log is located at '/usr/portage/logs/sys-fs:btrfs-progs-5.12:20210512-220729.log'.
 [31;01m*[0m For convenience, a symlink to the build log is located at '/var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/work/btrfs-progs-v5.12'
 [31;01m*[0m S: '/var/tmp/portage/portage/sys-fs/btrfs-progs-5.12/work/btrfs-progs-v5.12'
=========================================================
=========================================================
sudo emerge --info '=sys-fs/btrfs-progs-5.12::gentoo'
Portage 3.0.18 (python 3.9.5-final-0, default/linux/amd64/17.1/systemd, gcc-11.1.0, glibc-2.33, 5.12.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.12.0-x86_64-with-glibc2.33
KiB Mem:     3906776 total,   2505092 free
KiB Swap:    2097144 total,   2097144 free
Timestamp of repository gentoo: Wed, 12 May 2021 00:45:01 +0000
sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.8.10::gentoo, 3.9.5::gentoo
dev-util/cmake:           3.20.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo
sys-devel/gcc:            11.1.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-webrsync-verify-signature: no

overlay
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://gentoo.c3sl.ufpr.br/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="http://packages.gentooexperimental.org/packages/amd64-unstable/"
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/portage"
USE="(-selinux) X a52 aac accessibility acl alsa alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amd64 aom apparmor argon2 audit berkdb branding build bzip2 cdda cli crypt cryptsetup curl dbus dri dts dv dvb dvd dynamic elfutils example fbcon fbcondecor ffmpeg flac fortran gdbm gif gimp gnuefi gstreamer gtk gtk3 http iconv idn importd introspection ipv6 jack jpeg kdbus kmod lame lcms libass libglvnd libidn2 libnotify libtirpc libvisual livecd loop-aes lz4 lz5 lzma matroska mms mmx mng modplug modules mp3 mp4 mpeg mpeg2 mpeg4pt2 multilib nat ncurses networkmanager nls nptl nptlonly ogg opengl openmp opus oss pam pax_kernel pcre png policykit portaudio pulseaudio qrcode qt5 readline resolvconf seccomp socks5 split-usr sse sse2 ssl systemd sysv-utils taglib tcpd theora tiff truetype udev unicode usb usrmerge v4l vaapi vala vanilla vcd vdpau vlc vorbis vpx wavpack x264 xattr xkb xml xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 3dnow 3dnowext mmxext" CURL_SSL="nss idn" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse synaptics virtualbox mutouch vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby25 ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto 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, RUSTFLAGS
===================================================
===================================================
sudo emerge -pqv '=sys-fs/btrfs-progs-5.12::gentoo'

[ebuild     U ] sys-fs/btrfs-progs-5.12 [5.11.1] USE="convert zstd -doc -python -reiserfs -static -static-libs" PYTHON_SINGLE_TARGET="python3_9 -python3_7 -python3_8"
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-05-14 18:42:16 UTC
Does this still fail when you upgrade sys-kernel/linux-headers package to version 5.10 or newer?
Comment 2 contactopublico57 2021-05-16 23:00:43 UTC
btrfs-progs built after emerging sys-kernel/linux-headers-5.12

Thank you.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-16 23:03:10 UTC
(In reply to contactopublico57 from comment #2)
> btrfs-progs built after emerging sys-kernel/linux-headers-5.12
> 
> Thank you.

Out of interest, why wasn't it updated anyway? Do you do full system updates, or were you just unlucky and btrfs-progs was built before a linux-headers update was scheduled?

(Also: ACCEPT_KEYWORDS="amd64 ~amd64 ~x86" looks a bit odd, and should likely be just ~amd64).
Comment 4 Larry the Git Cow gentoo-dev 2021-05-17 11:33:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89dc7061d03eeab25f3061cffcd6da987821e7f3

commit 89dc7061d03eeab25f3061cffcd6da987821e7f3
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-05-17 11:32:44 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-05-17 11:32:44 +0000

    sys-fs/btrfs-progs: Depend on >=sys-kernel/linux-headers-5.10 for build
    
    Closes: https://bugs.gentoo.org/790254
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-fs/btrfs-progs/btrfs-progs-5.12.1.ebuild | 1 +
 sys-fs/btrfs-progs/btrfs-progs-5.12.ebuild   | 1 +
 sys-fs/btrfs-progs/btrfs-progs-9999.ebuild   | 1 +
 3 files changed, 3 insertions(+)