Mailing List Archive

building drbd-9.0.27 on centos stream
Hey guys,

I was just upgrading a couple of VMs around and hit a "little" wall (log
below from the release tarball)

never used spatch before so I have no idea how to try and apply patches
here (also coccinelle on centos is too old to be useful, so I rely on
SPAAS).

Any help is appreciated :)

Cheers
Fabio

/usr/bin/make -j32 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 '/root/rpmbuild/BUILD/drbd-9.0.27-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=/root/rpmbuild/BUILD/drbd-9.0.27-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_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 need_make_request_recursion
COMPAT queue_limits_has_discard_zeroes_data
COMPAT rdma_create_id_has_net_ns
COMPAT sock_create_kern_has_five_parameters
COMPAT sock_ops_returns_addr_len
UPD
/root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/compat.4.18.0-277.el8.x86_64.h
UPD /root/rpmbuild/BUILD/drbd-9.0.27-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 b6043d469e686d6ae36a2e3299a82735
Successfully connected to SPAAS ('d35a4b17210dab1336de2725b997f300e9acd297')
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0^M 0 0 0 0 0 0 0 0 --:--:--
--:--:-- --:--:-- 0^M 0 0 0 0 0 0 0 0
--:--:-- 0:00:01 --:--:-- 0^M100 25203 0 19330 0 5873 12028
3654 --:--:-- 0:00:01 --:--:-- 15673
You can create a new .tgz including this pre-computed compat patch
by calling "make unpatch ; echo
drbd-9.0.27-1/drbd/drbd-kernel-compat/cocci_cache/b6043d469e686d6ae36a2e3299a82735/compat.patch
>>.filelist ; make tgz"
PATCH
patching file ./drbd_int.h
patching file drbd-headers/linux/genl_magic_func.h
patching file drbd-headers/linux/drbd_genl_api.h
patching file drbd-headers/linux/drbd.h
patching file drbd-headers/linux/genl_magic_struct.h
patching file drbd_dax_pmem.c
patching file lru_cache.c
patching file drbd_bitmap.c
patching file drbd_sender.c
patching file drbd_transport_tcp.c
patching file drbd_nla.c
patching file drbd_main.c
patching file drbd_transport.c
patching file drbd_kref_debug.c
patching file drbd_debugfs.c
patching file drbd_actlog.c
patching file kref_debug.c
patching file drbd_nl.c
patching file drbd_req.c
patching file drbd_proc.c
patching file drbd_state.c
patching file drbd_transport_template.c
patching file drbd_receiver.c
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_dax_pmem.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_debugfs.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_bitmap.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_proc.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_sender.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_receiver.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_req.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_actlog.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/lru_cache.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_main.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_strings.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_nl.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_interval.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_state.o
CC [M]
/root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd-kernel-compat/drbd_wrappers.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_nla.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_transport.o
CC [M] /root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_transport_tcp.o
/root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_main.c: In function
'drbd_create_device':
/root/rpmbuild/BUILD/drbd-9.0.27-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
/root/rpmbuild/BUILD/drbd-9.0.27-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);
^
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:315:
/root/rpmbuild/BUILD/drbd-9.0.27-1/drbd/drbd_main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1545:
_module_/root/rpmbuild/BUILD/drbd-9.0.27-1/drbd] Error 2
make[1]: *** [Makefile:132: kbuild] Error 2
make[1]: Leaving directory '/root/rpmbuild/BUILD/drbd-9.0.27-1/drbd'
make: *** [Makefile:131: module] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.uirvjq (%build)

_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user