You are not logged in.

#1 2019-04-22 00:51:24

MrMatt2532
Member
Registered: 2019-04-22
Posts: 3

[SOLVED] Problem after updating nvidia-390xx-dkms

I performed an update the other day and the nvidia-390xx-dkms was available. During the update it attempted to install the DKMS module install for the zen kernel and the lts kernel. The zen kernel worked fine, however for the LTS kernel I saw the following output from pacman:

(1/2) Install DKMS modules
==> dkms install nvidia/390.116 -k 4.19.34-1-lts
Error! Bad return status for module build on kernel: 4.19.34-1-lts (x86_64)
Consult /var/lib/dkms/nvidia/390.116/build/make.log for more information.

I checked the contents of /var/lib/dkms/nvidia/390.116/build/make.log, only to see it was non-existent. Note that the  contents of /var/lib/dkms/nvidia/ includes two folders: '5.0.8-zen1-1-zen' and 'source'.

My main kernel works fine, so nothing too urgent here, however I can no longer boot the LTS kernel. If I try to select it in grub, I just get a blinking underscore during boot. Any ideas/suggestions?

Last edited by MrMatt2532 (2019-04-23 03:13:55)

Offline

#2 2019-04-22 08:16:05

Pryka
Member
Registered: 2018-02-07
Posts: 85

Re: [SOLVED] Problem after updating nvidia-390xx-dkms

You need nvidia-390xx-lts for LTS kernel.

Offline

#3 2019-04-22 08:33:40

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [SOLVED] Problem after updating nvidia-390xx-dkms

Pryka wrote:

You need nvidia-390xx-lts for LTS kernel.

nvidia-390xx-lts is prebuilt for lts while nvidia-390xx-dkms will build modules for lts.
@MrMatt2532 if you execute again

dkms install nvidia/390.116 -k 4.19.34-1-lts

Can you then examine / post /var/lib/dkms/nvidia/390.116/build/make.log ?

Offline

#4 2019-04-23 00:27:14

MrMatt2532
Member
Registered: 2019-04-22
Posts: 3

Re: [SOLVED] Problem after updating nvidia-390xx-dkms

Thanks loqs.

After running

dkms install nvidia/390.116 -k 4.19.34-1-lts

the following was found in the log:

DKMS make.log for nvidia-390.116 for kernel 4.19.34-1-lts (x86_64)
Mon 22 Apr 2019 07:20:21 PM CDT
make[1]: Entering directory '/usr/lib/modules/4.19.34-1-lts/build'

Compiler version check failed:

The major and minor number of the compiler used to
compile the kernel:

gcc version 8.2.1 20181127 (GCC)

does not match the compiler used here:

cc (GCC) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


It is recommended to set the CC environment variable
to the compiler that was used to compile the kernel.

The compiler version check can be disabled by setting
the IGNORE_CC_MISMATCH environment variable to "1".
However, mixing compiler versions between the kernel
and kernel modules can result in subtle bugs that are
difficult to diagnose.

*** Failed CC version check. Bailing out! ***

make[2]: *** [/var/lib/dkms/nvidia/390.116/build/Kbuild:180: cc_version_check] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1525: _module_/var/lib/dkms/nvidia/390.116/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.19.34-1-lts/build'
make: *** [Makefile:79: modules] Error 2

It looks like the issue is some sort of compiler mismatch. It seems there are a couple of solutions here, and now my questions are:
1) what are the best practices for this situation? should I set the IGNORE_CC_MISMATCH flag, or something else?
2) why exactly did this happen? can I prevent in the future?

Offline

#5 2019-04-23 00:42:21

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [SOLVED] Problem after updating nvidia-390xx-dkms

gcc 8.3 moved out of testing.  linux-lts 4.19.34 is built with gcc 8.2.1 which is detected as a mismatch.
linux-lts 4.19.36 (currently in testing) is built with gcc 8.3 which would match.
You could downgrade gcc to 8.2.1 to build the module or install 4.19.36 from testing or wait for it to leave testing.
I have no experience using IGNORE_CC_MISMATCH.

Offline

#6 2019-04-23 03:12:47

MrMatt2532
Member
Registered: 2019-04-22
Posts: 3

Re: [SOLVED] Problem after updating nvidia-390xx-dkms

Thanks for the help, makes sense.

I went ahead and set the IGNORE_CC_MISMATCH variable to "1" after googling a little bit more on this topic. Then i re-installed the driver and now I can boot into LTS kernel. I figured this solution was fine especially since this is only a short term issue that will properly resolve itself when the CC mismatch is resolved.

Note the Nvidia arch wiki mentions that as a solution as well: https://wiki.archlinux.org/index.php/NV … in_general

Also, I found a reddit thread from a year ago mentioning the same issue:
https://www.reddit.com/r/archlinux/comm … ith_linux/

Last edited by MrMatt2532 (2019-04-23 03:16:25)

Offline

Board footer

Powered by FluxBB