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

Documentation: Custom Package Howto does not contain build dependencies for pyzfs #8322

jwittlincohen opened this issue Jan 21, 2019 · 5 comments


Copy link

@jwittlincohen jwittlincohen commented Jan 21, 2019

Distribution Name | Debian
Distribution Version | 9.6
Linux Kernel | 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
Architecture | x64
ZFS Version | 0.8.0-rc3
SPL Version | 0.8.0-rc3

Describe the problem you're observing

Despite installing all the build dependencies listed in the ZFS Custom Package Howto, make -j1 deb fails with the following error:

configure: error: "Python >= '3.4.0' development library is not installed

This appears to be due to the fact that the Howto has not been updated to reflect the requirements of pyzfs, a feature that was added in 0.8.0-rc3. The Howto also does not mention that 0.8.0 does not have separate SPL packages.

I'm quite confident the issue is caused by pyzfs because: 1) I was able to build the 0.8.0-rc2 source without issue, and 2) 0.8.0-rc3 can be built with ./configure --disable-pyzfs without failure.

Describe how to reproduce the problem

  1. Install a fresh Debian Stretch (9.6) VM
  2. Install all build dependencies listed at ZFS Custom Package Howto
  3. Follow instructions to build kmod packages for Debian. The failure occurs at the make -j1 deb step.


Use ./configure --disable-pyzfs

Copy link

@gmelikov gmelikov commented Jan 22, 2019

Updated, thank you!

@gmelikov gmelikov closed this Jan 22, 2019
Copy link

@geppi geppi commented Jan 29, 2019

On debian just "sudo apt-get install python3" is not sufficient.
You also need to install: python3-dev python3-setuptools python3-cffi
Please update the Howto.

Copy link
Contributor Author

@jwittlincohen jwittlincohen commented Feb 7, 2019

@gmelikov Would you mind updating the Howto to add the additional dependencies noted by @geppi? I attempted a fresh install with python3 installed and it gives the same error. When I installed the additional dependencies, the build process completed successfully.

Copy link

@gmelikov gmelikov commented Feb 9, 2019

@geppi @jwittlincohen sorry for late response, thank you, I've updated the wiki for Debian and Centos.

Copy link

@MasterCATZ MasterCATZ commented Apr 1, 2020

Ubuntu 20.04

checking for system type (linux-gnu)... Linux
checking for python version... 3.8
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.8/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.8/site-packages
checking for python3.8... /usr/bin/python3
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= '3.4.0'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python3.8
checking for Python library path... -L/usr/lib -lpython3.8
checking for Python site-packages path... /usr/lib/python3/dist-packages
checking python extra libraries... -lcrypt -lpthread -ldl -lutil -lm -lm
checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
checking consistency of all components of python development environment... no
configure: error: "Python >= '3.4.0' development library is not installed"
error: Bad exit status from /tmp/zfs-build-aio-VGXD5Ogl/TMP/rpm-tmp.K4qAeE (%build)

RPM build errors:
Bad exit status from /tmp/zfs-build-aio-VGXD5Ogl/TMP/rpm-tmp.K4qAeE (%build)
make[1]: *** [Makefile:1339: rpm-common] Error 1
make[1]: Leaving directory '/home/aio/Programs/zfs'
make: *** [Makefile:1298: rpm-utils] Error 2


sudo apt install python3-dev python3-setuptools python3-cffi
[sudo] password for aio:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-cffi is already the newest version (1.14.0-1build1).
python3-dev is already the newest version (3.8.2-0ubuntu1).
python3-setuptools is already the newest version (45.2.0-1).
0 to upgrade, 0 to newly install, 0 to remove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants