Recent update to kernel-4.14.2 yields errors with bbswitch bbswitch_make.log.txt (546 Bytes)
and nvidia compilation nvidia_make.log.txt (28,8 KB)
. Thus, no nvidia.
{ make KERNELRELEASE=4.14.2-desktop-1omv KVERSION=4.14.2-desktop-1omv -j8; } >> /var/lib/dkms/bbswitch/0.8-5/build/make.log 2>&1
{ 'make' CC=gcc CXX=g++ SYSSRC=/lib/modules/4.14.2-desktop-1omv/build modules -j8; } >> /var/lib/dkms/nvidia-current/384.98-2/build/make.log 2>&1
(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.2-desktop-1omv (x86_64)
Consult /var/lib/dkms/bbswitch/0.8-5/build/make.log for more information.
(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.2-desktop-1omv (x86_64)
Consult /var/lib/dkms/nvidia-current/384.98-2/build/make.log for more information.
Same problem here.
Only I have a nVidia Quadro FX 4600 wihich use the nVidia340 kernel module.
I know there is a 340.104 version on the nVidia site.
I build my own 340.104 x86-64 rpm from pieces here and there.
And I choose not that the spec file patch the nvidia source-code.
But through the dkms.conf file.
It seem that with the kernel 4.14.2 I haveât the object files.
Just updated bbswitch and the problem seems to be the same:
Creating symlink /var/lib/dkms/bbswitch/0.8-6/source ->
/usr/src/bbswitch-0.8-6
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make KERNELRELEASE=4.14.2-desktop-1omv KVERSION=4.14.2-desktop-1omv -j8...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.14.2-desktop-1omv (x86_64)
Consult /var/lib/dkms/bbswitch/0.8-6/build/make.log for more information.
modprobe: FATAL: Module bbswitch not found in directory /lib/modules/4.14.2-desktop-1omv
Edit: Iâm kind of trying to learn by doing here and bear in mind I donât have nvidia hardware so I canât look on my own system for things. Trying to see if I can spot in build logs just what might be wrong. So be patient with me please.
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
Surely this means something? I donât know and am trying to learn this but donât nvidia packages and kernel versions need to match or if they donât match they need to be patched? See related here.
These are from @adelson.oliveira build logs. Just guessing is something missing or wrong version?
make[2]: *** No rule to make target 'tools/objtool/objtool', needed by '/var/lib/dkms/bbswitch/0.8-5/build/bbswitch.o'. Pare.
make[1]: *** [Makefile:1503: _module_/var/lib/dkms/bbswitch/0.8-5/build] Error 2
In your nvidia build log obviously there are a lot of missing files are these files in fact missing? Labeled differently?
Make always returns one of three error codes, as stated on gnu.org:
0: Exit status is âSuccessfulâ
2: Make Encountered Errors
1: Return response to -q (question) flag, indicating that targets require updating
if it sounds like I know what Iâm talking about, not exactly, Iâm a student in this thread and I got the above by reading the log file and Google ing. Iâm guessing that Error 1 is the most instructive âReturn response to -q (question) flag, indicating that targets require updatingâ. Which if Iâm reading correctly is telling us something is out of date and needs updating. Being as what has changed (AFAIK) is kernel Iâm speculating that something regarding the new kernel needs to be changed for modules to make/build. Like a patch?
Edit: The quote (block quote) about build/make Error codes is from here.
That crap in make.log file you get also when dkms build the kernel module succesful.
That not the point, what matter me, for some mysterious reason it wonât make the object files with kernel 4.14.x.
How and where you can disable this.
Makefile?
dkms.conf?
An other file?
Because I make mine 340.104 rpm version without patching in the spec file.
But whitin the dkms.conf file, I have the âvirginâ 340.104 source-code in /usr/src/nvidia340-340.104-1/
I put the patches in /usr/src/nvidia340-340.104-1/patches/
Il can play with the dkms.conf file which patch file I enable or not.
Do not bother for the 340.106 version.
The patch files that I have arenât suitable for the 340.106 version.
Even the âvirginâ source-code wonât build succesful.
Have to find suitable patch files for the 340.106 version in order to build succesful.
Kernel 4.14.14 need gcc with RETPOLINE patches. Our build system is currently occupied, as gcc build needs around 2h and then i need to push kernel-build which takes around 2h to build.
If my local testing would be fine, then over the upcoming weekend these will be available for you to give it a wider testing.