[Pkg-zfsonlinux-devel] Bug#920927: zfs-dkms: module FTBFS for i386 kernel

Andreas Beckmann anbe at debian.org
Wed Jan 30 16:36:36 GMT 2019


Package: zfs-dkms
Version: 0.7.12-2
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts                                                                                                                                                                                                   
Control: affects -1 + zfsutils-linux

Hi,

zfs-dkms does not build a kernel module for e.g. the 4.19.0-2-686 i386
kernel. This happened in a i386 chroot on a amd64 host, but this should
not really be a problem, since this setup works fine for other packages.


# MAKEFLAGS="j1 V=1" dpkg --configure --pending 
Setting up zfs-dkms (0.7.12-2) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Removing old zfs-0.7.12 DKMS files...

------------------------------
Deleting module version: 0.7.12
completely from the DKMS tree.
------------------------------
Done.
Loading new zfs-0.7.12 DKMS files...
It is likely that 4.9.0-8-amd64 belongs to a chroot's host
Building for 4.19.0-2-686
Building initial module for 4.19.0-2-686
Error! Bad return status for module build on kernel: 4.19.0-2-686 (x86_64)
Consult /var/lib/dkms/zfs/0.7.12/build/make.log for more information.
dpkg: error processing package zfs-dkms (--configure):
 installed zfs-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 zfs-dkms


Looking at make.log, it fails here:

   gcc-8 -Wp,-MD,/var/lib/dkms/zfs/0.7.12/build/module/icp/asm-x86_64/aes/.aeskey.o.d  -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/8/include -I/usr/src/linux-headers-4.19.0-2-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.19.0-2-common/include -I./include -I/usr/src/linux-headers-4.19.0-2-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.19.0-2-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.19.0-2-common/include/linux/kconfig.h -include /usr/src/linux-headers-4.19.0-2-common/include/linux/compiler_types.h  -I/var/lib/dkms/zfs/0.7.12/build/module/icp -I/var/lib/dkms/zfs/0.7.12/build/module/icp -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=geode -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-4.19.0-2-common/= -Wno-packed-not-aligned  -I/var/lib/dkms/zfs/0.7.12/build/module/icp/include -include /var/lib/dkms/spl/0.7.12/4.19.0-2-686/x86_64/spl_config.h -include /var/lib/dkms/zfs/0.7.12/build/zfs_config.h  -I/var/lib/dkms/zfs/0.7.12/build/include  -I/usr/src/spl-0.7.12/include  -I/usr/src/spl-0.7.12 -include /var/lib/dkms/spl/0.7.12/4.19.0-2-686/x86_64/spl_config.h -include /var/lib/dkms/zfs/0.7.12/build/zfs_config.h  -I/var/lib/dkms/zfs/0.7.12/build/include  -I/usr/src/spl-0.7.12/include  -I/usr/src/spl-0.7.12 -std=gnu99 -Wno-declaration-after-statement -Wno-unused-but-set-variable -Wno-bool-compare -DHAVE_SPL -D_KERNEL -DTEXT_DOMAIN=\"zfs-linux-kernel\" -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"aeskey"' -DKBUILD_MODNAME='"icp"' -c -o /var/lib/dkms/zfs/0.7.12/build/module/icp/asm-x86_64/aes/.tmp_aeskey.o /var/lib/dkms/zfs/0.7.12/build/module/icp/asm-x86_64/aes/aeskey.c
 
In file included from /var/lib/dkms/zfs/0.7.12/build/module/icp/asm-x86_64/aes/aeskey.c:29:
/var/lib/dkms/zfs/0.7.12/build/module/icp/asm-x86_64/aes/aesopt.h:219:2: error: #error Assembler code is only available for x86 and AMD64 systems
 #error Assembler code is only available for x86 and AMD64 systems
  ^~~~~
make[7]: *** [/usr/src/linux-headers-4.19.0-2-common/scripts/Makefile.build:308: /var/lib/dkms/zfs/0.7.12/build/module/icp/asm-x86_64/aes/aeskey.o] Error 1


The code in aesopt.h seems to unconditionally define ASM_AMD64_C (line 213),
which is not correct for this target platform, s.t. it errors out (line 219).



Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zfs-dkms_0.7.12-2_i386_make.log.gz
Type: application/gzip
Size: 12650 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-zfsonlinux-devel/attachments/20190130/3e6b2e45/attachment.gz>


More information about the Pkg-zfsonlinux-devel mailing list