-
Notifications
You must be signed in to change notification settings - Fork 409
Arm x86_64 Musl build using alpine broken #1255
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
Comments
cross compiling with alpine seems to be a bit tricky, we've had some conversations about this in the chat I don't have much knowledge on how it works, but seems that you need to use different roots and possibly emulation. I have found this SO post and this wiki page To me, this suggests that there are no distributed cross-compilers and you need to setup the environment yourself or that you use the same host as the target. The builds where you use alpine and [target."x86_64-unknown-linux-musl"]
image.name = "alpine:edge"
image.toolchain = ["x86_64-unknown-linux-musl"]
pre-build = ["apk add --no-cache gcc musl-dev pkgconfig openssl-dev libc-dev git"]
(above is on a m1 mac, hence the long compile due to emulation, but it shouldn't matter) related #1013 |
Interestingly, using alpine:edge for armv8 doesn't work well, opened #1256 for that |
Yes you're right I should have been more specific. |
Checklist
Describe your issue
Cross does not compile an alpine image on x86.
I get a lot of this output when I compile my rust app
What target(s) are you cross-compiling for?
aarch64-unknown-linux-musl, arm-unknown-linux-musleabihf, x86_64-unknown-linux-musl
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 (892fdfa 2023-05-02)
Example
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: