Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835646 - sys-fs/zfs-kmod-2.1.3 fails to emerge
Summary: sys-fs/zfs-kmod-2.1.3 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-03-20 09:52 UTC by grixfosforito
Modified: 2022-03-22 18:01 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,393.49 KB, text/plain)
2022-03-20 19:36 UTC, grixfosforito
Details
/etc/portage/patches/sys-fs/zfs-kmod-2.1.3/hdr-maybe_unused.patch (hdr-maybe_unused.patch,382 bytes, patch)
2022-03-22 08:48 UTC, Florian Manschwetus
Details | Diff
/etc/portage/patches/sys-fs/zfs-kmod-2.1.3/zfs-kmod-2.1.3-unused-variable.patch (zfs-kmod-2.1.3-unused-variable.patch,259 bytes, patch)
2022-03-22 08:57 UTC, grixfosforito
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description grixfosforito 2022-03-20 09:52:25 UTC
Hi,

I am unable to emerge =sys-fs/zfs-kmod-2.1.3. I am able to emerge =sys-fs/zfs-kmod-2.1.2 and =sys-fs/zfs-kmod-9999 without problems.

This is a copy of the build.log: https://pastebin.com/2Qg78GM8

I am able to build it successfully in two other machines with the same kernel version without having this error.
Comment 1 Jonas Stein gentoo-dev 2022-03-20 18:10:14 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. This includes
* the complete build.log as attachment and
* a paste of the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 2 grixfosforito 2022-03-20 19:36:00 UTC
Created attachment 767457 [details]
build.log
Comment 3 grixfosforito 2022-03-20 19:37:45 UTC
I am attaching the build.log. Here is the emerge info:

Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.1, glibc-2.34-r10, 5.15.28-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.28-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_C3558_@_2.20GHz-with-glibc2.34
KiB Mem:    32846508 total,   2604084 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 19 Mar 2022 18:49:21 +0000
Head commit of repository gentoo: ae5f79fd2ef92f56296c78c4a506938a7b4a703f

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.9.9-r1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-apps/systemd:          249.9::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=goldmont -fomit-frame-pointer -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=goldmont -fomit-frame-pointer -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--verbose-conflicts --complete-graph --with-bdeps=y --quiet-build"
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="-march=goldmont -fomit-frame-pointer -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=goldmont -fomit-frame-pointer -O2 -pipe"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ https://mirrors.evowise.com/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 es es_ES"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
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="/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bindist branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif fftw flac fortran gdbm gif git glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc lm-sensors mad mng mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp smp spell split-usr ssl startup-notification subversion svg sysprof systemd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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 mmxext sse sse2" 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="libinput" KERNEL="linux" L10N="en es es-es" 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-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="ast" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS




Thanks.
Comment 4 Florian Manschwetus 2022-03-22 08:26:59 UTC
Looks like this one:
https://github.com/openzfs/zfs/issues/13194

I have this issue.

Seems to need a patch release. Upstream or in tree?
Comment 5 Florian Manschwetus 2022-03-22 08:48:15 UTC
Created attachment 767555 [details, diff]
/etc/portage/patches/sys-fs/zfs-kmod-2.1.3/hdr-maybe_unused.patch

This patch is taken from the official bug, I referenced, and fixes the build problem for me.
Comment 6 grixfosforito 2022-03-22 08:56:38 UTC
(In reply to Florian Manschwetus from comment #4)
> Looks like this one:
> https://github.com/openzfs/zfs/issues/13194
> 
> I have this issue.
> 
> Seems to need a patch release. Upstream or in tree?

Thanks for pointing this out. This is the same issue, and the patch provided there works for me. I am attaching the patch here, in case anyone else needs it.
Comment 7 grixfosforito 2022-03-22 08:57:54 UTC
Created attachment 767556 [details, diff]
/etc/portage/patches/sys-fs/zfs-kmod-2.1.3/zfs-kmod-2.1.3-unused-variable.patch
Comment 8 Florian Manschwetus 2022-03-22 09:10:47 UTC
(In reply to grixfosforito from comment #7)
> Created attachment 767556 [details, diff] [details, diff]
> /etc/portage/patches/sys-fs/zfs-kmod-2.1.3/zfs-kmod-2.1.3-unused-variable.
> patch

This is not the right patch, it removes the variable declaration, but the variable is used in the assertion right below.
Comment 9 Florian Manschwetus 2022-03-22 09:18:02 UTC
(In reply to Florian Manschwetus from comment #8)
> (In reply to grixfosforito from comment #7)
> > Created attachment 767556 [details, diff] [details, diff] [details, diff]
> > /etc/portage/patches/sys-fs/zfs-kmod-2.1.3/zfs-kmod-2.1.3-unused-variable.
> > patch
> 
> This is not the right patch, it removes the variable declaration, but the
> variable is used in the assertion right below.

See the official commit addressing the referenced issue:
https://github.com/openzfs/zfs/commit/7b215d93bcc0a72d7020ccc050c64f39aa7f2be8
Comment 10 grixfosforito 2022-03-22 09:39:18 UTC
(In reply to Florian Manschwetus from comment #9)
> (In reply to Florian Manschwetus from comment #8)
> > (In reply to grixfosforito from comment #7)
> > > Created attachment 767556 [details, diff] [details, diff] [details, diff] [details, diff]
> > > /etc/portage/patches/sys-fs/zfs-kmod-2.1.3/zfs-kmod-2.1.3-unused-variable.
> > > patch
> > 
> > This is not the right patch, it removes the variable declaration, but the
> > variable is used in the assertion right below.
> 
> See the official commit addressing the referenced issue:
> https://github.com/openzfs/zfs/commit/
> 7b215d93bcc0a72d7020ccc050c64f39aa7f2be8

Yes, I've seen that both patches are in the commit and now I see that the one you attach is been officially pushed. I have tried the one I attach, and it works. I don't know how if I can delete it from here.
Comment 11 Larry the Git Cow gentoo-dev 2022-03-22 18:01:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f73f5b8ed0602bdf8a0d7fbfb9643cb3a9740bd

commit 2f73f5b8ed0602bdf8a0d7fbfb9643cb3a9740bd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-22 18:00:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-22 18:01:09 +0000

    sys-fs/zfs-kmod: fix -Werror issue
    
    Closes: https://bugs.gentoo.org/835646
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/zfs-kmod/files/2.1.3-werror.patch | 30 ++++++++++++++++++++++++++++++
 sys-fs/zfs-kmod/zfs-kmod-2.1.3.ebuild    |  4 ++++
 2 files changed, 34 insertions(+)