Clear version 31890 module build failed

Hi Team,

Using Clear Linux:
Current OS version: 31890
Latest server version: 31890

Trying to build network card driver and get an error:

make[1]: Entering directory ‘/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native/lib’
make[2]: Entering directory ‘/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native/lib/citools’
make -C /usr/lib/modules/5.4.2-875.native/build NDEBUG=1 GCOV= CC=cc symverfile=/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native/lib/citools/Module.symvers KBUILD_EXTMOD=/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native/lib/citools module/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native/lib/citools
make[3]: Entering directory ‘/usr/lib/modules/5.4.2-875.native/build’
make[3]: *** No rule to make target ‘module/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native/lib/citools’. Stop.
make[3]: Leaving directory ‘/usr/lib/modules/5.4.2-875.native/build’
make[2]: *** […/…/…/…/src/lib/citools/mmake.mk:93: all] Error 2
make[2]: Leaving directory ‘/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native/lib/citools’
make[1]: *** […/…/…/src/lib/mmake.mk:30: all] Error 2
make[1]: Leaving directory ‘/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native/lib’
make: *** […/…/src/mmake.mk:60: all] Error 2
make: Leaving directory ‘/home/alekperov/onload-7.0.0-pON11504/build/x86_64_linux-5.4.2-875.native’
onload_build: ERROR: Failed to build driver components.
onload_install: ERROR: Build failed. Not installing.

The same source files compilation above went with no problem in OS version: 31810.
Please help!

Could be that you’re attempting to compile against a kernel for which the sources are not available or outdated. Try running the updater and rebooting, and checking that /usr/lib/modules/5.4.2-875.native exists. Do you need to use the LTS kernels and use DKMS guide here?

Thank you for the reply! I managed to build the driver by replacing some paths inside mmake.mk and patching some source files.
What are your guarantees on LTS kernels? How do I disable automated updates?

Hopefully will be able to recompile when new linux kernel appears again. Again thank you for your support.

The LTS kernels update at the same interval that new LTS kernels are announced. We do include critical security patches when they come out, so we recommend you keep them updated all the time, however, this generally means very little updates happen to them. (more like monthly instead of weekly).

1 Like

@Ilgar, did you find the command to disable auto updates? It’s

sudo swupd autoupdate --disable

@thomas.s thank you, yes I used this exact command to disable the autoupdate.