-
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
Linker wrapper script for musl outputs garbage due to set -x
#1618
Comments
set - x
set -x
To solve this without a fix to our images, one can use I think it's unfortunate that this is an error-by-default, but oh well, it's a simple thing to fix. PRs welcome, otherwise I'll get to it myself |
I believe they are currently planning to roll back this temporarily due to the fallout of the it. |
Ah yes, it was changed: rust-lang/rust#136098
|
Yes, we rolled it back for now to fix the warnings on our side and in places like here before enabling it again to reduce fallout. I see that this script was added 3 years ago to work around issues in "older Rust versions". Maybe it can just be removed now? |
It is a warning by default. OP used |
Yes, I wrote that in the initial post as well. The discussion about using that or not is a whole topic on its own though (and without it, I wouldn't have noticed this problem to begin with). |
Checklist
Describe your issue
https://github.com/cross-rs/cross/blob/main/docker/musl-gcc.sh uses
set -x
, which causes unexpected output. Rustc now issues a lint for that (on nightly). This breaks-Dwarning
builds. See this rustc issue: rust-lang/rust#136132Cross should remove that
set -x
and then make a new release of the affected component(s). The docker images in this case I suppose?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 (66221abde 2024-11-19)
Example
Cross compile any program to aarch64-unknown-linux-musl.
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: