-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Type: BuildingIndicates an issue related to building binariesIndicates an issue related to building binaries
Description
System information
| Type | Version/Name |
|---|---|
| Distribution Name | Debian |
| Distribution Version | Stretch |
| Linux Kernel | 4.9.0-6-amd64 |
| Architecture | amd64 |
| ZFS Version | 0.7.9 |
| SPL Version | 0.7.9 |
Describe the problem you're observing
During make pkg-utils deb-dkms I see errors as described in #5744.
When installing the zfs-dkms deb file, the installation fails:
asdf@stretch:~/zfs$ sudo gdebi zfs-dkms_0.7.9-1_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
Kernel module(s) (dkms)
This package contains the dkms ZFS kernel modules.
.
(Converted from a rpm package by alien version 8.95.)
Do you want to install the software package? [y/N]:y
(Reading database ... 77493 files and directories currently installed.)
Preparing to unpack zfs-dkms_0.7.9-1_amd64.deb ...
Uninstall of zfs module (zfs-0.7.9-1) beginning:
------------------------------
Deleting module version: 0.7.9
completely from the DKMS tree.
------------------------------
Done.
Unpacking zfs-dkms (0.7.9-1) over (0.7.9-1) ...
Setting up zfs-dkms (0.7.9-1) ...
Loading new zfs-0.7.9 DKMS files...
Building for 4.9.0-6-amd64
Building initial module for 4.9.0-6-amd64
configure: error: in `/var/lib/dkms/zfs/0.7.9/build':
configure: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
See `config.log' for more details
Error! Bad return status for module build on kernel: 4.9.0-6-amd64 (x86_64)
Consult /var/lib/dkms/zfs/0.7.9/build/make.log for more information.
The config.log reveals:
configure:3623: $? = 0
configure:3612: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
configure:3623: $? = 0
configure:3612: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3623: $? = 1
configure:3612: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
...
conftest.c:17:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:7806: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "zfs"
| #define PACKAGE_TARNAME "zfs"
| #define PACKAGE_VERSION "0.7.9"
| #define PACKAGE_STRING "zfs 0.7.9"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define ZFS_META_NAME "zfs"
| #define ZFS_META_VERSION "0.7.9"
| #define ZFS_META_RELEASE "1"
| #define ZFS_META_LICENSE "CDDL"
| #define ZFS_META_ALIAS "zfs-0.7.9-1"
| #define ZFS_META_AUTHOR "OpenZFS on Linux"
| #define PACKAGE "zfs"
| #define VERSION "0.7.9"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:7831: result: gcc -E
configure:7851: gcc -E conftest.c
configure:7851: $? = 0
configure:7865: gcc -E conftest.c
conftest.c:17:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
...
and other similar issues.
Note that SPL builds correctly, using DKMS.
Describe how to reproduce the problem
Build SPL and ZFS for Debian using DKMS, either from releases tarballs or Git.
cd spl
autoreconf --force --install
./configure --with-config=user
make clean
make pkg-utils deb-dkms
then install appropriate SPL debs. Then ZFS:
cd ../zfs
autoreconf --force --install
./configure --with-config=user
make clean
make pkg-utils deb-dkms
then install appropriate ZFS debs and observe errors above.
I have been through #6044, #5744, #6577 and others, but to no avail.
Metadata
Metadata
Assignees
Labels
Type: BuildingIndicates an issue related to building binariesIndicates an issue related to building binaries