Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
suempu
Lurker
Posts: 2
Liked: 1 time
Joined: Sep 20, 2018 9:13 am
Contact:

debian 10 - kernel 4.18.0-1-amd64 - dkms does not build

Post by suempu »

Hello

After the latest update to kernel 4.18.0-1-amd64 veeamsnap module was not able to build. It worked on kernel: 4.17.0-3-amd64.

Code: Select all

root@amos:~# modprobe veeamsnap
modprobe: FATAL: Module veeamsnap not found in directory /lib/modules/4.18.0-1-amd64

Code: Select all

Loading new veeamsnap-2.0.1.665 DKMS files...
Building for 4.18.0-1-amd64
Building initial module for 4.18.0-1-amd64
Error! Bad return status for module build on kernel: 4.18.0-1-amd64 (x86_64)
Consult /var/lib/dkms/veeamsnap/2.0.1.665/build/make.log for more information.
dpkg: error processing package veeamsnap (--configure):
 installed veeamsnap package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of veeam:
 veeam depends on veeamsnap (= 2.0.1.665); however:
  Package veeamsnap is not configured yet.

dpkg: error processing package veeam (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 veeamsnap
 veeam
/var/lib/dkms/veeamsnap/2.0.1.665/build/make.log:

Code: Select all

DKMS make.log for veeamsnap-2.0.1.665 for kernel 4.18.0-1-amd64 (x86_64)
Thu Sep 20 13:38:49 CEST 2018
make: Entering directory '/usr/src/linux-headers-4.18.0-1-amd64'
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/log.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/sparse_array_1lv.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/sparse_bitmap.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/container.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/container_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/queue_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/bitmap_sync.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/page_array.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/rangelist.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/rangevector.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.o
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.o
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.c:4:0:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.o
cc1: some warnings being treated as errors
  CC [M]  /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.o
make[3]: *** [/usr/src/linux-headers-4.18.0-1-common/scripts/Makefile.build:323: /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.c:3:0:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.h:2:0,
                 from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.c:2:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.c: In function ‘blk_deferred_bioset_free’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.c:177:3: error: implicit declaration of function ‘bioset_free’; did you mean ‘bvec_free’? [-Werror=implicit-function-declaration]
   bioset_free( BlkDeferredBioset );
   ^~~~~~~~~~~
   bvec_free
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.c: In function ‘blk_direct_bioset_free’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.c:26:3: error: implicit declaration of function ‘bioset_free’; did you mean ‘bvec_free’? [-Werror=implicit-function-declaration]
   bioset_free( BlkDirectBioset );
   ^~~~~~~~~~~
   bvec_free
In file included from /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.c:2:0:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: error: implicit declaration of function ‘bioset_create’; did you mean ‘blk_bioset_create’? [-Werror=implicit-function-declaration]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~
         blk_bioset_create
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_util.h:121:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return bioset_create(64, front_pad, BIOSET_NEED_BVECS | BIOSET_NEED_RESCUER);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.c: In function ‘blk_redirect_bioset_free’:
/var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.c:23:3: error: implicit declaration of function ‘bioset_free’; did you mean ‘bvec_free’? [-Werror=implicit-function-declaration]
   bioset_free( BlkRedirectBioset );
   ^~~~~~~~~~~
   bvec_free
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-4.18.0-1-common/scripts/Makefile.build:323: /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_direct.o] Error 1
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-4.18.0-1-common/scripts/Makefile.build:323: /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_deferred.o] Error 1
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-4.18.0-1-common/scripts/Makefile.build:323: /var/lib/dkms/veeamsnap/2.0.1.665/build/blk_redirect.o] Error 1
make[2]: *** [/usr/src/linux-headers-4.18.0-1-common/Makefile:1518: _module_/var/lib/dkms/veeamsnap/2.0.1.665/build] Error 2
make[1]: *** [Makefile:146: sub-make] Error 2
make: *** [Makefile:8: all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.18.0-1-amd64'
We know debian 10 is not officially supported, but is there a way to use it anyways? That would be great. Thanks
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: debian 10 - kernel 4.18.0-1-amd64 - dkms does not build

Post by PTide » 1 person likes this post

Hi,

It's not just Debian 10, kernel 4.18 is yet to be supported in the next versions. If you're not afraid of patching things, then please check this thread.
Just keep in mind that although it works, it is still not supported until official announcement.

Thanks
t0by
Lurker
Posts: 1
Liked: 3 times
Joined: Sep 21, 2018 4:16 pm
Full Name: Tobias Ehrig
Contact:

Re: debian 10 - kernel 4.18.0-1-amd64 - dkms does not build

Post by t0by » 3 people like this post

This works on my box:

Code: Select all

cd /tmp
git clone https://github.com/rustylife/veeamsnap.git
cd veeamsnap/source
make all
sudo make load

# Start your backup! :) 
sudo veeam

suempu
Lurker
Posts: 2
Liked: 1 time
Joined: Sep 20, 2018 9:13 am
Contact:

Re: debian 10 - kernel 4.18.0-1-amd64 - dkms does not build

Post by suempu » 1 person likes this post

Thanks for your fast answer. This is perfect.
Retrofreak
Influencer
Posts: 10
Liked: 1 time
Joined: Jan 06, 2018 9:37 am
Full Name: Mirko
Contact:

Re: debian 10 - kernel 4.18.0-1-amd64 - dkms does not build

Post by Retrofreak »

Thanks for this hint! It works well to compile the veeamsnap module this way. But I have to load the so compiled module manually after each reboot. Is there an option to make this persistant?
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: debian 10 - kernel 4.18.0-1-amd64 - dkms does not build

Post by PTide »

Hi,

I would go with the easiest route and just add a small script in crontab. There also an option to add it in /etc/modules.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests