[DRBD-user] 9.0.28 fails to build on centos-8-stream

Fabio M. Di Nitto fdinitto at redhat.com
Fri Feb 26 07:09:29 CET 2021


hey guys,

similar to 9.0.27, log below.

Any chance you can give me a quick and dirty fix?

Thanks
Fabio

+ KSRC=/usr/src/kernels/4.18.0-277.el8.x86_64
+ /usr/bin/make -j8 module KDIR=/usr/src/kernels/4.18.0-277.el8.x86_64 
KVER=4.18.0-277.el8.x86_64
Need a git checkout to regenerate drbd/.drbd_git_revision
make[1]: Entering directory '/builddir/build/BUILD/drbd-9.0.28-1/drbd'

     Calling toplevel makefile of kernel source tree, which I believe is in
     KDIR=/usr/src/kernels/4.18.0-277.el8.x86_64

/usr/bin/make -C /usr/src/kernels/4.18.0-277.el8.x86_64 
M=/builddir/build/BUILD/drbd-9.0.28-1/drbd  modules
   COMPAT  __vmalloc_has_2_params
   COMPAT  alloc_workqueue_takes_fmt
   COMPAT  before_4_13_kernel_read
   COMPAT  blkdev_issue_zeroout_discard
   COMPAT  can_include_vermagic_h
   COMPAT  drbd_release_returns_void
   COMPAT  genl_policy_in_ops
   COMPAT  have_SHASH_DESC_ON_STACK
   COMPAT  have_WB_congested_enum
   COMPAT  have_allow_kernel_signal
   COMPAT  have_atomic_dec_if_positive_linux
   COMPAT  have_atomic_in_flight
   COMPAT  have_bd_claim_by_disk
   COMPAT  have_bd_unlink_disk_holder
   COMPAT  have_bdi_cap_stable_writes
   COMPAT  have_bdi_congested_fn
   COMPAT  have_bio_bi_bdev
   COMPAT  have_bio_bi_disk
   COMPAT  have_bio_bi_error
   COMPAT  have_bio_bi_opf
   COMPAT  have_bio_bi_status
   COMPAT  have_bio_clone_fast
   COMPAT  have_bio_flush
   COMPAT  have_bio_free
   COMPAT  have_bio_op_shift
   COMPAT  have_bio_rw
   COMPAT  have_bio_set_op_attrs
   COMPAT  have_bio_start_io_acct
   COMPAT  have_bioset_create_front_pad
   COMPAT  have_bioset_init
   COMPAT  have_bioset_need_bvecs
   COMPAT  have_blk_check_plugged
   COMPAT  have_blk_qc_t_make_request
   COMPAT  have_blk_queue_flag_set
   COMPAT  have_blk_queue_make_request
   COMPAT  have_blk_queue_merge_bvec
   COMPAT  have_blk_queue_plugged
   COMPAT  have_blk_queue_split_bio
   COMPAT  have_blk_queue_split_q_bio
   COMPAT  have_blk_queue_split_q_bio_bioset
   COMPAT  have_blk_queue_update_readahead
   COMPAT  have_blk_queue_write_cache
   COMPAT  have_blkdev_get_by_path
   COMPAT  have_d_inode
   COMPAT  have_fallthrough
   COMPAT  have_file_inode
   COMPAT  have_generic_start_io_acct_q_rw_sect_part
   COMPAT  have_generic_start_io_acct_rw_sect_part
   COMPAT  have_genl_family_parallel_ops
   COMPAT  have_ib_cq_init_attr
   COMPAT  have_ib_get_dma_mr
   COMPAT  have_idr_alloc
   COMPAT  have_idr_is_empty
   COMPAT  have_inode_lock
   COMPAT  have_ktime_to_timespec64
   COMPAT  have_kvfree
   COMPAT  have_max_send_recv_sge
   COMPAT  have_netlink_cb_portid
   COMPAT  have_nla_nest_start_noflag
   COMPAT  have_nla_parse_deprecated
   COMPAT  have_nla_put_64bit
   COMPAT  have_nla_strscpy
   COMPAT  have_part_stat_h
   COMPAT  have_pointer_backing_dev_info
   COMPAT  have_prandom_u32
   COMPAT  have_proc_create_single
   COMPAT  have_queue_flag_stable_writes
   COMPAT  have_ratelimit_state_init
   COMPAT  have_rb_augment_functions
   COMPAT  have_refcount_inc
   COMPAT  have_req_flush
   COMPAT  have_req_hardbarrier
   COMPAT  have_req_noidle
   COMPAT  have_req_nounmap
   COMPAT  have_req_op_write
   COMPAT  have_req_op_write_same
   COMPAT  have_req_op_write_zeroes
   COMPAT  have_req_prio
   COMPAT  have_req_write
   COMPAT  have_req_write_same
   COMPAT  have_revalidate_disk_size
   COMPAT  have_sched_set_fifo
   COMPAT  have_security_netlink_recv
   COMPAT  have_sendpage_ok
   COMPAT  have_shash_desc_zero
   COMPAT  have_signed_nla_put
   COMPAT  have_simple_positive
   COMPAT  have_sock_set_keepalive
   COMPAT  have_struct_bvec_iter
   COMPAT  have_struct_kernel_param_ops
   COMPAT  have_struct_size
   COMPAT  have_submit_bio
   COMPAT  have_submit_bio_noacct
   COMPAT  have_tcp_sock_set_cork
   COMPAT  have_tcp_sock_set_nodelay
   COMPAT  have_tcp_sock_set_quickack
   COMPAT  have_time64_to_tm
   COMPAT  have_timer_setup
   COMPAT  have_void_make_request
   COMPAT  hlist_for_each_entry_has_three_parameters
   COMPAT  ib_alloc_pd_has_2_params
   COMPAT  ib_device_has_ops
   COMPAT  ib_post_send_const_params
   COMPAT  ib_query_device_has_3_params
   COMPAT  kmap_atomic_page_only
   COMPAT  queue_limits_has_discard_zeroes_data
   COMPAT  need_make_request_recursion
   COMPAT  rdma_create_id_has_net_ns
   COMPAT  sock_create_kern_has_five_parameters
   COMPAT  sock_ops_returns_addr_len
   UPD 
/builddir/build/BUILD/drbd-9.0.28-1/drbd/compat.4.18.0-277.el8.x86_64.h
   UPD     /builddir/build/BUILD/drbd-9.0.28-1/drbd/compat.h
./drbd-kernel-compat/gen_compat_patch.sh: line 12: spatch: command not found
./drbd-kernel-compat/gen_compat_patch.sh: line 45: hash: spatch: not found
   INFO: no suitable spatch found; trying spatch-as-a-service;
   be patient, may take up to 10 minutes
   if it is in the server side cache it might only take a second
   SPAAS    f93922242e3c9030fcf3a417aa779288
Successfully connected to SPAAS ('d35a4b17210dab1336de2725b997f300e9acd297')
   % Total    % Received % Xferd  Average Speed   Time    Time     Time 
Current
                                  Dload  Upload   Total   Spent    Left 
Speed
100 22459    0 16538    0  5921    745    266 --:--:--  0:00:22 --:--:-- 
  4197
   You can create a new .tgz including this pre-computed compat patch
   by calling "make unpatch ; echo 
drbd-9.0.28-1/drbd/drbd-kernel-compat/cocci_cache/f93922242e3c9030fcf3a417aa779288/compat.patch 
 >>.filelist ; make tgz"
   PATCH
patching file ./drbd_int.h
patching file drbd-headers/linux/genl_magic_struct.h
patching file drbd_bitmap.c
patching file drbd_sender.c
patching file drbd_transport_tcp.c
patching file drbd_main.c
patching file drbd_debugfs.c
patching file drbd_nl.c
patching file drbd_req.c
patching file drbd_state.c
patching file drbd_receiver.c
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_dax_pmem.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_debugfs.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_bitmap.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_proc.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_sender.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_receiver.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_req.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_actlog.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/lru_cache.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.o
/builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.c: In function 
'drbd_create_device':
/builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.c:3729:6: error: 
implicit declaration of function 'blk_alloc_queue'; did you mean 
'blk_alloc_queue_rh'? [-Werror=implicit-function-declaration]
   q = blk_alloc_queue(drbd_make_request, NUMA_NO_NODE);
       ^~~~~~~~~~~~~~~
       blk_alloc_queue_rh
/builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.c:3729:4: warning: 
assignment to 'struct request_queue *' from 'int' makes pointer from 
integer without a cast [-Wint-conversion]
   q = blk_alloc_queue(drbd_make_request, NUMA_NO_NODE);
     ^
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_strings.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_nl.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_interval.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_state.o
   CC [M] 
/builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd-kernel-compat/drbd_wrappers.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_nla.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_transport.o
   CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_transport_tcp.o
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:315: 
/builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1545: 
_module_/builddir/build/BUILD/drbd-9.0.28-1/drbd] Error 2
make[1]: Leaving directory '/builddir/build/BUILD/drbd-9.0.28-1/drbd'
make[1]: *** [Makefile:132: kbuild] Error 2
make: *** [Makefile:131: module] Error 2



More information about the drbd-user mailing list