-
Notifications
You must be signed in to change notification settings - Fork 378
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
Unable to -Zbuild-std
for mips-unknown-linux-musl
#1416
Comments
Can you try using a new image for mips? Either update cross to the lastest version on main [target.mips-unknown-linux-musl]
image = "ghcr.io/cross-rs/mips-unknown-linux-musl:main" I know though there's still problems with this target, see |
I tried both of those solutions, same results of failure. |
Same result as in
|
Looks like the same as my CI:
|
I am also running into same issue when trying to cross compile it for my openwrt device.
@Emilgardis would there be any WA available to get this built for now ? |
Would this be something the rust-lang compiler guys would look into? I assume it's lower priority for them. |
I dont know yet if this is something we do or rustc does wrongly yet. |
I tried yesterday to use https://github.com/richfelker/musl-cross-make and had the same issues with CRT. |
Which makes sense, thats what cross uses ;) |
Here's where its installed/setup Line 33 in ea50548
|
So with my local
[build]
rustflags = [
"-C", "target-feature=+crt-static",
"-L", "musl-cross-make/output/mips-linux-musl/lib",
"-L", "musl-cross-make/output/lib/gcc/mips-linux-musl/9.4.0/"
]
target = "x86_64-unknown-linux-musl"
[target.mips-unknown-linux-musl]
linker = "musl-cross-make/output/bin/mips-linux-musl-gcc" I don't know if this is a
|
Maybe this will work? I don't have time to check: rust-lang/wg-cargo-std-aware#81 / https://stackoverflow.com/a/74060091. |
I opened rust-lang/rust#120655, just in case this is an rustc bug. |
Just as an update, I am now able to build it using the nightly, which is 1.77. |
What does your buildchain/config/cmd look like? |
I'm having this same issue, and came to the same conclusion as you thus far. Can't figure out a way around this. |
A solution to this is just to create a symbolic link the
A better solution could be found within rustc, but that will take more effort and investigation. |
I'm trying to build like this:
But I get error:
I wanted to try your recipe "cross +1.70 build ..." (trying old versions), but it says:
How does this thing with older versions work? |
1.70 is not old enough. Anyway, to use another toolchain you'll need to install it.
|
Checklist
Describe your issue
The following MR adds statically included libc for several architectures. However,
mips-unknown-linux-musl
fails. https://github.com/wcampbell0x2a/mempeek/actions/runs/7520357008/job/20469941084?pr=2Since
mips-unknown-linux-musl
is target tier 3 now, I need tobuild-std
.Version:
cross v0.2.5
Command:
cross build --bin mempeek --locked --release --target mips-unknown-linux-musl -Zbuild-std
What target(s) are you cross-compiling for?
mips-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 v0.2.5`
Example
No response
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: