-
Notifications
You must be signed in to change notification settings - Fork 18
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
Cannot compile on kernel 6.3.1 #15
Comments
You can try to use the fork from this MR: #12 I've tested it with Kernel v6.3 and it works fine. |
Confirm still working on 6.3.1 , looks like a workflow issue here during compilation, kernel module should be loadable by DKMS as in original installation instructions, but using the fork instead , trying to compile with a GCC command line like that will throw errors, try cleaning then going back to original install method followed by #12 |
Not here with kernel 6.3.1 and gcc 13.1. |
snd-hdspe is an out of tree driver, therefore it needs to be compiled with the same compiler as was used to compile the kernel, in your case the kernel was compiled with clang, and you're trying to compile the driver with gcc. This is not a compatible workflow. Unsure of best solution, you could try compiling the driver with clang, but it will get messy and need work. Might be easier to swap to a kernel compiled with GCC |
Tried with clang:
|
You can't really expect a driver to compile with a different compiler without it first needing a lot of work unless it was originally written to be cross-compatible, which hdspe-snd is not. The code would need work to be compatible. The easiest and tidiest solution is swapping to a GCC kernel |
Cannot compile on kernel 6.3.1. This is the output:
[audiolinux@audiolinux snd-hdspe]$ make gcc -MM sound/pci/hdsp/hdspe/hdspe*.c > deps make W=1 -C /lib/modules/6.3.1-1-cachyos-rt/build M=/home/audiolinux/Downloads/Temp/snd-hdspe modules warning: the compiler differs from the one used to build the kernel The kernel was built by: clang version 15.0.7 You are using: gcc (GCC) 13.1.1 20230429 CC [M] /home/audiolinux/Downloads/Temp/snd-hdspe/sound/pci/hdsp/hdspe/hdspe_core.o gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’ make[4]: *** [scripts/Makefile.build:252: /home/audiolinux/Downloads/Temp/snd-hdspe/sound/pci/hdsp/hdspe/hdspe_core.o] Error 1 make[3]: *** [scripts/Makefile.build:494: /home/audiolinux/Downloads/Temp/snd-hdspe/sound/pci/hdsp/hdspe] Error 2 make[2]: *** [scripts/Makefile.build:494: /home/audiolinux/Downloads/Temp/snd-hdspe/sound/pci/hdsp] Error 2 make[1]: *** [Makefile:2023: /home/audiolinux/Downloads/Temp/snd-hdspe] Error 2 make: *** [Makefile:17: default] Error 2
The text was updated successfully, but these errors were encountered: