-
-
Notifications
You must be signed in to change notification settings - Fork 764
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
Linux kernel cannot be built in NixOS #5162
Labels
Comments
you can try use linux-header from xmake-repo.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Xmake Version
v2.9.1+20240422
Operating System Version and Architecture
6.9.1
Describe Bug
I think that is because NixOS's linux headers is a little different:
That is ArchLinux:
$ ls /usr/src/linux -dl Permissions Size User Date Modified Name lrwxrwxrwx - root 18 May 00:56 /usr/src/linux -> ../lib/modules/6.9.1-arch1-1/build $ ls /usr/src/linux -l arch crypto include kernel localversion.20-pkgname Module.symvers scripts System.map version vmlinux.h block drivers init lib Makefile net security tools virt certs fs Kconfig localversion.10-pkgrel mm samples sound usr vmlinux
This is NixOS:
Expected Behavior
Can work.
Project Configuration
xmake test example.
Additional Information and Error Logs
If we cannot find some files in
/nix/store/XXX/lib/modules/6.9.1/build
, we should search/nix/store/XXX/lib/modules/6.9.1/build/source
as a fallback for NixOS.The text was updated successfully, but these errors were encountered: