dkms module build fail on "gcc: error trying to exec 'cc1': execvp: No such file or directory"
Created by: fullmetal1
When I try to install a kernel through MHM, the module rtl8822bu-dkms-git does not build. If I install the kernel directly through pacman, however, it works just fine.
From the MSM output
(2/5) Install DKMS modules
==> dkms install rtl8822bu/5.2.4_20170919 -k 4.16.2-1-MANJARO
Error! Bad return status for module build on kernel: 4.16.2-1-MANJARO (x86_64)
Consult /var/lib/dkms/rtl8822bu/5.2.4_20170919/build/make.log for more information.
and the contents of make.log
DKMS make.log for rtl8822bu-5.2.4_20170919 for kernel 4.16.2-1-MANJARO (x86_64)
Tue Apr 17 21:18:00 EDT 2018
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.16.2-1-MANJARO/build M=/var/lib/dkms/rtl8822bu/5.2.4_20170919/build modules
make[1]: Entering directory '/usr/lib/modules/4.16.2-1-MANJARO/build'
gcc: error trying to exec 'cc1': execvp: No such file or directory
gcc: error trying to exec 'cc1': execvp: No such file or directory
Makefile:974: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.
make[1]: Leaving directory '/usr/lib/modules/4.16.2-1-MANJARO/build'
make: *** [Makefile:1801: modules] Error 2
and if I do a sudo pacman -S linux416
-> % sudo pacman -S linux416
[sudo] password for [REDACTED]:
warning: linux416-4.16.2-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) linux416-4.16.2-1
Total Installed Size: 117.11 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove rtl8822bu/5.2.4_20170919 -k 4.16.2-1-MANJARO
Error! There is no instance of rtl8822bu 5.2.4_20170919
for kernel 4.16.2-1-MANJARO (x86_64) located in the DKMS tree.
:: Processing package changes...
(1/1) reinstalling linux416 [######################] 100%
:: Running post-transaction hooks...
(1/5) Updating linux416 module dependencies...
(2/5) Install DKMS modules
==> dkms install rtl8822bu/5.2.4_20170919 -k 4.16.2-1-MANJARO
(3/5) Updating linux416 initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux416.preset: 'default'
-> -k /boot/vmlinuz-4.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-4.16-x86_64.img
==> Starting build: 4.16.2-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-4.16-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux416.preset: 'fallback'
-> -k /boot/vmlinuz-4.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-4.16-x86_64-fallback.img -S autodetect
==> Starting build: 4.16.2-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-4.16-x86_64-fallback.img
==> Image generation successful
Edited by Mark Wagie