Error while compiling with MLNX and DOCA OFED drivers
Indivar Nair
indivar.nair at techterra.in
Mon Oct 28 04:39:35 CET 2024
Hello All,
Compiling drbd with DOCA-OFED and MLNX-OFED fails.
DRBD: drbd-9.2.11 and drbd-9.2.10
(drbd-9.2.9 works)
OS: Rocky Linux 9.4
DOCA OFED drivers:
kmod-mlnx-ofa_kernel-24.07-OFED.24.07.0.6.1.1.rhel9u4.x86_64
mlnx-ofa_kernel-24.07-OFED.24.07.0.6.1.1.rhel9u4.x86_64
mlnx-ofa_kernel-devel-24.07-OFED.24.07.0.6.1.1.rhel9u4.x86_64
OS: Rocky Linux 9.1
MLNX OFED drivers:
kmod-mlnx-ofa_kernel-23.10-OFED.23.10.3.2.2.1.rhel9u1.x86_64
mlnx-ofa_kernel-23.10-OFED.23.10.3.2.2.1.rhel9u1.x86_64
mlnx-ofa_kernel-devel-23.10-OFED.23.10.3.2.2.1.rhel9u1.x86_64
Here is the full compiler output -
-----------------------------------------------------------------------
[root at vmhost01 SOURCES]# rpmbuild --define "ofed_kernel_dir
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64" -ba
drbd-kernel.spec
warning: "XXX selected 5.14.0-427.40.1.el9_4.x86_64 based on installed
kernel-*devel packages"
warning: bogus date in %changelog: Wed Dec 22 2023 Philipp Reisner <
phil at linbit.com> - 9.2.7
setting SOURCE_DATE_EPOCH=1723420800
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.l5QZ2a
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -f /var/tmp/drbd-kernel.rpmbuild.files_suse_kmod_drbd.tmp.w2kle2
/var/tmp/drbd-kernel.rpmbuild.files_rh_kmod_drbd.tmp.Bncnov
+ cd /root/rpmbuild/BUILD
+ rm -rf drbd-9.2.11
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/drbd-9.2.11.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd drbd-9.2.11
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8DlmU9
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd drbd-9.2.11
+ for flavor in default
++ '[' default = default ']'
++ echo /usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64
+ make -C drbd -j8 all KDIR=/usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64
BUILD_OFED=1
OFED_KERNEL_DIR=/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64
OFED_VERSION=24.07_OFED.24.07.0.6.1.1.rhel9u4
make: Entering directory '/root/rpmbuild/BUILD/drbd-9.2.11/drbd'
BUILDING FOR OFED:
==================
: /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/Module.symvers
: -I/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include
-include linux/compat-2.6.h
===================================================================
Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=/usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64
make -C /usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64
"PRE_CFLAGS=-I/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include
-include linux/compat-2.6.h" M=/root/rpmbuild/BUILD/drbd-9.2.11/drbd
obj-m=dummy-for-compat.o dummy-for-compat-h.o
COMPAT have_sane_test_environment
COMPAT have_sane_test_environment_always_fail
LN build-current -> build-5.14.0-427.40.1.el9_4.x86_64/
LN compat.h -> build-5.14.0-427.40.1.el9_4.x86_64/compat.h
UPD
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/.drbd_kernelrelease
LN .compat_test -> build-5.14.0-427.40.1.el9_4.x86_64/.compat_test
LN .compat_test.5.14.0-427.40.1.el9_4.x86_64 ->
build-5.14.0-427.40.1.el9_4.x86_64/.compat_test
LN compat.5.14.0-427.40.1.el9_4.x86_64.h ->
build-5.14.0-427.40.1.el9_4.x86_64/compat.h
COMPAT __vmalloc_has_2_params
COMPAT add_disk_returns_int
COMPAT before_4_13_kernel_read
COMPAT bio_alloc_has_4_params
COMPAT blk_alloc_disk_takes_queue_limits
COMPAT blkdev_get_by_path_has_holder_ops
COMPAT blkdev_issue_discard_takes_flags
COMPAT blkdev_issue_zeroout_discard
COMPAT blkdev_put_has_holder
COMPAT block_device_operations_open_takes_gendisk
COMPAT block_device_operations_release_takes_single_argument
COMPAT can_include_vermagic_h
COMPAT dax_direct_access_takes_mode
COMPAT fs_dax_get_by_bdev_takes_start_off
COMPAT fs_dax_get_by_bdev_takes_start_off_and_holder
COMPAT genl_policy_in_ops
COMPAT have_BIO_MAX_VECS
COMPAT have_CRYPTO_TFM_NEED_KEY
COMPAT have_GENHD_FL_NO_PART
COMPAT have_SHASH_DESC_ON_STACK
COMPAT have_WB_congested_enum
COMPAT have___bio_add_page
COMPAT have_allow_kernel_signal
COMPAT have_bdev_discard_granularity
COMPAT have_bdev_file_open_by_path
COMPAT have_bdev_max_discard_sectors
COMPAT have_bdev_nr_sectors
COMPAT have_bdev_open_by_path
COMPAT have_bdevname
COMPAT have_bdgrab
COMPAT have_bdi_congested
COMPAT have_bdi_congested_fn
COMPAT have_bio_advance_iter_single
COMPAT have_bio_alloc_clone
COMPAT have_bio_bi_bdev
COMPAT have_bio_bi_error
COMPAT have_bio_bi_opf
COMPAT have_bio_bi_status
COMPAT have_bio_clone_fast
COMPAT have_bio_op_shift
COMPAT have_bio_set_dev
COMPAT have_bio_set_op_attrs
COMPAT have_bio_split_to_limits
COMPAT have_bio_start_io_acct
COMPAT have_bioset_init
COMPAT have_bioset_need_bvecs
COMPAT have_blk_alloc_disk
COMPAT have_blk_alloc_queue_rh
COMPAT have_blk_check_plugged
COMPAT have_blk_cleanup_disk
COMPAT have_blk_mode_t
COMPAT have_blk_opf_t
COMPAT have_blk_qc_t_make_request
COMPAT have_blk_qc_t_submit_bio
COMPAT have_blk_queue_flag_set
COMPAT have_blk_queue_make_request
COMPAT have_blk_queue_max_write_same_sectors
COMPAT have_blk_queue_merge_bvec
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_bvec_kmap_local
COMPAT have_d_inode
COMPAT have_disk_update_readahead
COMPAT have_enum_req_op
COMPAT have_fallthrough
COMPAT have_fs_dax_get_by_bdev
COMPAT have_generic_start_io_acct_q_rw_sect_part
COMPAT have_generic_start_io_acct_rw_sect_part
COMPAT have_genl_info_userhdr
COMPAT have_get_random_u32
COMPAT have_get_random_u32_below
COMPAT have_hd_struct
COMPAT have_ib_cq_init_attr
COMPAT have_ib_get_dma_mr
COMPAT have_idr_is_empty
COMPAT have_inode_lock
COMPAT have_kmap_local_page
COMPAT have_ktime_to_timespec64
COMPAT have_kvfree
COMPAT have_kvfree_rcu
COMPAT have_kvfree_rcu_mightsleep
COMPAT have_list_is_first
COMPAT have_list_next_entry
COMPAT have_lookup_user_key
COMPAT have_max_send_recv_sge
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_part_stat_read_accum
COMPAT have_pointer_backing_dev_info
COMPAT have_proc_create_single
COMPAT have_queue_flag_discard
COMPAT have_queue_flag_stable_writes
COMPAT have_rb_declare_callbacks_max
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_zeroes
COMPAT have_req_write
COMPAT have_revalidate_disk_size
COMPAT have_sched_set_fifo
COMPAT have_sched_signal_h
COMPAT have_security_netlink_recv
COMPAT have_sendpage
COMPAT have_sendpage_ok
COMPAT have_set_capacity_and_notify
COMPAT have_shash_desc_zero
COMPAT have_simple_positive
COMPAT have_sk_use_task_frag
COMPAT have_sock_set_keepalive
COMPAT have_strscpy
COMPAT have_struct_bvec_iter
COMPAT have_struct_size
COMPAT have_submit_bio_noacct
COMPAT have_tasklet_setup
COMPAT have_tcp_sock_set_cork
COMPAT have_tcp_sock_set_keepcnt
COMPAT have_tcp_sock_set_keepidle
COMPAT have_tcp_sock_set_nodelay
COMPAT have_tcp_sock_set_quickack
COMPAT have_time64_to_tm
COMPAT have_timer_setup
COMPAT have_timer_shutdown
COMPAT have_tls_get_record_type
COMPAT have_tls_tx_rx
COMPAT have_void_make_request
COMPAT have_void_submit_bio
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 need_drbd_wrappers
COMPAT need_make_request_recursion
COMPAT need_recalc_sigpending
COMPAT need_skb_abort_seq_read
COMPAT part_stat_read_takes_block_device
COMPAT queue_limits_has_discard_zeroes_data
COMPAT rdma_create_id_has_net_ns
COMPAT rdma_reject_has_reason_arg
COMPAT sk_data_ready_has_1_param
COMPAT sock_create_kern_has_netns_parameter
COMPAT sock_ops_returns_addr_len
COMPAT struct_gendisk_has_backing_dev_info
UPD
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.h
make -C /usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64
"PRE_CFLAGS=-I/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include
-include linux/compat-2.6.h" M=/root/rpmbuild/BUILD/drbd-9.2.11/drbd
obj-m=dummy-for-prep.o dummy-for-patch.o
GEN
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_buildtag.c
GEN
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/.kernel.config.gz
COPY
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/Kbuild
COPY
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/Kbuild
make -C /root/rpmbuild/BUILD/drbd-9.2.11/drbd -f Makefile.spatch
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.patch
CHK build-5.14.0-427.40.1.el9_4.x86_64/compat.patch
LN
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.patch
->
../drbd-kernel-compat/cocci_cache/769afc64ab07c4a33084a8a28074712e/compat.patch
set --
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.patch
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.h;
\
test $1 -nt $2 || touch -r $1 $2
SPLIT
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.patch
warning: rule starting on line 11, node 30:
iov_iter_bvec(...)[1,2,12,13,16] in dtt_send_page may be inconsistently
modified
warning: rule starting on line 11, node 31: sent = ... ;[1,2,12,13,17] in
dtt_send_page may be inconsistently modified
warning: rule starting on line 11, node 29:
bvec_set_page(...)[1,2,12,13,15] in dtt_send_page may be inconsistently
modified
warning: rule starting on line 11, node 22: iov_iter_bvec(...)[1,2,9,10,13]
in _dtl_send_page may be inconsistently modified
warning: rule starting on line 11, node 23: sent = ... ;[1,2,9,10,14] in
_dtl_send_page may be inconsistently modified
warning: rule starting on line 11, node 21: bvec_set_page(...)[1,2,9,10,12]
in _dtl_send_page may be inconsistently modified
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/compat.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_meta_data.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_protocol.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_strings.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_strings.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_transport.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/drbd.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/drbd_genl.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/drbd_genl_api.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/drbd_limits.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/genl_magic_func-genl_register_family_with_ops_groups.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/genl_magic_func-genl_register_mc_group.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/genl_magic_func.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/genl_magic_struct.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/windrbd/windrbd_ioctl.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/cocci_macros.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/drbd_wrappers.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/drbd_wrappers.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/genl.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/genl.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/handshake.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/netlink.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/request.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/tlshd.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/linux/libnvdimm.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/linux/lru_cache.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/linux/overflow.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/lru_cache.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/net/handshake.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/nsecs_to_jiffies.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/uapi/linux/handshake.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/uapi/linux/sched/types.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_actlog.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_bitmap.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_dax_pmem.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_dax_pmem.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_debugfs.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_debugfs.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_int.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_interval.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_interval.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_kref_debug.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_kref_debug.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_main.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_nl.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_nla.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_nla.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_polymorph_printk.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_proc.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_req.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_receiver.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_req.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_sender.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_state.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_state.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_state_change.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport_lb-tcp.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport_rdma.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport_tcp.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport_template.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_vli.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/kref_debug.c
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/linux/drbd_config.h
PATCH
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/kref_debug.h
test -e build-current && \
make -C /usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64
"PRE_CFLAGS=-I/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include
-include linux/compat-2.6.h"
M=/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current modules
CC [M]
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_buildtag.o
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_bitmap.o
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_proc.o
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_sender.o
CC [M]
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_receiver.o
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_req.o
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_actlog.o
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_main.o
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_bitmap.c:13: warning: "pr_fmt"
redefined
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
In file included from ./include/linux/kernel.h:20,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,
from ./include/linux/uio.h:8,
from ./include/linux/socket.h:8,
from ./include/uapi/linux/if.h:25,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,
from <command-line>:
./include/linux/printk.h:375: note: this is the location of the previous
definition
375 | #define pr_fmt(fmt) fmt
|
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_main.c:17: warning: "pr_fmt"
redefined
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
In file included from ./include/linux/kernel.h:20,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,
from ./include/linux/uio.h:8,
from ./include/linux/socket.h:8,
from ./include/uapi/linux/if.h:25,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,
from <command-line>:
./include/linux/printk.h:375: note: this is the location of the previous
definition
375 | #define pr_fmt(fmt) fmt
|
COPY /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_strings.c
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_nl.o
CC [M]
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_interval.o
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_nl.c:14: warning: "pr_fmt"
redefined
14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
In file included from ./include/linux/kernel.h:20,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,
from ./include/linux/uio.h:8,
from ./include/linux/socket.h:8,
from ./include/uapi/linux/if.h:25,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,
from <command-line>:
./include/linux/printk.h:375: note: this is the location of the previous
definition
375 | #define pr_fmt(fmt) fmt
|
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_state.o
CC [M] /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_nla.o
CC [M]
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_transport.o
CC [M]
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd-kernel-compat/nsecs_to_jiffies.o
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_transport.c:2: warning: "pr_fmt"
redefined
2 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
In file included from ./include/linux/kernel.h:20,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,
from ./include/linux/uio.h:8,
from ./include/linux/socket.h:8,
from ./include/uapi/linux/if.h:25,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,
from <command-line>:
./include/linux/printk.h:375: note: this is the location of the previous
definition
375 | #define pr_fmt(fmt) fmt
|
CC [M]
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd-kernel-compat/lru_cache.o
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd-kernel-compat/nsecs_to_jiffies.c:5:12:
error: static declaration of 'nsecs_to_jiffies64' follows non-static
declaration
5 | static u64 nsecs_to_jiffies64(u64 n)
| ^~~~~~~~~~~~~~~~~~
In file included from ./include/linux/ktime.h:25,
from ./include/linux/timer.h:6,
from ./include/linux/workqueue.h:9,
from ./include/linux/srcu.h:21,
from ./include/linux/notifier.h:16,
from ./arch/x86/include/asm/uprobes.h:13,
from ./include/linux/uprobes.h:49,
from ./include/linux/mm_types.h:15,
from ./include/linux/uio.h:10,
from ./include/linux/socket.h:8,
from ./include/uapi/linux/if.h:25,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,
from <command-line>:
./include/linux/jiffies.h:438:12: note: previous declaration of
'nsecs_to_jiffies64' with type 'u64(u64)' {aka 'long long unsigned int(long
long unsigned int)'}
438 | extern u64 nsecs_to_jiffies64(u64 n);
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:299:
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd-kernel-compat/nsecs_to_jiffies.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_transport.c:2: warning: "pr_fmt"
redefined
2 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
In file included from ./include/linux/kernel.h:20,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,
from ./include/linux/uio.h:8,
from ./include/linux/socket.h:8,
from ./include/uapi/linux/if.h:25,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,
from <command-line>:
./include/linux/printk.h:375: note: this is the location of the previous
definition
375 | #define pr_fmt(fmt) fmt
|
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_main.c:17: warning: "pr_fmt"
redefined
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
In file included from ./include/linux/kernel.h:20,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,
from ./include/linux/uio.h:8,
from ./include/linux/socket.h:8,
from ./include/uapi/linux/if.h:25,
from
/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,
from <command-line>:
./include/linux/printk.h:375: note: this is the location of the previous
definition
375 | #define pr_fmt(fmt) fmt
|
make[1]: *** [Makefile:1936:
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current] Error 2
make: *** [Makefile:248: kbuild] Error 2
make: Leaving directory '/root/rpmbuild/BUILD/drbd-9.2.11/drbd'
error: Bad exit status from /var/tmp/rpm-tmp.8DlmU9 (%build)
RPM build errors:
"XXX selected 5.14.0-427.40.1.el9_4.x86_64 based on installed
kernel-*devel packages"
bogus date in %changelog: Wed Dec 22 2023 Philipp Reisner <
phil at linbit.com> - 9.2.7
Bad exit status from /var/tmp/rpm-tmp.8DlmU9 (%build)
-----------------------------------------------------------------------
This seems to be causing it -
-----------------------------------------------------------------------
CC [M]
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd-kernel-compat/lru_cache.o
/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd-kernel-compat/nsecs_to_jiffies.c:5:12:
error: static declaration of 'nsecs_to_jiffies64' follows non-static
declaration
5 | static u64 nsecs_to_jiffies64(u64 n)
-----------------------------------------------------------------------
Is there a workaround for this?
Regards,
Indivar Nair
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20241028/fcd35183/attachment-0001.htm>
More information about the drbd-user
mailing list