-
Notifications
You must be signed in to change notification settings - Fork 306
configure Rust to use stable channel
#3691
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
configure Rust to use stable channel
#3691
Conversation
|
TL;DR: This solves an issue, where RPATH would not be set on EasyBuild packages that depend on Rust/Cargo. When building Rust from source, Rust "auto-detects" the channel that should be used, and defaults to On RPATH enabled deployments, this creates an issue, as there is currently no RPATH wrapper for lld, so RPATH would not be generated on EasyBuild packages that depend on Rust/Cargo. Simply setting the channel to |
|
We took a different approach to fixing the RPATH linking issue in: That said, Rust defaulting to "nightly" in any way definitely seems wrong to me... What does the "channel" that's being used imply exactly? |
stable to prevent usage of rust-lld as default linker
stable to prevent usage of rust-lld as default linkerstable to prevent usage of rust-lld as default linker
|
Hello! I see, #3698 is also a good workaround for the RPATH issue. The nice thing about setting the channel to stable, is that users running cargo/rustc manually (Not necessarily inside EasyBuild) will use the default linker available in their environment, instead of forcing As for how the channel is decided, the default configuration on the Rust sources is: For As for what Documentation on the Rust Channels: https://rust-lang.github.io/rustup/concepts/channels.html |
|
@jaluja-doitnow Thanks a lot for clarifying, that's very helpful! That does mean we're in a bit of a pickle... And I fully expect that some problems will emerge from testing that change, and fixing those problems will likely require significant effort... cc @Micket |
|
@boegelbot please test @ jsc-zen3 |
|
@boegel: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 2903915609 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot Overview of tested easyconfigs (in order)
Build succeeded for 10 out of 11 (11 easyconfigs in total) |
stable to prevent usage of rust-lld as default linkerstable channel
|
The failure with A very recent of |
|
After extensive testing with reinstalling easyconfigs that include Rust crates on top of In fact, I haven't seen any easyconfig fail with a problem that could be attributed to this change in the configuration of the Rust installation. So, I'll go ahead and get this merged. Should there be any fallout in isolated cases, we'll deal with them. |
(created using
eb --new-pr)