You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
$ nix eval --impure --expr '"${(import <nixpkgs> {}).linuxPackages_latest.kernel.dev}"'"/nix/store/cajf6mwyfm0r8dpa12chcj2hpla1yzk0-linux-6.9.1-dev"
$ ls /nix/store/cajf6mwyfm0r8dpa12chcj2hpla1yzk0-linux-6.9.1-dev/lib/modules/6.9.1
build source
$ ls /nix/store/cajf6mwyfm0r8dpa12chcj2hpla1yzk0-linux-6.9.1-dev/lib/modules/6.9.1/build
arch include kernel Makefile Module.symvers scripts source tools
$ ls /nix/store/cajf6mwyfm0r8dpa12chcj2hpla1yzk0-linux-6.9.1-dev/lib/modules/6.9.1/source
arch certs Documentation include io_uring kernel Makefile net samples security tools virt
block crypto fs init ipc lib mm rust scripts sound usr
$ ls /nix/store/cajf6mwyfm0r8dpa12chcj2hpla1yzk0-linux-6.9.1-dev/lib/modules/6.9.1/build/source -dl
Permissions Size User Date Modified Name
lrwxrwxrwx - root 1 Jan 1970 /nix/store/cajf6mwyfm0r8dpa12chcj2hpla1yzk0-linux-6.9.1-dev/lib/modules/6.9.1/build/source -> ../source
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:
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: