-
Notifications
You must be signed in to change notification settings - Fork 394
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
Cross compiling on M1 Mac gives weird linker error #1241
Comments
this is a bug, solved by #817 (specifically this line) the problem is similar to #1214 and has the same solution (and cause) when cross 0.2.5 pulls the docker image, it doesn't specify So, either use cross from main which has #817 or run with Does that fix it? |
Hi @Emilgardis, thank you for the help! It seems that when the docker should be saved it fails with an error that we can't find what's wrong with.
It does however work fine on my Linux computer, but not an M1 Mac. |
This is also a bug fixed in #817, solved by edf1e17 (#817 (comment)) So, add |
Hi @Emilgardis, thank you.
Any suggestions? |
As mentioned in that commit, it requires a newer docker api: 20.10 (API 1.40) make sure you have that version or newer |
Thanks for the insight @Emilgardis!
|
Alright, I found one thing but I don't understand the internals of Not sure if that helps or is relevant, but that's where the different in |
If you add
Also, you're now on 0.2.5 right? |
Hi @Emilgardis,
Edit: I spoke too soon, we're still seeing weird things - I'll come back after some debugging. |
I had the problem using archlinux docker 25.0.2, cross 0.2.5.
|
Checklist
Describe your issue
When building an app with the following
cross
config we get a linking error that was unexpected and googling it does not really give insight into the error.Cross.toml
Build command:
Error:
Building this on a Linux (arch) computer works fine, but on an M1 Mac it fails.
Any hints on what might be wrong?
What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5
Example
Cross.toml
Build command:
Additional information / notes
It builds on an Arch Linux computer
The text was updated successfully, but these errors were encountered: