-
Notifications
You must be signed in to change notification settings - Fork 116
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
Can't get it to compile on an aarch64(snapdragon 845) phone #481
Comments
Your kernel has been built with a cross-compiler - this won't work (likely it was built on an x86_64 architecture). You can try OTOH, maybe your gcc configuration is broken. This is also something your distribution needs to fix. If you get feedback, feel free to post the solution here so we can add it to the documentation. I'll think we'll see aarch64 a lot more often in the future. |
The thing you mentioned about the compiler is different isn't really the main culprit, it proceeds just fine still after that, the line that seems to make it fail is |
Yes, because the build host of the kernel wasn't your native architecture. At least it looks like according to "exec format error". What's inside that script? Maybe it refers to a non-existing interpreter? |
The thing is, I have no idea where the script it's mentioning actually is. I'm not finding it in xpadneo's repo anywhere. |
I just tried installing openrazer-driver-dkms, it's the exact same error with the exact same script it's mentioning, maybe the headers are wrong? |
I think I'll try to recompile the kernel locally and use the headers from there |
It's in the kernel headers or kernel sources. That script isn't shipped with any out of kernel modules. It's created from a simple C source code file ( You can probably temporarily fix that by going to the But this is really an issue your distribution has to fix: You've already discovered that even other packages fail in the same way. |
Yeah there's way more x86 binaries in there, I think I need to locally recompile the kernel to fix it probably, thanks for all your help. Should I close this issue as it's not really up to you guys to fix? |
Leave it open... We'll update the docs to point future users in the right direction. I'll close it with a commit. Feel free to post a bug report link for your distribution, so users who find this issue will have a quick way to check whether it was fixed. Thanks. :-) |
Thanks for all your help, I recompiled the kernel, exported the headers and it all works beautifully! |
The phone is running Arch Linux ARM, neither the AUR package nor manual compilation works, both of which throw a similar "Exec format error" shown below:
I'm sorry if it's something stupidly simple that I missed, I just can't get it to work, and I know it should work on arm because I've heard of people around here compiling it on raspberry pis.
The text was updated successfully, but these errors were encountered: