-
Notifications
You must be signed in to change notification settings - Fork 390
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
Use more cross-toolchains images by default #1233
Comments
The images on cross-toolchains are not built by us and need to be built by the user, this is for various reasons. The reason for not having darwin or msvc images pre-built is due to a unclear legal situation. I'm not sure how we could make this situation better |
Yes, Apple and Oracle have some rather antitrust practices that actually hurt adoption of their products. Until we get a case settled to get them to stop doing that, I suppose I can respect a rather defensive posture there by cross-rs direct contributors. As for the rest of the images, would be nice to see them integrated more into the default cross experience. Or move the project to a different GitHub org to more clearly indicate a break in integration. |
I'm not sure I see the problem with them living in the organisation, imo moving them would only make it worse. The reason we have https://github.com/cross-rs/cross-toolchains is because we'd like to support them, but they either break frequently, we can't distribute them or we don't distribute them because they are used for specific uses. For example, |
for mscv, I think there are provided images to build upon. https://devblogs.microsoft.com/cppblog/using-msvc-in-a-docker-container-for-your-c-projects. These are large images so it might be other challenges from a CI perspective. |
That's pretty much what we do @jsturtevant , the blog post mentions that you can't distribute them
|
Irresponsible of Microsoft to not host their own official images for building Windows applications. That invites attackers to distribute their own images with malware provisioned by default. Would love to see Rust include a complete toolchain of its own, especially a linker, to work around these hiccups. |
I think we can close this issue, if there are any setups on cross-toolchains or otherwhere that are able to be promoted into https://github.com/cross-rs/cross we can do that if there is a need and the build is stable enough and allowed to be distributed. We have some issues for some targets Android (with specific NDK/api): #1155 previous issues: |
Checklist
Describe your request
When I run
cross build
for the first time, I expect it to be able to build macOS and other reasonable tier 1 support targets by default, using the cross system. Instead, I get a weird notice about missing Docker images.That is, it only managed to build the target due to happenstance of coding on a macOS host.
Well, it turns out that the cross GitHub org does have a related project, the cross-toolchains images, which does include images for cross-compiling to aarch64-apple-darwin.
Why does cross-rs/cross not know about cross-rs/cross-toolchains?
I would rather love to see cross consume these images by default.
As a workaround, the user technically has the option of manually configuring cross to consume the cross-toolchains images. But that involves extra steps, taking attention away from my main dev work. Again, I would expect cross to automatically incorporate these images out of the box.
Describe why this would be a good inclusion for
cross
Better integration between the two cross-rs projects.
Better default cross behavior.
Less effort required by the cross user in order to build common, tier 1, cross-platform builds including macOS, Windows, and Linux.
The text was updated successfully, but these errors were encountered: