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

Kernel module cross-compilation fails for ARM64 target #973

Closed
jkuro-tii opened this issue Jan 27, 2025 · 0 comments
Closed

Kernel module cross-compilation fails for ARM64 target #973

jkuro-tii opened this issue Jan 27, 2025 · 0 comments
Assignees

Comments

@jkuro-tii
Copy link
Contributor

jkuro-tii commented Jan 27, 2025

During cross-compilation for the ARM64 target of the PR, the following error displays. Native compilation for ARM64 is fine.
The problem is the referral to the arch/x86 subdirectory:

Full building log
Error:

Running phase: buildPhase
build flags: SHELL=/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash KDIR=/nix/store/iqi24h895z78ahh0958ksg3wqsxwbz98-linux-aarch64-unknown-linux-gnu-6.6.71-dev/lib/modules/6.6.71/build MODULEDIR=\$\(out\)/lib/modules/6.6.71/kernel/drivers/char CFLAGS_kvm_ivshmem.o=\"-DCONFIG_KVM_IVSHMEM_SHM_SLOTS=6\"
cp ../drivers/char/ivshmem/kvm_ivshmem.c .
cp ../drivers/char/ivshmem/kvm_ivshmem.h .
make -C /nix/store/iqi24h895z78ahh0958ksg3wqsxwbz98-linux-aarch64-unknown-linux-gnu-6.6.71-dev/lib/modules/6.6.71/build M=/build/source/module modules
make[1]: Entering directory '/nix/store/iqi24h895z78ahh0958ksg3wqsxwbz98-linux-aarch64-unknown-linux-gnu-6.6.71-dev/lib/modules/6.6.71/build'
/nix/store/iqi24h895z78ahh0958ksg3wqsxwbz98-linux-aarch64-unknown-linux-gnu-6.6.71-dev/lib/modules/6.6.71/source/Makefile:768: /nix/store/iqi24h895z78ahh0958ksg3wqsxwbz98-linux-aarch64-unknown-linux-gnu-6.6.71-dev/lib/modules/6.6.71/source/arch/x86/Makefile: No such file or directory
make[2]: *** No rule to make target '/nix/store/iqi24h895z78ahh0958ksg3wqsxwbz98-linux-aarch64-unknown-linux-gnu-6.6.71-dev/lib/modules/6.6.71/source/arch/x86/Makefile'.  Stop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants