Skip to content

Compiling project from x86_64-unknown-linux-gnu to x86_64-apple-darwin #882

Answered by ipetkov
Occhioverde asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Occhioverde! Cross compilation can be fraught with peril as sometimes dependency packages don't always work 😅

I've never actually tried cross compiling from Linux for Darwin so I'm not entirely sure whether that's currently possible/supported in nixpkgs. Based on the error my suspicion is that there is no build of darwin-cctools that can be built for Linux (but otherwise outputs instructions for Darwin) so we can't even start cross compiling dependencies before the crane derivations even have a chance to run.

You can always try to allow the unsupported system flag as hinted above and see how far you get, but I suspect its there for a reason and might not work. If anyone else has manag…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Occhioverde
Comment options

Answer selected by Occhioverde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants