[SOLVED] Update to latest pve-kernel 5.11.22.7 module bnx2x build fail

Micma99

Member
Oct 3, 2020
5
6
8
Updated PVE this AM with apt-get update followed by apt-get dist-upgrade.

While upgrading got this:
Code:
Unpacking pve-headers-5.11.22-3-pve (5.11.22-7) over (5.11.22-6)
Unpacking pve-kernel-5.11.22-3-pve (5.11.22-7) over (5.11.22-6)
.......
Building module:
cleaning build area...
make -j24 KERNELRELEASE=5.11.22-3-pve -C /lib/modules/5.11.22-3-pve/build M=/var/lib/dkms/bnx2x/99.1.713.36-0/build......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.11.22-3-pve (x86_64)
Consult /var/lib/dkms/bnx2x/99.1.713.36-0/build/make.log for more information.

make.log
Code:
DKMS make.log for bnx2x-99.1.713.36-0 for kernel 5.11.22-3-pve (x86_64)
Wed Aug 25 11:29:36 EDT 2021
make: Entering directory '/usr/src/linux-headers-5.11.22-3-pve'
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.o
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_link.o
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.o
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_ethtool.o
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_stats.o
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_dcb.o
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sp.o
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_vfpf.o
  CC [M]  /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sriov.o
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sriov.c:23:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_init.h:299: warning: "BITS_TO_BYTES" redefined
  299 | #define BITS_TO_BYTES(x) ((x)/8)
      |
In file included from ./include/linux/kernel.h:11,
                 from ./include/linux/list.h:9,
                 from ./include/linux/pci.h:32,
                 from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x.h:19,
                 from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sriov.c:22:
./include/linux/bitops.h:21: note: this is the location of the previous definition
   21 | #define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
      |
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_stats.c:23:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_dcb.c:31:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_link.c:30:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_vfpf.c:23:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sriov.c:24:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sp.c:30:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_ethtool.c:28:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_ethtool.c:30:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_init.h: At top level:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_init.h:299: warning: "BITS_TO_BYTES" redefined
  299 | #define BITS_TO_BYTES(x) ((x)/8)
      |
In file included from ./include/linux/bitmap.h:8,
                 from ./include/linux/ethtool.h:16,
                 from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_ethtool.c:22:
./include/linux/bitops.h:21: note: this is the location of the previous definition
   21 | #define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
      |
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.c:31:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.c:32:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_init.h: At top level:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_init.h:299: warning: "BITS_TO_BYTES" redefined
  299 | #define BITS_TO_BYTES(x) ((x)/8)
      |
In file included from ./include/linux/kernel.h:11,
                 from ./include/linux/skbuff.h:13,
                 from ./include/linux/if_ether.h:19,
                 from ./include/linux/etherdevice.h:20,
                 from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.c:22:
./include/linux/bitops.h:21: note: this is the location of the previous definition
   21 | #define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
      |
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:63:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_init.h:299: warning: "BITS_TO_BYTES" redefined
  299 | #define BITS_TO_BYTES(x) ((x)/8)
      |
In file included from ./include/linux/kernel.h:11,
                 from ./include/linux/list.h:9,
                 from ./include/linux/module.h:12,
                 from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:22:
./include/linux/bitops.h:21: note: this is the location of the previous definition
   21 | #define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
      |
In file included from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:65:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h: In function ‘bnx2x_del_all_napi_cnic’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.h:830:3: error: implicit declaration of function ‘napi_hash_del’; did you mean ‘hash_del’? [-Werror=implicit-function-declaration]
  830 |   napi_hash_del(&bnx2x_fp(bp, i, napi));
      |   ^~~~~~~~~~~~~
      |   hash_del
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c: At top level:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:13143:21: error: initialization of ‘void (*)(struct net_device *, unsigned int)’ from incompatible pointer type ‘void (*)(struct net_device *)’ [-Werror=incompatible-pointer-types]
13143 |  .ndo_tx_timeout  = bnx2x_tx_timeout,
      |                     ^~~~~~~~~~~~~~~~
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:13143:21: note: (near initialization for ‘bnx2x_netdev_ops.ndo_tx_timeout’)
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c: In function ‘bnx2x_init_one’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:14062:19: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
14062 |   bp->doorbells = ioremap_nocache(pci_resource_start(pdev, 2),
      |                   ^~~~~~~~~~~~~~~
      |                   ioremap_cache
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:14062:17: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
14062 |   bp->doorbells = ioremap_nocache(pci_resource_start(pdev, 2),
      |                 ^
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_vfpf.o] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_dcb.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_stats.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sriov.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_ethtool.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sp.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_link.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.o] Error 1
make: *** [Makefile:1848: /var/lib/dkms/bnx2x/99.1.713.36-0/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.11.22-3-pve'

PVE version:
Code:
root@Maverick:/# pveversion –v
USAGE: pveversion [--verbose]

root@Maverick:/# pveversion --verbose
proxmox-ve: 7.0-2 (running kernel: 5.11.22-3-pve)
pve-manager: 7.0-11 (running version: 7.0-11/63d82f4e)
pve-kernel-5.11: 7.0-6
pve-kernel-helper: 7.0-6
pve-kernel-5.4: 6.4-5
pve-kernel-5.3: 6.1-6
pve-kernel-5.0: 6.0-11
pve-kernel-5.11.22-3-pve: 5.11.22-7
pve-kernel-5.4.128-1-pve: 5.4.128-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.0.21-5-pve: 5.0.21-10
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph-fuse: 14.2.21-1
corosync: 3.1.2-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.21-pve1
libproxmox-acme-perl: 1.3.0
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.0-4
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.0-6
libpve-guest-common-perl: 4.0-2
libpve-http-server-perl: 4.0-2
libpve-storage-perl: 7.0-10
libqb0: 1.0.5-1
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.9-4
lxcfs: 4.0.8-pve2
novnc-pve: 1.2.0-3
proxmox-backup-client: 2.0.9-2
proxmox-backup-file-restore: 2.0.9-2
proxmox-mini-journalreader: 1.2-1
proxmox-widget-toolkit: 3.3-6
pve-cluster: 7.0-3
pve-container: 4.0-9
pve-docs: 7.0-5
pve-edk2-firmware: 3.20200531-1
pve-firewall: 4.2-2
pve-firmware: 3.2-4
pve-ha-manager: 3.3-1
pve-i18n: 2.4-1
pve-qemu-kvm: 6.0.0-3
pve-xtermjs: 4.12.0-1
qemu-server: 7.0-13
smartmontools: 7.2-pve2
spiceterm: 3.2-2
vncterm: 1.7-1
zfsutils-linux: 2.0.5-pve1

From another post, checked ESP space and found only 25% used.
If anything else is needed, post and I'll provide.

Thanks for any input!
 
Last edited:
While upgrading got this:

Why do you have the bnx2x driver installed as out-of-tree dkms module?

If at all possible I would suggest to remove the dkms package and see if the driver shipped with the kernel works.

Else this issue seems like a incompatibility between the out-of-tree dkms in the present version and the new pve-kernel you're trying to install.

If you need to keep the out-of-tree driver - you can check if there's an update available for it

I hope this helps!
 
  • Like
Reactions: Micma99
Why do you have the bnx2x driver installed as out-of-tree dkms module?

Oh my, so sorry about my memory losses.

Yes I had dkms installed for special case bnx2x driver patch to enable 2.5gb speeds on a Broadcom 10g card to sync up with my ISP has I was running PFsense in a vm at the beginning of pve6. Worked fine as the driver hadn't change since. Only when pve7 arrived with new kernel driver version which broke the patch.

My bad was also not using passthrough the nic card to the vm why the change was done in proxmox.

I had completely forgotten about it has I purchased dedicated HW for PFsense and removed that 10g card from the server a long while ago.

Thank you for putting me in the right direction, removed dkms and seems all is in order.
 
  • Like
Reactions: Stoiko Ivanov

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!