[DRBD-user] DRBD 8.4 modules not build on RHEL 7.5

Werner Langemeyer Werner.Langemeyer at erst-technology.com
Fri Apr 20 14:46:30 CEST 2018


Dear all,

 

After upgrading my RHEL7 system to RHEL 7.5; Kernel Version
3.10.0-862.el7.x86_64, I’m not able to build any of the 8.4 DRBD modules any
more. It was okay before the upgrade, what do I miss?

 

See below the Screen from a failed build:

 

[root at devel-rhel7 drbd-8.4.10-1]# make km-rpm

checking for presence of 8\.4\.10-1 in various changelog files

drbd-km.spec:8.4.10-1

drbd-kernel.spec:8.4.10-1%{?dist}

ChangeLog:8.4.10-1 (api:genl1/proto:86-101)

test -s .filelist

rm -f drbd-8.4.10-1

ln -s . drbd-8.4.10-1

for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit
1; done

grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \

test -n "$KEEPNAME" && _DEB="" || :; \

tar --owner=0 --group=0 -czf - -T .filelist > drbd-8.4.10-1$_DEB.tar.gz

rm drbd-8.4.10-1

cp drbd-8.4.10-1.tar.gz `rpm -E "%_sourcedir"`

rpmbuild -bb \

    --define "kernelversion `uname -r`" \

    --define "kdir /lib/modules/`uname -r`/build" \

     \

    drbd-km.spec

kernelversion=3.10.0-862.el7.x86_64

kdir=/lib/modules/3.10.0-862.el7.x86_64/build

kernel_devel_rpm=kernel

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.l3ORvu

+ umask 022

+ cd /root/rpmbuild/BUILD

+ cd /root/rpmbuild/BUILD

+ rm -rf drbd-8.4.10-1

+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/drbd-8.4.10-1.tar.gz

+ /usr/bin/tar -xf -

+ STATUS=0

+ '[' 0 -ne 0 ']'

+ cd drbd-8.4.10-1

+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .

+ test -d /lib/modules/3.10.0-862.el7.x86_64/build/.

++ KDIR=/lib/modules/3.10.0-862.el7.x86_64/build

++ scripts/get_uts_release.sh

+ test 3.10.0-862.el7.x86_64 = 3.10.0-862.el7.x86_64

+ exit 0

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cgd0Lu

+ umask 022

+ cd /root/rpmbuild/BUILD

+ cd drbd-8.4.10-1

+ echo kernelversion=3.10.0-862.el7.x86_64

kernelversion=3.10.0-862.el7.x86_64

+ echo 'kversion=%{kversion}'

kversion=%{kversion}

+ echo krelver=3.10.0_862.el7.x86_64

krelver=3.10.0_862.el7.x86_64

+ make module KDIR=/lib/modules/3.10.0-862.el7.x86_64/build

make[1]: Entering directory `/root/rpmbuild/BUILD/drbd-8.4.10-1'

Need a git checkout to regenerate drbd/.drbd_git_revision

make[2]: Entering directory `/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd'

 

    Calling toplevel makefile of kernel source tree, which I believe is in

    KDIR=/lib/modules/3.10.0-862.el7.x86_64/build

 

make -C /lib/modules/3.10.0-862.el7.x86_64/build
SUBDIRS=/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd  modules

  COMPAT  have_pointer_backing_dev_info

  COMPAT  use_blk_queue_max_sectors_anyways

  COMPAT  have_inode_lock

  COMPAT  have_kvfree

  COMPAT  have_cpumask_empty

 COMPAT  drbd_release_returns_void

  COMPAT  have_blk_queue_split

  COMPAT  have_genl_register_family_with_ops

  COMPAT  have_blk_queue_merge_bvec

  COMPAT  have_dst_groups

  COMPAT  have_f_path_dentry

  COMPAT  blkdev_issue_zeroout_blkdev_ifl_wait

  COMPAT  have_ctrl_attr_mcast_groups

  COMPAT  have_vzalloc

  COMPAT  have_blk_set_stacking_limits

  COMPAT  have_clear_bit_unlock

  COMPAT  have_prandom_u32

  COMPAT  hlist_for_each_entry_has_three_parameters

  COMPAT  have_proc_pde_data

  COMPAT  have_fmode_t

  COMPAT  have_struct_queue_limits

  COMPAT  have_bd_claim_by_disk

  COMPAT  have_linux_byteorder_swabb_h

  COMPAT  queue_limits_has_discard_granularity

  COMPAT  have_idr_alloc

  COMPAT  have_umh_wait_proc

  COMPAT  queue_limits_has_discard_zeroes_data

  COMPAT  have_SHASH_DESC_ON_STACK

  COMPAT  have_nlmsg_hdr

  COMPAT  have_struct_bvec_iter

  COMPAT  have_blk_queue_max_hw_sectors

  COMPAT  have_blk_plug_cb_data

  COMPAT  sock_create_kern_has_five_parameters

  COMPAT  have_AHASH_REQUEST_ON_STACK

  COMPAT  have_blk_qc_t_make_request

  COMPAT  have_bd_unlink_disk_holder

  COMPAT  have_nla_put_64bit

  COMPAT  init_work_has_three_arguments

  COMPAT  bio_split_has_bio_split_pool_parameter

  COMPAT  have_bio_set_op_attrs

  COMPAT  have_IS_ERR_OR_NULL

  COMPAT  have_genlmsg_put_reply

  COMPAT  have_WB_congested_enum

  COMPAT  have_signed_nla_put

  COMPAT  bioset_create_has_three_parameters

  COMPAT  have_is_vmalloc_addr

  COMPAT  have_proc_create_data

  COMPAT  have_open_bdev_exclusive

  COMPAT  kmap_atomic_page_only

  COMPAT  have_list_splice_tail_init

  COMPAT  have_bio_bi_error

  COMPAT  have_shash_desc_zero

  COMPAT  have_blk_queue_write_cache

  COMPAT  have_task_pid_nr

  COMPAT  have_genlmsg_reply

  COMPAT  have_genlmsg_msg_size

  COMPAT  have_blkdev_get_by_path

  COMPAT  have_bool_type

  COMPAT  have_bio_bi_destructor

  COMPAT  have_genl_id_generate

  COMPAT  need_d_inode

  COMPAT  have_sock_shutdown

  COMPAT  have_idr_for_each_entry

  COMPAT  have_blk_queue_max_segments

  COMPAT  have_refcount_inc

  COMPAT  have_void_make_request

  COMPAT  have_genl_family_in_genlmsg_multicast

  COMPAT  have_genl_lock

  COMPAT  have_cn_netlink_skb_parms

  COMPAT  have_atomic_in_flight

  COMPAT  have_bdev_discard_alignment

  COMPAT  have_genlmsg_new

  COMPAT  have_idr_is_empty

  COMPAT  have_kref_get_unless_zero

  COMPAT  have_rb_augment_functions

  COMPAT  have_idr_for_each

  COMPAT  have_simple_positive

  COMPAT  have_genl_register_family_with_ops3

  COMPAT  have_debugfs_create_symlink

  COMPAT  have_bioset_create_front_pad

  COMPAT  have_security_netlink_recv

  COMPAT  have_generic_start_io_acct

  COMPAT  have_nr_cpu_ids

  COMPAT  need_genlmsg_multicast_wrapper

  COMPAT  have_find_next_zero_bit_le

  COMPAT  have_netlink_skb_parms_portid

  COMPAT  blkdev_issue_zeroout_discard

  CHK     /root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/compat.h

  UPD     /root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/compat.h

  CC [M]  /root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_debugfs.o

  CC [M]  /root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_bitmap.o

/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_bitmap.c: In function
'bm_page_io_async':

/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_bitmap.c:1049:3: warning:
passing argument 1 of 'submit_bio' makes integer from pointer without a cast
[enabled by default]

   submit_bio(bio);

   ^

In file included from include/linux/huge_mm.h:5:0,

                 from include/linux/mm.h:394,

                 from include/linux/scatterlist.h:6,

                 from include/linux/dmaengine.h:27,

                 from include/linux/skbuff.h:33,

                 from include/linux/tcp.h:21,

                 from /root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_int.h:38,

                 from
/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_bitmap.c:35:

include/linux/fs.h:2931:13: note: expected 'int' but argument is of type
'struct bio *'

extern void submit_bio(int, struct bio *);

             ^

/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_bitmap.c:1049:3: error: too few
arguments to function 'submit_bio'

   submit_bio(bio);

   ^

In file included from include/linux/huge_mm.h:5:0,

                 from include/linux/mm.h:394,

                 from include/linux/scatterlist.h:6,

                 from include/linux/dmaengine.h:27,

                 from include/linux/skbuff.h:33,

                 from include/linux/tcp.h:21,

                 from /root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_int.h:38,

                 from
/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_bitmap.c:35:

include/linux/fs.h:2931:13: note: declared here

extern void submit_bio(int, struct bio *);

             ^

make[4]: *** [/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd/drbd_bitmap.o] Error 1

make[3]: *** [_module_/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd] Error 2

make[2]: *** [kbuild] Error 2

make[2]: Leaving directory `/root/rpmbuild/BUILD/drbd-8.4.10-1/drbd'

make[1]: *** [module] Error 2

make[1]: Leaving directory `/root/rpmbuild/BUILD/drbd-8.4.10-1'

error: Bad exit status from /var/tmp/rpm-tmp.cgd0Lu (%build)

 

 

RPM build errors:

    Bad exit status from /var/tmp/rpm-tmp.cgd0Lu (%build)

make: *** [km-rpm] Error 1

[root at devel-rhel7 drbd-8.4.10-1]#

 

Mit freundlichen Grüßen / Best regards

Werner Langemeyer

 

ERST Technology GmbH

Högerdamm 39, 20097 Hamburg

Tel: +49 40 2369 060

Fax: +49 40 2286 984 19

 

E-Mail: Werner.Langemeyer at erst-technology.com

Internet: http://www.erst-technology.com

 

Geschäftsführer: Thomas Huben

Amtsgericht Hamburg: HRB 73331

Ust-IdNr: DE812828770

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180420/1b370ca0/attachment-0001.htm>


More information about the drbd-user mailing list