cisco / exanic-software

ExaNIC drivers, utilities and development libraries
Other
144 stars 82 forks source link

Build problems on Rocky Linux 9.2 #96

Open charlie-algo-logic opened 2 weeks ago

charlie-algo-logic commented 2 weeks ago

Can't build it on Rocky Linux 9.2, looking for a directory that looks like kernel headers, kernel-devel is installed

[altest@localhost exanic-software]$ make
make -C modules/exanic                                                                                                                                                                                                                
make[1]: Entering directory '/home/altest/exanic-software/modules/exanic'                                                                                                                                                             
make -C /lib/modules/`uname -r`/build M=$PWD modules
make[2]: Entering directory '/home/altest/exanic-software/modules/exanic'
make[2]: *** /lib/modules/5.14.0-284.11.1.el9_2.x86_64/build: No such file or directory.  Stop.
make[2]: Leaving directory '/home/altest/exanic-software/modules/exanic'
make[1]: *** [Makefile:20: default] Error 2
make[1]: Leaving directory '/home/altest/exanic-software/modules/exanic'
make: *** [Makefile:9: modules] Error 2
[altest@localhost exanic-software]$ ll /lib/modules/5.14.0-284.11.1.el9_2.x86_64/build
lrwxrwxrwx. 1 root root 45 May  9  2023 /lib/modules/5.14.0-284.11.1.el9_2.x86_64/build -> /usr/src/kernels/5.14.0-284.11.1.el9_2.x86_64
[altest@localhost exanic-software]$ ll /usr/src/kernels/5.14.0-284.11.1.el9_2.x86_64
ls: cannot access '/usr/src/kernels/5.14.0-284.11.1.el9_2.x86_64': No such file or directory
[altest@localhost exanic-software]$ sudo yum install kernel-devel
Last metadata expiration check: 1:13:31 ago on Wed 06 Nov 2024 09:12:49 AM PST.
Package kernel-devel-5.14.0-427.42.1.el9_4.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[altest@localhost exanic-software]$ lsb_release -a
LSB Version:    n/a
Distributor ID: RockyLinux
Description:    Rocky Linux 9.2 (Blue Onyx)
Release:        9.2
Codename:       n/a
[altest@localhost exanic-software]$
charlie-algo-logic commented 2 weeks ago

Headers were installed, too.

[altest@localhost exanic-software]$ sudo yum install kernel-headers.x86_64
Last metadata expiration check: 2:23:14 ago on Wed 06 Nov 2024 09:12:49 AM PST.
Package kernel-headers-5.14.0-427.42.1.el9_4.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[altest@localhost exanic-software]$
charlie-algo-logic commented 2 weeks ago

And I've never had these kinds of problems building on ubuntu 22.04 or Centos (old). I've done extensive modifications to add hot_reload debugging display features in those distros, no problems. However, the vanilla exanic-software build on Rocky Linux 9.2 is giving me fits.

AlexeySaff commented 2 weeks ago

It seems that your kernel and kernel-devel are not match. Update your kernel first and after that try to build

charlie-algo-logic commented 2 weeks ago

Tried that, there are no matching kernel-devel or kernel-header rpms to that kernel either. They all have a 40 number or 30 debug number that doesn't match either kernel's build.

Thus, neither the build environment for 9.2 nor 9.4 builds the open source exanic-software from the github, which means it can't be a replacement for our Centos customers, which means we have to convert everything from rpm to package manager software and scripts and move to Ubuntu/Debian.

On Thu, Nov 7, 2024, 2:44 AM AlexeySaff @.***> wrote:

It seems that your kernel and kernel-devel are not match. Update your kernel first and after that try to build

— Reply to this email directly, view it on GitHub https://github.com/cisco/exanic-software/issues/96#issuecomment-2461902466, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKUP4YBFPFJXQQPP5DLYVFLZ7NACBAVCNFSM6AAAAABRJO2366VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRRHEYDENBWGY . You are receiving this because you authored the thread.Message ID: @.***>

AlexeySaff commented 1 week ago

for 9.4 you need 2.7.4 + 9.4 patch I'm using it a lot and it works

AlexeySaff commented 1 week ago

Tried that, there are no matching kernel-devel or kernel-header rpms to that kernel either. - just update to the current kernel in tepo and to the same kernel-devel