# CC [M] vhba.o /usr/bin/x86_64-pc-linux-gnu-gcc-14 -Wp,-MMD,./.vhba.o.d -nostdinc -I/usr/src/linux-6.14.0-gentoo/arch/x86/include -I/usr/src/linux-6.14.0-gentoo/arch/x86/include/generated -I/usr/src/linux-6.14.0-gentoo/include -I/usr/src/linux-6.14.0-gentoo/include -I/usr/src/linux-6.14.0-gentoo/arch/x86/include/uapi -I/usr/src/linux-6.14.0-gentoo/arch/x86/include/generated/uapi -I/usr/src/linux-6.14.0-gentoo/include/uapi -I/usr/src/linux-6.14.0-gentoo/include/generated/uapi -include /usr/src/linux-6.14.0-gentoo/include/linux/compiler-version.h -include /usr/src/linux-6.14.0-gentoo/include/linux/kconfig.h -include /usr/src/linux-6.14.0-gentoo/include/linux/compiler_types.h -D__KERNEL__ -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=skylake -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector-strong -fomit-frame-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -fmin-function-alignment=16 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fconserve-stack -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=2048 -Wno-main -Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-overflow -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wenum-conversion -Wextra -Wunused -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-packed-not-aligned -Wno-format-overflow -Wno-format-truncation -Wno-stringop-truncation -Wno-override-init -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-maybe-uninitialized -Wno-sign-compare -Wno-unused-parameter -DRANDSTRUCT -fplugin=/usr/src/linux-6.14.0-gentoo/scripts/gcc-plugins/randomize_layout_plugin.so -fplugin=/usr/src/linux-6.14.0-gentoo/scripts/gcc-plugins/latent_entropy_plugin.so -fplugin=/usr/src/linux-6.14.0-gentoo/scripts/gcc-plugins/stackleak_plugin.so -DLATENT_ENTROPY_PLUGIN -DSTACKLEAK_PLUGIN -fplugin-arg-stackleak_plugin-track-min-size=100 -fplugin-arg-stackleak_plugin-arch=x86 -DVHBA_VERSION=\"20240917\" -Wall -fsanitize=bounds-strict -fsanitize-trap=undefined -DMODULE -DKBUILD_BASENAME='"vhba"' -DKBUILD_MODNAME='"vhba"' -D__KBUILD_MODNAME=kmod_vhba -c -o vhba.o vhba.c ; /usr/src/linux-6.14.0-gentoo/tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --static-call --uaccess --module vhba.o # cmd_mod vhba.mod printf '%s\n' vhba.o | awk '!x[$0]++ { print("./"$0) }' > vhba.mod vhba.c:541:6: error: 'struct scsi_host_template' has no member named 'tag_alloc_policy'; did you mean 'tag_alloc_policy_rr'? 541 | .tag_alloc_policy = BLK_TAG_ALLOC_RR, | ^~~~~~~~~~~~~~~~ | tag_alloc_policy_rr vhba.c:541:25: error: 'BLK_TAG_ALLOC_RR' undeclared here (not in a function) 541 | .tag_alloc_policy = BLK_TAG_ALLOC_RR, | ^~~~~~~~~~~~~~~~ make[4]: *** [/usr/src/linux-6.14.0-gentoo/scripts/Makefile.build:207: vhba.o] Error 1 make[3]: *** [/usr/src/linux-6.14.0-gentoo/Makefile:1994: .] Error 2 make[2]: *** [/usr/src/linux-6.14.0-gentoo/Makefile:251: __sub-make] Error 2 make[2]: Leaving directory '/var/no-tmpfs/portage/sys-fs/vhba-20240917/work/vhba-module-20240917' make[1]: *** [Makefile:251: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-6.14.0-gentoo' make: *** [Makefile:14: modules] Error 2 * ERROR: sys-fs/vhba-20240917::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-fs/vhba-20240917::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-fs/vhba-20240917::gentoo'`. * The complete build log is located at '/var/log/portage/sys-fs:vhba-20240917:20250327-000523.log.gz'. * For convenience, a symlink to the build log is located at '/var/no-tmpfs/portage/sys-fs/vhba-20240917/temp/build.log.gz'. * The ebuild environment file is located at '/var/no-tmpfs/portage/sys-fs/vhba-20240917/temp/environment'. * Working directory: '/var/no-tmpfs/portage/sys-fs/vhba-20240917/work/vhba-module-20240917' * S: '/var/no-tmpfs/portage/sys-fs/vhba-20240917/work/vhba-module-20240917' >>> Failed to emerge sys-fs/vhba-20240917 ------------------------------------------------------------------------------- emerge --info sys-fs/vhba Portage 3.0.67 (python 3.11.11-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.40-r8, 6.13.6-gentoo-std x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.13.6-gentoo-std-x86_64-Intel-R-_Core-TM-_i3-6100_CPU_@_3.70GHz-with-glibc2.40 KiB Mem: 3930304 total, 1157200 free KiB Swap: 200772604 total, 200335568 free Timestamp of repository gnu-elpa: Mon, 10 Mar 2025 15:48:23 +0000 Head commit of repository gnu-elpa: 4602a6afe124dcfbe5c861e73317e848da Timestamp of repository melpa: Mon, 10 Mar 2025 16:18:24 +0000 Head commit of repository melpa: d0594646e614cad9c86ea532ecdb18e04f483a80 Timestamp of repository mv: Sat, 08 Mar 2025 17:38:04 +0000 Head commit of repository mv: b4b6952c72288d0956e181607051e97e19dddde9 Timestamp of repository gentoo: Mon, 10 Mar 2025 16:45:00 +0000 Head commit of repository gentoo: fe621e66f692e842778b3f0b5ed61f19343e4022 Timestamp of repository without-systemd: Fri, 07 Mar 2025 01:34:22 +0000 Head commit of repository without-systemd: 30430ced2879b30a2aab522179f92d30026c4bcb sh bash 5.2_p37 ld GNU ld (Gentoo 2.44 p1) 2.44.0 distcc 3.4 x86_64-pc-linux-gnu [disabled] ccache version 4.10.2 [disabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.31.5::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.7.0::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0-r1::gentoo dev-lang/python: 2.7.18_p16-r2::gentoo, 3.10.16_p2::gentoo, 3.11.11_p2::gentoo, 3.12.9::gentoo, 3.13.2::gentoo dev-lang/rust: 1.79.0-r101::gentoo, 1.80.1-r101::gentoo, 1.81.0-r101::gentoo, 1.82.0-r102::gentoo, 1.83.0-r2::gentoo, 1.84.1-r1::gentoo, 1.85.0::gentoo dev-lang/rust-bin: 1.71.1-r102::gentoo, 1.74.1-r102::gentoo, 1.75.0-r102::gentoo, 1.76.0-r101::gentoo, 1.77.1-r102::gentoo, 1.78.0-r102::gentoo, 1.79.0-r103::gentoo, 1.80.1-r103::gentoo, 1.81.0-r103::gentoo, 1.82.0-r103::gentoo, 1.83.0-r2::gentoo, 1.84.1-r2::gentoo, 1.85.0-r1::gentoo dev-util/ccache: 4.10.2-r1::gentoo llvm-core/clang: 15.0.7-r3::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.0-r1::gentoo llvm-core/lld: 18.1.8::gentoo, 19.1.7::gentoo, 20.1.0::gentoo llvm-core/llvm: 15.0.7-r7::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.0::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.60.1::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.44::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 13.3.1_p20250301::gentoo, 14.2.1_p20250301::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r8::gentoo Repositories: gnu-elpa location: /var/db/repos/gnu-elpa sync-type: git sync-uri: https://github.com/gentoo-mirror/gnu-elpa.git masters: gentoo priority: -10001 volatile: False melpa location: /var/db/repos/melpa sync-type: git sync-uri: https://github.com/gentoo-mirror/melpa.git masters: gnu-elpa gentoo priority: -10001 volatile: False mv location: /var/db/repos/mv sync-type: git sync-uri: https://github.com/gentoo-mirror/mv.git masters: gentoo priority: -10001 volatile: False gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes without-systemd location: /var/db/repos/without-systemd sync-type: git sync-uri: https://github.com/gentoo-mirror/without-systemd.git masters: gentoo volatile: False local location: /var/db/repos/local masters: gentoo priority: 10000 volatile: False ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries " DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--alert y --alphabetical --ask-enter-invalid --autounmask y --autounmask-only n --autounmask-unrestricted-atoms y --autounmask-write y --complete-graph y --misspell-suggestions n --noconfmem --nospinner --tree --with-bdeps y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME" FCFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries " FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries " GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.leaseweb.com/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ http://mirror.bytemark.co.uk/gentoo/" LANG="fr_FR.utf8" LDFLAGS="-Wl,-O1 -Wl,-fuse-ld=mold " LEX="flex" LINGUAS="fr" MAKEOPTS="-j3 -l3" PKGDIR="/var/cache/binpkgs" PORTAGE_COMPRESS="lzma" PORTAGE_COMPRESS_FLAGS="-9" 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/no-tmpfs" RUSTFLAGS="-Ctarget-cpu=native -Cllvm-args=-x86-branches-within-32B-boundaries " SHELL="/bin/bash" USE="amd64 asm custom-cflags emacs eselect-ldso fortran gentoo-vm gtk-doc minimal modules-compress modules-sign ocamlopt pgo split-usr test-rust vaapi verify-sig" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel" 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, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= sys-fs/vhba-20240917::gentoo was built with the following: USE="-dist-kernel modules-compress modules-sign strip" ABI_X86="(64)" CFLAGS="-march=native -mtune=native -fno-semantic-interposition -O2 -flto=1 -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries" CXXFLAGS="-march=native -mtune=native -fno-semantic-interposition -O2 -flto=1 -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
Same here, tried recent Clang and GCC.
A fix is already implemented upstream (https://github.com/cdemu/cdemu/commit/ee6bba585d53891577089e9dd856eb733d8231f8) and a new release considered (https://sourceforge.net/p/cdemu/bugs/142/)
Created attachment 923145 [details, diff] patch for /etc/portage/patches/sys-fs/vhba
Tested working in (unpatched) sys-fs/vhba-20250329. Nice.