cisco / exanic-software

ExaNIC drivers, utilities and development libraries
Other
131 stars 79 forks source link

Build failure on RHEL 9.4 kernel 5.14.0-427.16.1.el9_4.x86_64 #90

Open AdiPircalabu opened 1 month ago

AdiPircalabu commented 1 month ago

Appears to be the same failure as reported here: https://github.com/cisco/exanic-software/issues/89

$ git clone https://github.com/cisco/exanic-software
Cloning into 'exanic-software'...
remote: Enumerating objects: 3633, done.
remote: Counting objects: 100% (522/522), done.
remote: Compressing objects: 100% (240/240), done.
remote: Total 3633 (delta 283), reused 481 (delta 273), pack-reused 3111
Receiving objects: 100% (3633/3633), 1.85 MiB | 22.29 MiB/s, done.
Resolving deltas: 100% (2382/2382), done.
$ cd exanic-software/
$ make
make -C modules/exanic
make[1]: Entering directory '/data/psonic/adi/work/git/exanic-software/modules/exanic'
make -C /lib/modules/`uname -r`/build M=$PWD modules
make[2]: Entering directory '/usr/src/kernels/5.14.0-427.16.1.el9_4.x86_64'
  CC [M]  /data/psonic/adi/work/git/exanic-software/modules/exanic/exanic-main.o
/data/psonic/adi/work/git/exanic-software/modules/exanic/exanic-main.c: In function ‘exanic_probe’:
/data/psonic/adi/work/git/exanic-software/modules/exanic/exanic-main.c:1062:5: error: implicit declaration of function ‘pci_enable_pcie_error_reporting’ [-Werror=implicit-function-declaration]
 1062 |     pci_enable_pcie_error_reporting(pdev);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/psonic/adi/work/git/exanic-software/modules/exanic/exanic-main.c:1887:5: error: implicit declaration of function ‘pci_disable_pcie_error_reporting’ [-Werror=implicit-function-declaration]
 1887 |     pci_disable_pcie_error_reporting(pdev);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:299: /data/psonic/adi/work/git/exanic-software/modules/exanic/exanic-main.o] Error 1
make[2]: *** [Makefile:1934: /data/psonic/adi/work/git/exanic-software/modules/exanic] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.14.0-427.16.1.el9_4.x86_64'
make[1]: *** [Makefile:20: default] Error 2
make[1]: Leaving directory '/data/psonic/adi/work/git/exanic-software/modules/exanic'
make: *** [Makefile:9: modules] Error 2
$ uname -r
5.14.0-427.16.1.el9_4.x86_64
$
danfruehauf commented 1 month ago

Please see #91

Disclosure: I'm not an official maintainer or a Cisco employee.

AdiPircalabu commented 1 month ago

Please see #91

Disclosure: I'm not an official maintainer or a Cisco employee.

Thanks @danfruehauf, that's very close to our patch. Changes from https://github.com/cisco/exanic-software/pull/85 and https://github.com/cisco/exanic-software/pull/87 exanic-software_el9_4.patch.gz

danfruehauf commented 1 month ago

@AdiPircalabu I can see that - must have missed your patch before I did that work.

It is very unfortunate that this is not fixed upstream by Cisco/Exablaze. As a client, I would expect a major distro like RHEL9 to have full support.