Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvidia340-dkms fails to build #14273

Closed
bsduck opened this issue Sep 6, 2019 · 6 comments
Closed

nvidia340-dkms fails to build #14273

bsduck opened this issue Sep 6, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@bsduck
Copy link
Contributor

bsduck commented Sep 6, 2019

System

  • xuname:
    Void 4.19.69_1 x86_64 GenuineIntel uptodate rF
  • package:
    nvidia340-dkms-340.107_3

Expected behavior

The kernel module should be built and installed

Actual behavior

The build fails with following error message:
ERROR: Kernel configuration is invalid include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it.

Running make oldconfig && make prepare gives an error as well:
scripts/kconfig/conf --syncconfig Kconfig scripts/Makefile.build:45: arch/x86/entry/syscalls/Makefile: No such file or directory make[1]: *** No rule to make target 'arch/x86/entry/syscalls/Makefile'. Stop. make: *** [arch/x86/Makefile:245: archheaders] Error 2

Steps to reproduce the behavior

Install nvidia340

@bsduck bsduck changed the title nvidia340-dkms installation fails nvidia340-dkms fails to build Sep 6, 2019
@Hoshpak
Copy link
Member

Hoshpak commented Sep 6, 2019

It works fine here. Are you sure the kernel headers are installed properly?

@bsduck
Copy link
Contributor Author

bsduck commented Sep 7, 2019

linux4.19-headers package is installed. May there be some manual task needed for the headers to be installed properly?

You can see my complete log if it cans help you.
make.log

@Hoshpak
Copy link
Member

Hoshpak commented Sep 7, 2019

Please check your /usr/bin/cc symlink. If it points to clang or any other compiler that is not gcc, use xbps-alternatives to set it back to gcc. The errors look like the wrong compiler is used to build the kernel module.

@bsduck
Copy link
Contributor Author

bsduck commented Sep 8, 2019

You're right! It works fine now. Thank you.

@bsduck bsduck closed this as completed Sep 8, 2019
@bsduck
Copy link
Contributor Author

bsduck commented Sep 10, 2019

Seems not to work with linux5.2 (which just became default). Here is my log again.
make.log

@bsduck bsduck reopened this Sep 10, 2019
@Hoshpak Hoshpak added the bug Something isn't working label Sep 10, 2019
@Hoshpak
Copy link
Member

Hoshpak commented Sep 10, 2019

That is indeed an issue with the package. nvidia340 was only tested on i686 up to now and this architecture doesn't have the uvm module. I will see if I can find a way to patch this once I have time to test myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants