[Pkg-zfsonlinux-devel] Bug#717565: spl-dkms: Fails to build against Linux 3.10

Andreas Beckmann anbe at debian.org
Sat Aug 24 14:13:37 UTC 2013


Followup-For: Bug #717565
Control: found -1 0.6.1-2

Hi,

the package still fails to build a module:

[...]
Setting up spl-dkms (0.6.1-2) ...
Loading new spl-0.6.1 DKMS files...
First Installation: checking all kernels...
dpkg: warning: version '*-*' has bad syntax: version number does not start with digit
It is likely that 3.7-trunk-amd64 belongs to a chroot's host
Building initial module for 3.10-2-amd64
/var/lib/dkms/spl/0.6.1/build/config/missing: Unknown `--is-lightweight' option
Try `/var/lib/dkms/spl/0.6.1/build/config/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/var/lib/dkms/spl/0.6.1/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error! Bad return status for module build on kernel: 3.10-2-amd64 (x86_64)
Consult /var/lib/dkms/spl/0.6.1/build/make.log for more information.
Processing triggers for libc-bin ...

# cat /var/lib/dkms/spl/0.6.1/build/make.log
DKMS make.log for spl-0.6.1 for kernel 3.10-2-amd64 (x86_64)
Sat Aug 24 13:39:43 UTC 2013
make: *** No targets specified and no makefile found.  Stop.

config.log contains:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ /var/lib/dkms/spl/0.6.1/build/configure --prefix=/usr --with-config=kernel --with-linux=/lib/modules/3.10-2-amd64/source --with-linux-obj=/lib/modules/3.10-2-amd64/build
[...]
configure:3442: checking whether the C compiler works
configure:3464: gcc    conftest.c  >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3468: $? = 1
configure:3506: result: no
configure: failed program was:
[...]
configure:3511: error: in `/var/lib/dkms/spl/0.6.1/build':
configure:3513: error: C compiler cannot create executables
See `config.log' for more details

OK, you are missing a dependency on libc-dev.

Now this looks better:

Setting up spl-dkms (0.6.1-2) ...
Loading new spl-0.6.1 DKMS files...
First Installation: checking all kernels...
dpkg: warning: version '*-*' has bad syntax: version number does not start with digit
It is likely that 3.7-trunk-amd64 belongs to a chroot's host
Building initial module for 3.10-2-amd64
/var/lib/dkms/spl/0.6.1/build/config/missing: Unknown `--is-lightweight' option
Try `/var/lib/dkms/spl/0.6.1/build/config/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
/var/lib/dkms/spl/0.6.1/build/configure: line 6423: /usr/bin/file: No such file or directory
Done.

spl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.10-2-amd64/updates/dkms/

splat.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.10-2-amd64/updates/dkms/

Running the post_install script:

depmod....

DKMS: install completed.


So, spl-dkms is missing

  Depends: libc6-dev [!alpha !ia64 !hurd-i386] | libc0.3-dev [hurd-i386] | libc6.1-dev [alpha ia64] | libc-dev, file

Alternatively

  Depends: build-essential, file


And some autofoo changes might be useful to get rid of

  configure: WARNING: 'missing' script is too old or missing


Andreas



More information about the Pkg-zfsonlinux-devel mailing list