Package: openafs-modules-dkms
Version: 1.8.5-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

openafs-modules-dkms/sid fails to build the kernel module for the
current kernel (5.3.0-2-amd64) in a minimal sid chroot with
linux-headers-amd64 installed:

  Setting up openafs-modules-dkms (1.8.5-1) ...
  Loading new openafs-1.8.5 DKMS files...
  It is likely that 5.2.14 belongs to a chroot's host
  Building for 5.3.0-2-amd64
  Building initial module for 5.3.0-2-amd64
  Error! Bad return status for module build on kernel: 5.3.0-2-amd64 (x86_64)
  Consult /var/lib/dkms/openafs/1.8.5/build/make.log for more information.
  dpkg: error processing package openafs-modules-dkms (--configure):
   installed openafs-modules-dkms package post-installation script subprocess 
returned error exit status 10
  Processing triggers for libc-bin (2.29-3) ...
  Errors were encountered while processing:
   openafs-modules-dkms

make.log contains:

DKMS make.log for openafs-1.8.5 for kernel 5.3.0-2-amd64 (x86_64)
Fri Nov 15 21:42:48 UTC 2019
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/var/lib/dkms/openafs/1.8.5/build':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

So the sources are looking for "gcc" while they should get the correct
compiler to use from the kernel headers ... the module must be built
with the same compiler version as the kernel itself, which is not
neccessarily the system default "gcc", and for Debian it's always a
versioned gcc-N. (The linux-headers-<arch> packages transitively
depend on the correct versioned gcc package.)


Andreas

Attachment: openafs-modules-dkms_1.8.5-1.log.gz
Description: application/gzip

Reply via email to