-
Notifications
You must be signed in to change notification settings - Fork 377
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
specify the minimal
profile when installing rust toolchain (due to bug in rustup?)
#522
Conversation
I definitely understand if the right solution here is updated documentation (instead of a code-change). I figured I would post the PR anyway in-case this is what was preferred. |
this is needed bc of some bug(?) in rustup not being able to install the necessary toolchain without error using the `default` profile see my comment in the rustup project: rust-lang/rustup#2661 (comment)
This seems strictly better since it would result in less data being downloaded. @Dylan-DPC Would you be able to take a look? |
bors try |
tryBuild failed: |
Looks like the only target that failed was `x86_64-unknown-netbsd`. Seems like the cause was a request 404 to `https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc5/patches/patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h`. I don’t believe my change would have caused this issue, let me know if you want me to look into this further.
(I’m on mobile so formatting might be bad)
…--
Matt Blessed
On May 2, 2021, at 12:21 PM, bors[bot] ***@***.***> wrote:
try
Build failed:
rust-embedded.cross
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
bors retry |
tryBuild succeeded: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
bors r+ |
Build succeeded: |
this is needed bc of some bug(?) in rustup not being able to install the necessary toolchain without error using the
default
profile, so theminimal
profile is needed.see my comment in the rustup project regarding this issue: rust-lang/rustup#2661 (comment)
this is the error I get when running cross
I get the same error when running cross with the following (randomly selected toolchains)
aarch64-unknown-linux-gnu
armv7-linux-androideabi
thumbv6m-none-eabi
s390x-unknown-linux-gnu
cargo test
seems to pass and cross-compilation seems to work okay now (with this PR).Another work-around that isn't this pull request
install the toolchain outside of cross using the `minimal` profile, then run cross command