Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZFS-SPL does not build on linux kernel 4.19.0-0.bpo.6-amd64 under debian 9 #9496

Closed
Berghopper opened this issue Oct 22, 2019 · 5 comments
Closed
Labels
Status: Stale No recent activity for issue Type: Building Indicates an issue related to building binaries

Comments

@Berghopper
Copy link

System information

Type Version/Name
Distribution Name Debian
Distribution Version 9.0 (stretch)
Linux Kernel 4.19.0-0.bpo.6-amd64
Architecture x86_64
ZFS Version 0.6.5.9
SPL Version 0.6.5.9

Describe the problem you're observing

When I tried upgrading my debian kernel for better support of my ryzen cpu, several modules needed updating including zfs. I then tried building the kernel headers needed but this did not work, the configure does not correctly finish and thus the make command cannot install spl.

Describe how to reproduce the problem

  1. Upgrade debian 9 kernel from 4.9.0.6 to 4.19.0-0.bpo.6-amd64
  2. Try update zfs deps with the following apt-get command; sudo apt install --yes dpkg-dev linux-headers-$(uname -r) linux-image-amd64
  3. cry because of errors (full terminal output down below)

Include any warning/errors/backtraces from the system logs

# upgraded from 4.9.0.6

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ uname -a
Linux debianserver 4.19.0-0.bpo.6-amd64 #1 SMP Debian 4.19.67-2+deb10u1~bpo9+1 (2019-09-30) x86_64 GNU/Linux

$ sudo apt install --yes dpkg-dev linux-headers-$(uname -r) linux-image-amd64

Setting up linux-headers-4.19.0-0.bpo.6-amd64 (4.19.67-2+deb10u1~bpo9+1) ...

/etc/kernel/header_postinst.d/dkms:
configure: error: unknown
Error! Bad return status for module build on kernel: 4.19.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/spl/0.6.5.9/build/make.log for more information.

$ cat /var/lib/dkms/spl/0.6.5.9/build/make.log
DKMS make.log for spl-0.6.5.9 for kernel 4.19.0-0.bpo.6-amd64 (x86_64)
Tue Oct 22 15:12:46 CEST 2019
make: *** No targets specified and no makefile found.  Stop.

$ cd /var/lib/dkms/spl/0.6.5.9/build/
$ sudo ./configure
checking for gawk... no
checking for mawk... mawk
checking metadata... META file
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking spl author... OpenZFS on Linux
checking spl license... GPL
checking linux distribution... debian
checking default package type... deb
checking whether rpm is available... no
checking whether rpmbuild is available... no
checking whether spec files are available... yes (rpm/generic/*.spec.in)
checking whether dpkg is available... yes (1.18.25)
checking whether dpkg-buildpackage is available... yes (1.18.25.)
checking whether alien is available... no
checking spl config... all
checking kernel source directory... /usr/src/linux-headers-4.19.0-0.bpo.6-common
checking kernel build directory... /usr/src/linux-headers-4.19.0-0.bpo.6-amd64
checking kernel source version... 4.19.0-0.bpo.6-amd64
checking kernel file name for module symbols... Module.symvers
checking whether debugging is enabled... no
checking whether basic kmem accounting is enabled... no
checking whether detailed kmem tracking is enabled... no
checking whether modules can be built... yes
checking whether atomic types use spinlocks... no
checking whether kernel defines atomic64_t... yes
checking whether old 2-argument shrinker exists... no
checking whether old 3-argument shrinker exists... no
checking whether new 2-argument shrinker exists... no
checking whether ->count_objects callback exists... yes
checking whether struct ctl_table has ctl_name... no
checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... yes
checking whether PDE_DATA() is available... yes
checking whether set_fs_pwd() requires const struct path *... yes
checking whether vfs_unlink() wants 2 args... no
checking whether vfs_unlink() wants 3 args... yes
checking whether vfs_rename() wants 4 args... no
checking whether vfs_rename() wants 5 args... no
checking whether vfs_rename() wants 6 args... yes
checking whether vfs_fsync() wants 2 args... yes
checking whether truncate_range() inode operation is available... no
checking whether struct fs_struct uses spinlock_t... yes
checking whether kuid_t/kgid_t is available... yes; mandatory
checking whether __put_task_struct() is available... no
checking whether fops->fallocate() exists... yes
checking whether iops->fallocate() exists... no
checking whether fops->fallocate() exists... no
checking whether CONFIG_ZLIB_INFLATE is defined... yes
checking whether CONFIG_ZLIB_DEFLATE is defined... yes
checking whether zlib_deflate_workspacesize() wants 2 args... yes
checking whether struct shrink_control exists... yes
checking whether struct rw_semaphore member wait_lock is raw... yes
checking whether struct rw_semaphore has member activity... no
checking whether struct rw_semaphore has atomic_long_t member count... yes
checking whether header linux/sched/rt.h exists... yes
checking whether vfs_getattr() wants... configure: error: unknown
@Berghopper
Copy link
Author

The ./configure seems to get stuck at vfs_getattr() which is a kernel call I think?

@scineram
Copy link

Your kernel is not supported.

@Berghopper
Copy link
Author

Berghopper commented Oct 22, 2019

Your kernel is not supported.

It is not the LTS one, correct. Or is it such that ZFS plainly does not support some kernels?
This majorly messed up my apt packages and caused a crashloop when trying to install anything else... (fixed and reverted now however)

@behlendorf
Copy link
Contributor

@Berghopper your kernel is supported, but only by newer versions of ZFS. I'd suggest updating to the Debian provided packages or the latest tagged release.

@stale
Copy link

stale bot commented Oct 27, 2020

This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale No recent activity for issue label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale No recent activity for issue Type: Building Indicates an issue related to building binaries
Projects
None yet
Development

No branches or pull requests

4 participants