Ethernet Products
Determine ramifications of Intel® Ethernet products and technologies
5292 Discussions

Unable to compile ice driver 1.12.7 on Rocky 8.6

sawlih
Beginner
1,159 Views

Dear Intel,

 

I tried to compile ice driver v1.12.7 on clean Rocky 8.6, but I got an error below.

Would you please advise me on how to fix it?

 

[root@localhost src]# make
filtering include/net/flow_keys.h out
filtering include/linux/device/class.h out
all files (for given query) filtered out
filtering include/linux/device/class.h out
filtering include/linux/device/class.h out
filtering include/linux/gnss.h out
all files (for given query) filtered out
filtering include/linux/jump_label_type.h out
filtering include/linux/jump_label_type.h out
1 /* Autogenerated for Ksrc=/lib/modules/4.18.0-513.5.1.rt7.307.el8_9.x86_64/source via kcompat-generator.sh */
2 #define HAVE_DEVLINK_FLASH_UPDATE_PARAMS
3 #define HAVE_DEVLINK_FLASH_UPDATE_PARAMS_FW
4 #define HAVE_DEVLINK_HEALTH
5 #define HAVE_DEVLINK_HEALTH_DEFAULT_AUTO_RECOVER
6 #define HAVE_DEVLINK_HEALTH_OPS_EXTACK
7 #define HAVE_DEVLINK_INFO_DRIVER_NAME_PUT
8 #define HAVE_DEVLINK_PARAMS
9 #define HAVE_DEVLINK_PORT_NEW
10 #define HAVE_DEVLINK_PORT_SPLIT
11 #define HAVE_DEVLINK_PORT_SPLIT_EXTACK
12 #define HAVE_DEVLINK_PORT_SPLIT_PORT_STRUCT
13 #define HAVE_DEVLINK_PORT_TYPE_ETH_HAS_NETDEV
14 #define HAVE_DEVLINK_REGIONS
15 #define HAVE_DEVLINK_REGION_OPS_SNAPSHOT
16 #define HAVE_DEVLINK_REGION_OPS_SNAPSHOT_OPS
17 #define HAVE_DEVLINK_SET_FEATURES
18 #define HAVE_DEVL_PORT_REGISTER
19 #define HAVE_DEVLINK_PORT_FLAVOUR_PCI_SF
20 #define HAVE_DEVLINK_RELOAD_ACTION_AND_LIMIT
21 #define HAVE_NDO_FDB_ADD_VID
22 #define HAVE_NDO_GET_DEVLINK_PORT
23 #define HAVE_NDO_UDP_TUNNEL_CALLBACK
24 #define HAVE_NETIF_SET_TSO_MAX
25 #define HAVE_ETHTOOL_EXTENDED_RINGPARAMS
26 #define HAVE_ETHTOOL_FLOW_RSS
27 #define HAVE_XDP_DO_FLUSH
28 #define HAVE_FLOW_DISSECTOR_KEY_PPPOE
29 #define HAVE_FLOW_DISSECTOR_KEY_CVLAN
30 #define HAVE_CDEV_DEVICE
31 #define HAVE_POLL_T
32 #define NEED_CLASS_CREATE_WITH_MODULE_PARAM
33 #define NEED_CLASS_CREATE_WITH_MODULE_PARAM
34 #define HAVE_PER_VF_MSIX_SYSFS
35 #define HAVE_STRUCT_PCI_DEV_PTM_ENABLED
36 #define HAVE_COMPLETION_RAW_SPINLOCK
37 #define HAVE_IOMMU_DEV_FEAT_AUX
38 #define HAVE_STRUCT_STATIC_KEY_FALSE
39 #define HAVE_MDEV_GET_DRVDATA
40 #define HAVE_TRACE_ENABLED_SUPPORT
41 #define HAVE_U64_STATS_FETCH_BEGIN_IRQ
42 #define HAVE_U64_STATS_FETCH_RETRY_IRQ
43 #define HAVE_LMV1_SUPPORT
echo "*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but" ; echo "*** the signing key cannot be found. Module signing has been" ; echo "*** disabled for this build." ; make ccflags-y="" -C "/lib/modules/4.18.0-513.5.1.rt7.307.el8_9.x86_64/source" CONFIG_ICE=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/home/localhost/setup/ice-1.12.7/src" NEED_AUX_BUS="0" modules
*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory '/usr/src/kernels/4.18.0-513.5.1.rt7.307.el8_9.x86_64'
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_main.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_controlq.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_common.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_nvm.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_switch.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_sched.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_base.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_lib.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_txrx_lib.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_txrx.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_fltr.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_irq.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_pf_vsi_vlan_ops.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_vsi_vlan_ops.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_vsi_vlan_lib.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_tc_lib.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_fdir.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_ethtool_fdir.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_acl_main.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_acl.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_acl_ctrl.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_vlan_mode.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_ddp.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_flex_pipe.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_flow.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_parser.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_imem.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_pg_cam.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_metainit.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_bst_tcam.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_ptype_mk.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_mk_grp.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_proto_grp.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_flg_rd.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_xlt_kb.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_parser_rt.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_peer_support.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_lag.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_fwlog.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_ieps.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_gnss.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_ethtool.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_devlink.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_fw_update.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_eswitch.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_repr.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_idc.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_debugfs.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_dcf.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_sriov.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_vf_mbx.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_vf_vsi_vlan_ops.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_virtchnl_allowlist.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_vf_adq.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_virtchnl.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_virtchnl_fdir.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_virtchnl_fsub.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_vf_lib.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_ptp.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_ptp_hw.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_dcb.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_dcb_nl.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_dcb_lib.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_arfs.o
CC [M] /home/localhost/setup/ice-1.12.7/src/ice_xsk.o
CC [M] /home/localhost/setup/ice-1.12.7/src/kcompat.o
CC [M] /home/localhost/setup/ice-1.12.7/src/kcompat_gnss.o
/home/localhost/setup/ice-1.12.7/src/kcompat_gnss.c: In function ‘gnss_module_init’:
/home/localhost/setup/ice-1.12.7/src/kcompat_gnss.c:437:25: error: assignment to ‘int (*)(const struct device *, struct kobj_uevent_env *)’ from incompatible pointer type ‘int (*)(struct device *, struct kobj_uevent_env *)’ [-Werror=incompatible-pointer-types]
gnss_class->dev_uevent = gnss_uevent;
^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:318: /home/localhost/setup/ice-1.12.7/src/kcompat_gnss.o] Error 1
make[1]: *** [Makefile:1619: _module_/home/localhost/setup/ice-1.12.7/src] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-513.5.1.rt7.307.el8_9.x86_64'
make: *** [Makefile:174: all] Error 2
[root@localhost src]#
[root@localhost src]# uname -r
4.18.0-513.5.1.rt7.307.el8_9.x86_64

[root@localhost src]# gcc --vers
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost src]# g++ --vers
g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

Best Regards,

Salih Topal

 

0 Kudos
1 Reply
Yogaeasvaran
Employee
1,109 Views

Hello Salih,

 

Thank you for posting on the Intel communities.

 

For inquiries related to Programming or Embedded Products, please post a question on Embedded Connectivity Community forum.

 

If you have any further questions or queries, please kindly let us know.

 

Therefore, I will proceed to close this thread from my end.

Thank You

 

Regards,

Yogaeasvaran

Intel Customer Support

 

0 Kudos
Reply