Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build problems on Rocky Linux 9.2 #96

Open
charlie-algo-logic opened this issue Nov 6, 2024 · 6 comments
Open

Build problems on Rocky Linux 9.2 #96

charlie-algo-logic opened this issue Nov 6, 2024 · 6 comments

Comments

@charlie-algo-logic
Copy link

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
Copy link
Author

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
Copy link
Author

charlie-algo-logic commented Nov 6, 2024

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
Copy link

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

@charlie-algo-logic
Copy link
Author

charlie-algo-logic commented Nov 8, 2024 via email

@AlexeySaff
Copy link

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

@AlexeySaff
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants