luigirizzo / netmap

Automatically exported from code.google.com/p/netmap
BSD 2-Clause "Simplified" License
1.86k stars 537 forks source link

make install fails on RHEL 9.0 (5.14 kernel) #881

Open skotur-brcm opened 2 years ago

skotur-brcm commented 2 years ago

make install

make -C /lib/modules/5.14.0-70.22.1.el9_0.x86_64/build M=/root/netmap/LINUX CONFIG_NETMAP=m \ O_DRIVERS="ice virtio_net.c/" \ \ NETMAP_DRIVER_SUFFIX= \ \ modules_install make[1]: Entering directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' cat: /root/netmap/LINUX/modules.order: No such file or directory DEPMOD /lib/modules/5.14.0-70.22.1.el9_0.x86_64 make[1]: Leaving directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' make -C ice install INSTALL_MOD_PATH= CFLAGS_EXTRA=" -I/root/netmap/LINUX -I/root/netmap/LINUX -I/root/netmap/LINUX/../sys -I/root/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE" NETMAP_DRIVER_SUFFIX= KSRC=/lib/modules/5.14.0-70.22.1.el9_0.x86_64/build KBUILD_EXTRA_SYMBOLS=/root/netmap/LINUX/Module.symvers make[1]: Entering directory '/root/netmap/LINUX/ice-1.9.11/src' 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="-I/root/netmap/LINUX -I/root/netmap/LINUX -I/root/netmap/LINUX/../sys -I/root/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE" -C "/lib/modules/5.14.0-70.22.1.el9_0.x86_64/build" CONFIG_ICE=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/root/netmap/LINUX/ice-1.9.11/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[2]: Entering directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_main.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_controlq.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_common.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_nvm.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_switch.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_sched.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_base.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_txrx_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_txrx.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_fltr.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_irq.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_pf_vsi_vlan_ops.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vsi_vlan_ops.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vsi_vlan_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_gnss.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_tc_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_fdir.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ethtool_fdir.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_acl_main.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_acl.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_acl_ctrl.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vlan_mode.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ddp.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_flex_pipe.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_flow.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_lag.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_fwlog.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ieps.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ethtool.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_devlink.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_fw_update.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_eswitch.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_repr.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_idc.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_debugfs.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_dcf.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_sriov.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vf_mbx.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vf_vsi_vlan_ops.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_virtchnl_allowlist.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vf_adq.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_virtchnl.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_virtchnl_fdir.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vf_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vdcm.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_siov.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ptp.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ptp_hw.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_dcb.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_dcb_nl.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_dcb_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_arfs.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_xsk.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/kcompat.o LD [M] /root/netmap/LINUX/ice-1.9.11/src/ice.o WARNING: Symbol version dump "/root/netmap/LINUX/Module.symvers" is missing. Modules may not have dependencies or modversions. You may get many unresolved symbol warnings. MODPOST /root/netmap/LINUX/ice-1.9.11/src/Module.symvers WARNING: modpost: "netmap_attach" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_rx_irq" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_rings_config_get" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_no_pendintr" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_ring_reinit" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "nm_clear_native_flags" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_detach" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "nm_set_native_flags" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_reset" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice.mod.o LD [M] /root/netmap/LINUX/ice-1.9.11/src/ice.ko BTF [M] /root/netmap/LINUX/ice-1.9.11/src/ice.ko Skipping BTF generation for /root/netmap/LINUX/ice-1.9.11/src/ice.ko due to unavailability of vmlinux make[2]: Leaving directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64'

@gzip -c ../ice.7 > ice.7.gz

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="-I/root/netmap/LINUX -I/root/netmap/LINUX -I/root/netmap/LINUX/../sys -I/root/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE" -C "/lib/modules/5.14.0-70.22.1.el9_0.x86_64/build" CONFIG_ICE=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/root/netmap/LINUX/ice-1.9.11/src" NEED_AUX_BUS="0" modules_install 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[2]: Entering directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64'

I see the same undefined symbols when i try to do the same for my (Broadcom:bnxt_en) driver as well .. Is this a known issue ? My guess is this is to do with module signing that turned on by default in this new kernel/distro ?

jbrandeb commented 2 years ago

This is pretty normal as far as I can tell, since you're building both the netmap.ko and the driver.ko, but the build does them separately and the kernel doesn't know the symbols from the former when building the latter, since they are separate.

if you make install both netmap and driver modules and then run depmod -a, then there should be no missing symbols.

In the case above, you only seem to be building drivers, do you already have netmap.ko installed and depmod -a run? I don't think this has anything to do with module signing.

skotur-brcm commented 2 years ago

I just ran the trio of configure make make install

As usual like on any other distribution, so why is it failing particularly on this one?

Sent from a mobile phone

On Fri, 14 Oct, 2022, 9:54 pm Jesse Brandeburg, @.***> wrote:

This is pretty normal as far as I can tell, since you're building both the netmap.ko and the driver.ko, but the build does them separately and the kernel doesn't know the symbols from the former when building the latter, since they are separate.

if you make install both netmap and driver modules and then run depmod -a, then there should be no missing symbols.

In the case above, you only seem to be building drivers, do you already have netmap.ko installed and depmod -a run? I don't think this has anything to do with module signing.

— Reply to this email directly, view it on GitHub https://github.com/luigirizzo/netmap/issues/881#issuecomment-1279215364, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVRZSE7XDNFDNOVSYXCDZLWDGCMNANCNFSM6AAAAAARE3BJHM . You are receiving this because you authored the thread.Message ID: @.***>

skotur-brcm commented 2 years ago

LINUX]# make -j test -e /root/netmap/LINUX/ext-drivers/ice-1.9.11.tar.gz || wget https://sourceforge.net/projects/e1000/files/ice%20stable/1.9.11/ice-1.9.11.tar.gz -P /root/netmap/LINUX/ext-drivers/ test -e /root/netmap/LINUX/ext-drivers/virtio_net.c || wget https://raw.githubusercontent.com/torvalds/linux/v4.9/drivers/net/virtio_net.c -P /root/netmap/LINUX/ext-drivers/ tar xf /root/netmap/LINUX/ext-drivers/ice-1.9.11.tar.gz && ln -s ice-1.9.11/src ice mkdir -p virtio_net.c && cp /root/netmap/LINUX/ext-drivers/virtio_net.c virtio_net.c/ make -C /lib/modules/5.14.0-70.22.1.el9_0.x86_64/build M=/root/netmap/LINUX EXTRA_CFLAGS='-I/root/netmap/LINUX -I/root/netmap/LINUX -I/root/netmap/LINUX/../sys -I/root/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE' modules CONFIG_NETMAP=m O_DRIVERS="virtio_net.c/" NETMAP_DRIVER_SUFFIX= make -C build-libnetmap SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" patch --quiet --force -p1 < patches/custom--virtio_net.c--4.9; make[1]: Entering directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' make[1]: Entering directory '/root/netmap/LINUX/build-libnetmap' cc -O2 -pipe -Wall -Werror -g -I /root/netmap/LINUX/../sys -c -o nmctx.o /root/netmap/LINUX/../libnetmap/nmctx.c cc -O2 -pipe -Wall -Werror -g -I /root/netmap/LINUX/../sys -c -o nmctx-pthreads.o /root/netmap/LINUX/../libnetmap/nmctx-pthreads.c cc -O2 -pipe -Wall -Werror -g -I /root/netmap/LINUX/../sys -c -o nmport.o /root/netmap/LINUX/../libnetmap/nmport.c cc -O2 -pipe -Wall -Werror -g -I /root/netmap/LINUX/../sys -c -o nmreq.o /root/netmap/LINUX/../libnetmap/nmreq.c patch --quiet --force -p1 < patches/intel--ice--1.9.11; /root/netmap/LINUX/intel-fix.sh ice patching file common.mk Hunk #1 succeeded at 199 (offset 24 lines). touch get-ice touch get-virtio_net.c ar r libnetmap.a nmctx.o nmctx-pthreads.o nmport.o nmreq.o ar: creating libnetmap.a make[1]: Leaving directory '/root/netmap/LINUX/build-libnetmap' make -C build-apps/dedup SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" make -C build-apps/vale-ctl SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" make -C build-apps/nmreplay SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" make -C build-apps/tlem SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" make -C build-apps/lb SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" make -C build-apps/bridge SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" make -C build-apps/pkt-gen SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" make[1]: Entering directory '/root/netmap/LINUX/build-apps/nmreplay' make[1]: Entering directory '/root/netmap/LINUX/build-apps/dedup' make[1]: Entering directory '/root/netmap/LINUX/build-apps/vale-ctl' cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I /root/netmap/LINUX/../libnetmap -Wextra -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../apps/vale-ctl/vale-ctl.c -lnetmap -o vale-ctl make[1]: Entering directory '/root/netmap/LINUX/build-apps/lb' make[1]: Entering directory '/root/netmap/LINUX/build-apps/tlem' make[1]: Entering directory '/root/netmap/LINUX/build-apps/bridge' make[1]: Entering directory '/root/netmap/LINUX/build-apps/pkt-gen' cc -O2 -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I /root/netmap/LINUX/../libnetmap -Wextra -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../apps/nmreplay/nmreplay.c -lnetmap -lpthread -lrt -lm -o nmreplay cc -O2 -pipe -g -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -Wextra -c -o dedup.o /root/netmap/LINUX/../apps/dedup/dedup.c cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I /root/netmap/LINUX/../libnetmap -Wextra -c -o lb.o /root/netmap/LINUX/../apps/lb/lb.c cc -O2 -pipe -g -Werror -Wall -Wunused-function -Wno-address-of-packed-member -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I/root/netmap/LINUX/../libnetmap -Wextra -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../apps/tlem/tlem.c -lnetmap -lpthread -lrt -lm -o tlem cc -O2 -pipe -g -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -Wextra -c -o dedup-main.o /root/netmap/LINUX/../apps/dedup/dedup-main.c cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I /root/netmap/LINUX/../libnetmap -Wextra -c -o pkt_hash.o /root/netmap/LINUX/../apps/lb/pkt_hash.c cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I/root/netmap/LINUX/../libnetmap -Wextra -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../apps/bridge/bridge.c -lnetmap -lrt -o bridge cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I/root/netmap/LINUX/../libnetmap -Wextra -DBUSYWAIT -c /root/netmap/LINUX/../apps/bridge/bridge.c -o bridge-b.o cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I /root/netmap/LINUX/../libnetmap -Wextra -Wno-address-of-packed-member -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../apps/pkt-gen/pkt-gen.c -lpthread -lm -lnetmap -lrt -o pkt-gen cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../apps/include -I /root/netmap/LINUX/../libnetmap -Wextra -Wno-address-of-packed-member -DNO_PCAP -DBUSYWAIT -c /root/netmap/LINUX/../apps/pkt-gen/pkt-gen.c -o pkt-gen-b.o make -C build-utils SRCDIR=/root/netmap/LINUX/.. BUILDDIR=/root/netmap/LINUX CC="cc" LD="ld" SUBSYS_FLAGS="-DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE" make[1]: Entering directory '/root/netmap/LINUX/build-utils' cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/test_select.c -lnetmap -lpthread -lm -lrt -o test_select cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/testmmap.c -lnetmap -lpthread -lm -lrt -o testmmap cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/test_nm.c -lnetmap -lpthread -lm -lrt -o test_nm cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/functional.c -lnetmap -lpthread -lm -lrt -o functional cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/ctrl-api-test.c -lnetmap -lpthread -lm -lrt -o ctrl-api-test cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/fd_server.c -lnetmap -lpthread -lm -lrt -o fd_server cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/functional-legacy.c -lnetmap -lpthread -lm -lrt -o functional-legacy cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/fd_server-legacy.c -lnetmap -lpthread -lm -lrt -o fd_server-legacy cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/get_avail_tx_packets.c -lnetmap -lpthread -lm -lrt -o get_avail_tx_packets cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/get_max_tx_packets.c -lnetmap -lpthread -lm -lrt -o get_max_tx_packets cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/extmem-example.c -lnetmap -lpthread -lm -lrt -o extmem-example cc -O2 -pipe -Werror -Wall -Wunused-function -I /root/netmap/LINUX/../sys -I /root/netmap/LINUX/../libnetmap -Wextra -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE -DNO_PCAP -L /root/netmap/LINUX/build-libnetmap /root/netmap/LINUX/../utils/sync_kloop_test.c -lnetmap -lpthread -lm -lrt -o sync_kloop_test make[1]: Leaving directory '/root/netmap/LINUX/build-apps/vale-ctl' cc -L /root/netmap/LINUX/build-libnetmap bridge-b.o -lnetmap -lrt -o bridge-b make[1]: Leaving directory '/root/netmap/LINUX/build-apps/bridge' cc dedup.o dedup-main.o -lpthread -lrt -o dedup make[1]: Leaving directory '/root/netmap/LINUX/build-apps/dedup' cc -L /root/netmap/LINUX/build-libnetmap lb.o pkt_hash.o -lnetmap -lpthread -lm -lrt -o lb make[1]: Leaving directory '/root/netmap/LINUX/build-apps/lb' make[1]: Leaving directory '/root/netmap/LINUX/build-apps/nmreplay' CC [M] /root/netmap/LINUX/netmap_mem2.o CC [M] /root/netmap/LINUX/netmap_mbq.o CC [M] /root/netmap/LINUX/netmap_legacy.o CC [M] /root/netmap/LINUX/netmap_bdg.o CC [M] /root/netmap/LINUX/netmap_kloop.o CC [M] /root/netmap/LINUX/netmap_vale.o CC [M] /root/netmap/LINUX/netmap_offloadings.o CC [M] /root/netmap/LINUX/netmap_pipe.o CC [M] /root/netmap/LINUX/netmap_monitor.o CC [M] /root/netmap/LINUX/netmap_generic.o CC [M] /root/netmap/LINUX/netmap_null.o CC [M] /root/netmap/LINUX/virtio_net.c/virtio_net_src.o CC [M] /root/netmap/LINUX/netmap_common.o CC [M] /root/netmap/LINUX/netmap_linux.o CC [M] /root/netmap/LINUX/netmap_ptnet.o make[1]: Leaving directory '/root/netmap/LINUX/build-utils' cc -L /root/netmap/LINUX/build-libnetmap pkt-gen-b.o -lpthread -lm -lnetmap -lrt -o pkt-gen-b make[1]: Leaving directory '/root/netmap/LINUX/build-apps/pkt-gen' make[1]: Leaving directory '/root/netmap/LINUX/build-apps/tlem' /root/netmap/LINUX/virtio_net.c/virtio_net_src.c: In function ‘virtnet_set_channels’: /root/netmap/LINUX/virtio_net.c/virtio_net_src.c:1310:9: error: implicit declaration of function ‘get_online_cpus’; did you mean ‘get_online_mems’? [-Werror=implicit-function-declaration] 1310 | get_online_cpus(); | ^~~~~~~ | get_online_mems /root/netmap/LINUX/virtio_net.c/virtio_net_src.c:1316:9: error: implicit declaration of function ‘put_online_cpus’; did you mean ‘num_online_cpus’? [-Werror=implicit-function-declaration] 1316 | put_online_cpus(); | ^~~~~~~ | num_online_cpus cc1: some warnings being treated as errors make[3]: [scripts/Makefile.build:271: /root/netmap/LINUX/virtio_net.c/virtio_net_src.o] Error 1 make[2]: [scripts/Makefile.build:514: /root/netmap/LINUX/virtio_net.c] Error 2 make[2]: Waiting for unfinished jobs.... make[1]: [Makefile:1862: /root/netmap/LINUX] Error 2 make[1]: Leaving directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' make: [netmap.mak:80: netmap.ko] Error 2 [root@dhcp-10-123-153-197 LINUX]# make install make -C /lib/modules/5.14.0-70.22.1.el9_0.x86_64/build M=/root/netmap/LINUX CONFIG_NETMAP=m \ O_DRIVERS="ice virtio_net.c/" \ \ NETMAP_DRIVER_SUFFIX= \ \ modules_install make[1]: Entering directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' cat: /root/netmap/LINUX/modules.order: No such file or directory DEPMOD /lib/modules/5.14.0-70.22.1.el9_0.x86_64 make[1]: Leaving directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' make -C ice install INSTALL_MOD_PATH= CFLAGS_EXTRA=" -I/root/netmap/LINUX -I/root/netmap/LINUX -I/root/netmap/LINUX/../sys -I/root/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE" NETMAP_DRIVER_SUFFIX= KSRC=/lib/modules/5.14.0-70.22.1.el9_0.x86_64/build KBUILD_EXTRA_SYMBOLS=/root/netmap/LINUX/Module.symvers make[1]: Entering directory '/root/netmap/LINUX/ice-1.9.11/src' 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="-I/root/netmap/LINUX -I/root/netmap/LINUX -I/root/netmap/LINUX/../sys -I/root/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE" -C "/lib/modules/5.14.0-70.22.1.el9_0.x86_64/build" CONFIG_ICE=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/root/netmap/LINUX/ice-1.9.11/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[2]: Entering directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_main.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_controlq.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_common.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_nvm.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_switch.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_sched.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_base.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_txrx_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_txrx.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_fltr.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_irq.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_pf_vsi_vlan_ops.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vsi_vlan_ops.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vsi_vlan_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_gnss.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_tc_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_fdir.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ethtool_fdir.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_acl_main.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_acl.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_acl_ctrl.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vlan_mode.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ddp.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_flex_pipe.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_flow.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_lag.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_fwlog.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ieps.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ethtool.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_devlink.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_fw_update.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_eswitch.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_repr.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_idc.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_debugfs.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_dcf.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_sriov.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vf_mbx.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vf_vsi_vlan_ops.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_virtchnl_allowlist.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vf_adq.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_virtchnl.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_virtchnl_fdir.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vf_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_vdcm.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_siov.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ptp.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_ptp_hw.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_dcb.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_dcb_nl.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_dcb_lib.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_arfs.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice_xsk.o CC [M] /root/netmap/LINUX/ice-1.9.11/src/kcompat.o LD [M] /root/netmap/LINUX/ice-1.9.11/src/ice.o WARNING: Symbol version dump "/root/netmap/LINUX/Module.symvers" is missing. Modules may not have dependencies or modversions. You may get many unresolved symbol warnings. MODPOST /root/netmap/LINUX/ice-1.9.11/src/Module.symvers WARNING: modpost: "netmap_attach" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_rx_irq" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_rings_config_get" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_no_pendintr" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_ring_reinit" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "nm_clear_native_flags" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_detach" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "nm_set_native_flags" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_reset" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! CC [M] /root/netmap/LINUX/ice-1.9.11/src/ice.mod.o LD [M] /root/netmap/LINUX/ice-1.9.11/src/ice.ko BTF [M] /root/netmap/LINUX/ice-1.9.11/src/ice.ko Skipping BTF generation for /root/netmap/LINUX/ice-1.9.11/src/ice.ko due to unavailability of vmlinux make[2]: Leaving directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64'

@gzip -c ../ice.7 > ice.7.gz

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="-I/root/netmap/LINUX -I/root/netmap/LINUX -I/root/netmap/LINUX/../sys -I/root/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -g -DCONFIG_NETMAP_NULL -DCONFIG_NETMAP_PTNETMAP -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE" -C "/lib/modules/5.14.0-70.22.1.el9_0.x86_64/build" CONFIG_ICE=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/root/netmap/LINUX/ice-1.9.11/src" NEED_AUX_BUS="0" modules_install 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[2]: Entering directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64' INSTALL /lib/modules/5.14.0-70.22.1.el9_0.x86_64/updates/drivers/net/ethernet/intel/ice/ice.ko DEPMOD /lib/modules/5.14.0-70.22.1.el9_0.x86_64 depmod: WARNING: /lib/modules/5.14.0-70.22.1.el9_0.x86_64/kernel/drivers/infiniband/hw/irdma/irdma.ko.xz needs unknown symbol ice_del_rdma_qset depmod: WARNING: /lib/modules/5.14.0-70.22.1.el9_0.x86_64/kernel/drivers/infiniband/hw/irdma/irdma.ko.xz needs unknown symbol ice_add_rdma_qset depmod: WARNING: /lib/modules/5.14.0-70.22.1.el9_0.x86_64/kernel/drivers/infiniband/hw/irdma/irdma.ko.xz needs unknown symbol ice_rdma_update_vsi_filter depmod: WARNING: /lib/modules/5.14.0-70.22.1.el9_0.x86_64/kernel/drivers/infiniband/hw/irdma/irdma.ko.xz needs unknown symbol ice_rdma_request_reset depmod: WARNING: /lib/modules/5.14.0-70.22.1.el9_0.x86_64/kernel/drivers/infiniband/hw/irdma/irdma.ko.xz needs unknown symbol ice_get_qos_params make[2]: Leaving directory '/usr/src/kernels/5.14.0-70.22.1.el9_0.x86_64'

skotur-brcm commented 2 years ago

Hope the above output helps ?

giuseppelettieri commented 2 years ago

I agree that the warnings should not be a problem, but you also have a compile error in virtio_net_src.c. I have just pushed to master a possible fix. May you please try it?

skotur-brcm commented 2 years ago

Hang on Giuseppe, I still do not understand what you mean .. My original problem of 'make install' failing (while running the recommended trio of configure;make; make install' ) is still not solved? What is the proposed fix/workaround for that?

skotur-brcm commented 2 years ago

This is pretty normal as far as I can tell, since you're building both the netmap.ko and the driver.ko, but the build does them separately and the kernel doesn't know the symbols from the former when building the latter, since they are separate.

if you make install both netmap and driver modules and then run depmod -a, then there should be no missing symbols. Running the trio of 'configure; make; make install' will build both netmap and driver modules, correct? what am i missing here ?

In the case above, you only seem to be building drivers, do you already have netmap.ko installed and depmod -a run? I don't think this has anything to do with module signing.

giuseppelettieri commented 2 years ago

What do you mean by 'failing'? You can ignore the warnings. Are the modules created, and are you able to insmod/modprobe them?

skotur-brcm commented 2 years ago

WARNING: modpost: "netmap_attach" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_rx_irq" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_rings_config_get" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_no_pendintr" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_ring_reinit" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "nm_clear_native_flags" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_detach" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "nm_set_native_flags" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined! WARNING: modpost: "netmap_reset" [/root/netmap/LINUX/ice-1.9.11/src/ice.ko] undefined!

I think these warnings are bad don't you think? I mean if you modprobe the module it would bail out saying 'unknown symbol in module' unless one explicitly concatenates the Module.symvers file inside the 'ice' folder?