Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] nvidia-drivers not detecting Module.symvers file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
glenda_
n00b
n00b


Joined: 10 Nov 2019
Posts: 2

PostPosted: Sun Nov 10, 2019 7:23 pm    Post subject: [solved] nvidia-drivers not detecting Module.symvers file Reply with quote

no nvidia-drivers versions work, i have tried 440.31, 440.26, and 435.21. all give this same error

i made sure kernel is configured and compiled correctly for nvidia drivers as the wiki told me to

i have already done with the kernel: make modules && make oldconfig && make prepare, it was successful

it thinks Module.symvers is missing or does not contain exported symbols, but in fact it DOES exist in /usr/src/linux, and it seems to be a correctly formatted file, i don't know why it won't detect it

build log with error:

Code:
 * Package:    x11-drivers/nvidia-drivers-440.31
 * Repository: gentoo
 * Maintainer: jer@gentoo.org
 * USE:        X abi_x86_32 abi_x86_64 amd64 driver elibc_glibc kernel_linux kms multilib tools userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> cfg-update-1.8.2-r1: Creating checksum index...
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     5.3.9-gentoo-x86_64
 * Checking for suitable kernel configuration options...
 [ ok ]
 * Checking for suitable kernel configuration options...
 [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-440.31.run to /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work
>>> Unpacking nvidia-settings-440.31.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work ...
 * Applying nvidia-settings-linker.patch ...
 [ ok ]
 * Applying nvidia-drivers-440.26-locale.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work ...
 * Preparing nvidia module
make -j7 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux CC=x86_64-pc-linux-gnu-gcc NV_VERBOSE=1 module
make[1]: Entering directory '/usr/src/linux-5.3.9-gentoo'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (      \
echo >&2;                     \
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.";   \
echo >&2 ;                     \
/bin/false)
make -f ./scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work/kernel need-modorder=1
  ln -sf /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work/kernel/nvidia/nv-kernel.o_binary /var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work/kernel/nvidia/nv-kernel.o
The Module.symvers file is missing, or does not contain any
symbols exported from the kernel. This could cause the NVIDIA
kernel modules to be built against a configuration that does
not accurately reflect the actual target kernel.
The Module.symvers file check can be disabled by setting the
environment variable IGNORE_MISSING_MODULE_SYMVERS to 1.
make[2]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work/kernel/Kbuild:191: module_symvers_sanity_check] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1626: _module_/var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-5.3.9-gentoo'
make: *** [Makefile:81: modules] Error 2
 * ERROR: x11-drivers/nvidia-drivers-440.31::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-440.31::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-440.31::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-440.31/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-440.31/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work/kernel'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-440.31/work/'


it says i can disable the check by setting an environment variable... however running IGNORE_MISSING_MODULE_SYMVERS=1 before/with emerge has no effect


Last edited by glenda_ on Sun Nov 10, 2019 8:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Sun Nov 10, 2019 7:36 pm    Post subject: Reply with quote

glenda_,

Welcome to Gentoo.

What does say for you?
Code:
$ grep UNUSED /usr/src/linux/.config
# CONFIG_TRIM_UNUSED_KSYMS is not set
# CONFIG_UNUSED_SYMBOLS is not set


You must export unused kernel symbols. nvidia-drivers will use some of them.

Use the search in the kernel to go to those settings and read the help.
If you change anything, you need to rebuild your kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
glenda_
n00b
n00b


Joined: 10 Nov 2019
Posts: 2

PostPosted: Sun Nov 10, 2019 8:13 pm    Post subject: Reply with quote

NeddySeagoon wrote:
glenda_,

Welcome to Gentoo.

What does say for you?
Code:
$ grep UNUSED /usr/src/linux/.config
# CONFIG_TRIM_UNUSED_KSYMS is not set
# CONFIG_UNUSED_SYMBOLS is not set


You must export unused kernel symbols. nvidia-drivers will use some of them.

Use the search in the kernel to go to those settings and read the help.
If you change anything, you need to rebuild your kernel.


Setting those to =y fixed the problem, thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum