[DRBD-user] building v9

Pierre-Philipp Braun pbraun at nethence.com
Sat Dec 5 04:21:28 CET 2020


Hello

I am having troubles building the v9 module although I tried with various releases and against many kernel versions.

With branch drbd-9.0 and drbd-9.0.26-0rc2 against stock Ubuntu 5.8.0-31-generic

In file included from /root/tp/drbd/drbd/drbd_main.c:19:
./include/linux/vermagic.h:6:2: error: #error "This header can be included from kernel/module.c or *.mod.c only"
    6 | #error "This header can be included from kernel/module.c or *.mod.c only"
      |  ^~~~~

With release drbd-9.0.25-2 against stock Ubuntu 5.8.0-31-generic

/root/tp/drbd-9.0.25-2/drbd/drbd_bitmap.c: In function 'bm_realloc_pages':
/root/tp/drbd-9.0.25-2/drbd/drbd_bitmap.c:368:15: error: too many arguments to function '__vmalloc'
  368 |   new_pages = __vmalloc(bytes,
      |               ^~~~~~~~~

With branch drbd-9.0 and drbd-9.0.26-0rc2 against vanilla+reiser4 linux-5.9.11

  SPATCH   5470857a83aa446cd991bcef3cdf804a  5.9.11.xenreiser4
make[3]: *** [Makefile:177: drbd-kernel-compat/cocci_cache/5470857a83aa446cd991bcef3cdf804a/compat.patch] Error 1
make[2]: *** [/root/tp/drbd/drbd/Kbuild:135: /root/tp/drbd/drbd/drbd-kernel-compat/compat.patch] Error 2
make[1]: *** [Makefile:1784: /root/tp/drbd/drbd] Error 2
make: *** [Makefile:132: kbuild] Error 2

With release drbd-9.0.25-2 against vanilla+reiser4 linux-5.9.11

  GENPATCHNAMES   5.9.11.xenreiser4
cat: drbd-kernel-compat/patches/claim_disk__no_link__no_claim.patch: No such file or directory
make[3]: *** [Makefile:177: drbd-kernel-compat/cocci_cache/a89eb518bd21910d66ac3e0b5527f221/compat.patch] Error 1
make[2]: *** [/root/tp/drbd-9.0.25-2/drbd/Kbuild:135: /root/tp/drbd-9.0.25-2/drbd/drbd-kernel-compat/compat.patch] Error 2
make[1]: *** [Makefile:1784: /root/tp/drbd-9.0.25-2/drbd] Error 2
make: *** [Makefile:132: kbuild] Error 2

What am I missing?  That's really hard to built and assistance would be much appreciated.

PS: Coccinelle is only needed for backwards compatibility, right?  Is there a way to avoid its usage while using a recent enough kernel?

Thanks
-- 
Pierre-Philipp


More information about the drbd-user mailing list