You are not logged in.

#1 2020-11-15 19:28:47

Hugano
Member
Registered: 2020-11-15
Posts: 2

[Solved] Linux headers for module compilation

My kernel is 5.9.8-arch1-1-vfio. I'm using AUR package  linux-vfio.
I'm trying to install vendor-reset-git from AUR link
The problem is that it gives me error

==> Starting build()...
make -C /lib/modules/5.9.8-arch1-1-vfio/build M=/home/voaz/.cache/yay/vendor-reset-git/src/vendor-reset modules
make[1]: *** /lib/modules/5.9.8-arch1-1-vfio/build: No such file or directory.  Stop.
make: *** [Makefile:8: build] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: vendor-reset-git

Not sure, but as I understand I need  linux-headers package, but since I'm using kernel which I'm building locally, there is should be an option to extract from my local build (cache files of yay) those headers or create a package as a linux-header package.
The question is how to install those headers if I'm using kernel from aur which I'm building locally?

uname -r
5.9.8-arch1-1-vfio
pacman -Qi linux-vfio                      
Name            : linux-vfio
Version         : 5.9.8.arch1-1
Description     : The Linux kernel and modules
Architecture    : x86_64
URL             : https://git.archlinux.org/linux.git/log/?h=v5.9.8-arch1
Licenses        : GPL2
Groups          : None
Provides        : VIRTUALBOX-GUEST-MODULES  WIREGUARD-MODULE
Depends On      : coreutils  kmod  initramfs
Optional Deps   : crda: to set the correct wireless channels of your country [installed]
                  linux-firmware: firmware images needed for some devices [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : virtualbox-guest-modules-arch  wireguard-arch
Installed Size  : 79,09 MiB
Packager        : Unknown Packager
Build Date      : Sa 14 Nov 2020 15:52:23 CET
Install Date    : So 15 Nov 2020 10:52:15 CET
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

Last edited by Hugano (2020-11-15 22:23:21)

Offline

#2 2020-11-15 19:34:32

loqs
Member
Registered: 2014-03-06
Posts: 19,042

Re: [Solved] Linux headers for module compilation

https://aur.archlinux.org/packages/linux-vfio-headers/ is part of the split package linux-vfio.  it should have been built at the same time as linux-vfio.  If you install that package is the issue resolved?

Offline

#3 2020-11-15 22:23:01

Hugano
Member
Registered: 2020-11-15
Posts: 2

Re: [Solved] Linux headers for module compilation

oh my bad. Didn't check if it even exists in repo. AUR is awesome! Thanks Ioqs!
Problem solved.

Offline

Board footer

Powered by FluxBB