openSUSE Tumbleweed kernel 4.13.1 dkms error building

Backup agent for Linux servers and workstations on-premises or in the public cloud

openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby philipraets » Fri Sep 15, 2017 8:43 pm

Hi,

on openSUSE Tumbleweed with latest kernel 4.13.1 veeamsnap doesn't build.

this is the first error:
Code: Select all
HOSTNAME:/home/user # dkms install -m veeamsnap -v 1.0.1.364

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.13.1-1-default -C /lib/modules/4.13.1-1-default/build M=/var/lib/dkms/veeamsnap/1.0.1.364/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.13.1-1-default (x86_64)
Consult /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log for more information.

HOSTNAME:/home/user # more /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.13.1-1-default (x86_64)
vr sep 15 22:39:29 CEST 2017
make: Entering directory '/usr/src/linux-4.13.1-1-obj/x86_64/default'
  AR      /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_bitmap.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container.o
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c: In function ‘dbg_kmalloc_huge’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: error: ‘__GFP_REPEAT’ undeclared (first use in this function); did you mean ‘__GFP_RECLAIM
’?
   ptr = dbg_kmalloc( max_size, flags | __GFP_NOWARN | __GFP_REPEAT);
                                                       ^~~~~~~~~~~~
                                                       __GFP_RECLAIM
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/usr/src/linux-4.13.1-1/scripts/Makefile.build:309: /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-4.13.1-1/Makefile:1522: _module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2
make[1]: *** [Makefile:145: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-4.13.1-1-obj/x86_64/default'


I switched "GFP_REPEAT" with GFP_RETRY_MAYFAIL", but the errors keep coming:

Code: Select all
HOSTNAME:/home/user # dkms install -m veeamsnap -v 1.0.1.364

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.13.1-1-default -C /lib/modules/4.13.1-1-default/build M=/var/lib/dkms/veeamsnap/1.0.1.364/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.13.1-1-default (x86_64)
Consult /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log for more information.

HOSTNAME:/home/user # more /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.13.1-1-default (x86_64)
vr sep 15 22:36:47 CEST 2017
make: Entering directory '/usr/src/linux-4.13.1-1-obj/x86_64/default'
  AR      /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_bitmap.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/queue_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/bitmap_sync.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/log.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/page_array.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/rangeset.o
In file included from /var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.c:7:0:
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.h: In function ‘blk_bio_end’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.h:77:7: error: ‘struct bio’ has no member named ‘bi_error’; did you mean ‘bi_iter’?
  bio->bi_error = err;
       ^~~~~~~~
       bi_iter
/var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.c: In function ‘dio_bioset_create’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.c:113:16: error: too few arguments to function ‘bioset_create’
  dio_bio_set = bioset_create( 64, sizeof( dio_bio_complete_t ) );
                ^~~~~~~~~~~~~
In file included from /usr/src/linux-4.13.1-1/include/linux/blkdev.h:20:0,
                 from /var/lib/dkms/veeamsnap/1.0.1.364/build/stdafx.h:10,
                 from /var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.c:1:
/usr/src/linux-4.13.1-1/include/linux/bio.h:390:24: note: declared here
 extern struct bio_set *bioset_create(unsigned int, unsigned int, int flags);
                        ^~~~~~~~~~~~~
In file included from /var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.c:4:0:
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.h: In function ‘blk_bio_end’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.h:77:7: error: ‘struct bio’ has no member named ‘bi_error’; did you mean ‘bi_iter’?
  bio->bi_error = err;
       ^~~~~~~~
       bi_iter
/var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.c: In function ‘dio_bio_end_io’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.c:170:20: error: ‘struct bio’ has no member named ‘bi_error’; did you mean ‘bi_iter’?
   local_err = bio->bi_error;
                    ^~~~~~~~
                    bi_iter
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.c: In function ‘blk_bioset_create’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.c:11:16: error: too few arguments to function ‘bioset_create’
  blk_bio_set = bioset_create( 64, sizeof( tracking_bio_complete_t ) );
                ^~~~~~~~~~~~~
In file included from /usr/src/linux-4.13.1-1/include/linux/blkdev.h:20:0,
                 from /var/lib/dkms/veeamsnap/1.0.1.364/build/stdafx.h:10,
                 from /var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.c:1:
/usr/src/linux-4.13.1-1/include/linux/bio.h:390:24: note: declared here
 extern struct bio_set *bioset_create(unsigned int, unsigned int, int flags);
                        ^~~~~~~~~~~~~
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.c: In function ‘tracking_bio_end_io’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.c:43:26: error: ‘struct bio’ has no member named ‘bi_error’; did you mean ‘bi_iter’?
   bio_compl->error = bb->bi_error;
                          ^~~~~~~~
                          bi_iter
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.c: In function ‘tracking_redirect_bio_endio’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.c:267:17: error: ‘struct bio’ has no member named ‘bi_error’; did you mean ‘bi_iter’?
   int err = bb->bi_error;
                 ^~~~~~~~
                 bi_iter
make[3]: *** [/usr/src/linux-4.13.1-1/scripts/Makefile.build:309: /var/lib/dkms/veeamsnap/1.0.1.364/build/dio_request.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-4.13.1-1/scripts/Makefile.build:309: /var/lib/dkms/veeamsnap/1.0.1.364/build/blk_dev_utile.o] Error 1
make[2]: *** [/usr/src/linux-4.13.1-1/Makefile:1522: _module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2
make[1]: *** [Makefile:145: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-4.13.1-1-obj/x86_64/default'
philipraets
Lurker
 
Posts: 2
Liked: never
Joined: Mon Aug 21, 2017 2:59 pm
Full Name: Philip Raets

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby PTide » Mon Sep 18, 2017 11:25 am

Hi,

openSUSE Tumbleweed is not supported.

Anyway, thank you for your input, it will be passed to our development team.

Thanks
PTide
Veeam Software
 
Posts: 3291
Liked: 274 times
Joined: Tue May 19, 2015 1:46 pm

[MERGED] Fedora 26 - kernel 4.13.4 - dkms does not build

Veeam Logoby ManOrs » Thu Oct 05, 2017 8:03 am

Hello,
kernel 4.13.4 appeared in Fedora 26 repos,
veeamsnap dkms modue was not successful,
confirming https://forums.veeam.com/veeam-agent-for-linux-f41/opensuse-tumbleweed-kernel-4-13-1-dkms-error-building-t45585.html
workaround from https://forums.veeam.com/veeam-agent-for-linux-f41/fedora-26-kernel-4-12-5-dkms-does-not-build-t45018.html was reverted (same error with and without it)

here is the log:
Code: Select all
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.13.4-200.fc26.x86_64 (x86_64)
gio  5 ott 2017, 09.56.26, CEST
make: ingresso nella directory "/usr/src/kernels/4.13.4-200.fc26.x86_64"
  AR      /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c: In function ‘dbg_kmalloc_huge’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: error: ‘__GFP_REPEAT’ undeclared (first use in this function); did you mean ‘__GFP_RECLAIM’?
   ptr = dbg_kmalloc( max_size, flags | __GFP_NOWARN | __GFP_REPEAT);
                                                       ^~~~~~~~~~~~
                                                       __GFP_RECLAIM
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [scripts/Makefile.build:302: /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o] Error 1
make[1]: *** Attesa per i processi non terminati....
make: *** [Makefile:1516: _module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2
make: uscita dalla directory "/usr/src/kernels/4.13.4-200.fc26.x86_64"
ManOrs
Influencer
 
Posts: 13
Liked: 2 times
Joined: Tue Dec 20, 2016 6:39 am
Location: Italy
Full Name: Manuel Orsatti

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby PTide » Thu Oct 05, 2017 11:00 am

Hi,

Please contact our support team directly on that matter and post your case ID.

Thank you!
PTide
Veeam Software
 
Posts: 3291
Liked: 274 times
Joined: Tue May 19, 2015 1:46 pm

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby ManOrs » Thu Oct 05, 2017 12:17 pm

Hello PTide,
here is the ticket id: 02334913

thanks
ManOrs
Influencer
 
Posts: 13
Liked: 2 times
Joined: Tue Dec 20, 2016 6:39 am
Location: Italy
Full Name: Manuel Orsatti

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby ManOrs » Fri Oct 06, 2017 9:07 am 1 person likes this post

support fixed it
ManOrs
Influencer
 
Posts: 13
Liked: 2 times
Joined: Tue Dec 20, 2016 6:39 am
Location: Italy
Full Name: Manuel Orsatti

[MERGED] Re: Fedora 26 - kernel 4.12.5 - dkms does not build

Veeam Logoby rokko74 » Sun Oct 08, 2017 2:46 pm

kernel 4.13.4-200.fc26.x86_64 dkms does not build (no workaround yet?):

# cat /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.13.4-200.fc26.x86_64 (x86_64)
dom 8 ott 2017, 16.44.31, CEST
make: ingresso nella directory "/usr/src/kernels/4.13.4-200.fc26.x86_64"
AR /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o
CC [M] /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o
CC [M] /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c: In function ‘dbg_kmalloc_huge’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: error: ‘__GFP_REPEAT’ undeclared (first use in this function); did you mean ‘__GFP_RECLAIM’?
ptr = dbg_kmalloc( max_size, flags | __GFP_NOWARN | __GFP_REPEAT);
^~~~~~~~~~~~
__GFP_RECLAIM
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [scripts/Makefile.build:302: /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o] Error 1
make[1]: *** Attesa per i processi non terminati....
make: *** [Makefile:1516: _module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2
make: uscita dalla directory "/usr/src/kernels/4.13.4-200.fc26.x86_64"
rokko74
Lurker
 
Posts: 2
Liked: 1 time
Joined: Tue Sep 12, 2017 7:24 pm
Full Name: Roberto

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby PTide » Mon Oct 09, 2017 9:48 am

Please contact our support team directly so they can provide you with a hotfix, and post your case ID here.

Thank you
PTide
Veeam Software
 
Posts: 3291
Liked: 274 times
Joined: Tue May 19, 2015 1:46 pm

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby linuxdrake » Sun Oct 15, 2017 1:51 pm

Opened case 02345912

For unable to build from source the veeamsnap module, on FC26 on kernel 4.13.4-200.fc26.x86_64
linuxdrake
Lurker
 
Posts: 2
Liked: never
Joined: Thu Sep 01, 2016 5:19 pm

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby deeler » Wed Oct 25, 2017 12:34 pm

Hi

I have the same issue with Debian. Was there a response from veeam support already?
I like to know how to fix it, or a workaround


Code: Select all
root@cs:~# more  /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.13.0-1-amd64 (x86_64)
Wed Oct 25 14:07:01 CEST 2017
make: Entering directory '/usr/src/linux-headers-4.13.0-1-amd64'
  AR      /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_bitmap.o
  CC [M]  /var/lib/dkms/veeamsnap/1.0.1.364/build/container.o
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c: In function ‘dbg_kmalloc_huge’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: error: ‘__GFP_REPEAT’ undeclared (first use in this function)
   ptr = dbg_kmalloc( max_size, flags | __GFP_NOWARN | __GFP_REPEAT);
                                                       ^~~~~~~~~~~~
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/linux-headers-4.13.0-1-common/scripts/Makefile.build:307: recipe for target '/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o' failed
make[3]: *** [/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/src/linux-headers-4.13.0-1-common/Makefile:1529: recipe for target '_module_/var/lib/dkms/veeamsnap/1.0.1.364/build' failed
make[2]: *** [_module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.13.0-1-amd64'




Code: Select all
root@cs:~# uname -na
Linux cs 4.13.0-1-amd64 #1 SMP Debian 4.13.4-1 (2017-10-01) x86_64 GNU/Linux



thanks!
deeler
Lurker
 
Posts: 2
Liked: never
Joined: Wed Oct 25, 2017 12:30 pm
Full Name: Dieter Vanwijnsberghe

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby PTide » Thu Oct 26, 2017 1:36 pm

The fix should work for Debain as well, please contact support directly.

Thanks
PTide
Veeam Software
 
Posts: 3291
Liked: 274 times
Joined: Tue May 19, 2015 1:46 pm

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby deeler » Fri Oct 27, 2017 12:40 pm

okay, but why not share the fix?
deeler
Lurker
 
Posts: 2
Liked: never
Joined: Wed Oct 25, 2017 12:30 pm
Full Name: Dieter Vanwijnsberghe

Re: openSUSE Tumbleweed kernel 4.13.1 dkms error building

Veeam Logoby vmniels » Fri Oct 27, 2017 2:20 pm

This way we can assist you incase the fix doesn't work for a specific OS. Once it is proven it will be included in the next version.
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be
vmniels
Veeam Software
 
Posts: 1658
Liked: 369 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen


Return to Veeam Agent for Linux



Who is online

Users browsing this forum: No registered users and 1 guest