Can I build for x86_64 on an arm64 device? #166
-
|
Just a question, can I build for x86_64 on an arm64 device? Originally posted by @TechStudent11 in #162 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Sadly, no (at least, logically). x86-64 and arm64 are two radically different architectures. It's roughly the same as asking a fish to climb a tree, and asking a squirrel to go diving. |
Beta Was this translation helpful? Give feedback.
-
|
Cross-compilation should work fine, that's a big part of what buildroot does. Just as we can build images targeting the RPi on x86, you should be able to build for x86 from an ARM host. I'm closing this because I just enabled the "Discussions" tab so people can ask questions there instead of opening issues. Edit: I migrated it to the "Discussions" tab, didn't know you could do that. This is the first time I've enabled Discussions on one of my repos :^) |
Beta Was this translation helpful? Give feedback.
Cross-compilation should work fine, that's a big part of what buildroot does. Just as we can build images targeting the RPi on x86, you should be able to build for x86 from an ARM host.
I'm closing this because I just enabled the "Discussions" tab so people can ask questions there instead of opening issues.
Edit: I migrated it to the "Discussions" tab, didn't know you could do that. This is the first time I've enabled Discussions on one of my repos :^)