GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update Rust version to 1.75 by chriskrycho · Pull Request #1611 · volta-cli/volta

Conversation

@chriskrycho

@chriskrycho chriskrycho commented Dec 20, 2023 •
edited by rwjblue
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

We originally pinned to 1.63 because that was the last version before Rust dropped support for older versions of glibc in Rust 1.64. However, the relevant operating systems we were maintaining support for at that time (CentOS/RHEL 6) have now been end-of-life for three full years, so it seems reasonable to update to a more current version. Since no other changes to the glibc support have happened in the interval, we can safely update to the most current version of Rust.

As part of this, update the RHEL 7 Dockerfile setup for building on Rust 1.74, including using updated versions of gcc and binutils.


For discussion: is this breaking? I do not think we have written down our SemVer contract for things like this anywhere. It will break anyone who tries to update to what will presumably be Volta 1.2.0, so it may be appropriate (and is certainly simplest) to make it a 2.0.0 release, while noting that the only breakage is support for older versions.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chriskrycho chriskrycho added infrastructure dependencies Pull requests that update a dependency file labels Dec 20, 2023
@chriskrycho
chriskrycho requested review from charlespierce, dherman, rwjblue and thoov December 20, 2023 23:08
@chriskrycho
chriskrycho force-pushed the latest-rust branch 10 times, most recently from 35fabe9 to 1ddd380 Compare December 21, 2023 19:36
@chriskrycho chriskrycho mentioned this pull request Dec 21, 2023
Describe Volta's SemVer commitments (COMPATIBILITY.md) #1619
Merged
chriskrycho
chriskrycho commented Dec 21, 2023
View reviewed changes
Comment thread rust-toolchain.toml Outdated
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.63"
channel = "1.74"

@chriskrycho chriskrycho Dec 21, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.

The one open question on this: should we use "stable" here instead, and only choose to pin a specific version if Rust releases a change that would affect our relationship to supported versions (#1619)?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@charlespierce charlespierce Dec 30, 2023

Copy link
Copy Markdown
Contributor

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.

I think keeping it set to a specific version is useful for reproducibility later on. That said, we can likely be more liberal with updating when we don't have issues with compatibility.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chriskrycho reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@chriskrycho chriskrycho mentioned this pull request Dec 21, 2023
Switch to actions-rust-lang/setup-rust-toolchain #1621
Merged
charlespierce
charlespierce approved these changes Dec 30, 2023
View reviewed changes

@charlespierce charlespierce left a comment

Copy link
Copy Markdown
Contributor

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! It would be good to know (and probably document somewhere) the specific glibc versions that we now require, which is the ultimate compatibility question that will determine which versions of Linux we support. I don't have an easy way to test that at the moment, but with access to a linux machine I remember there being a command that would list out the specific dynamic library dependencies of the built Binary, so it should be doable using the artifacts from CI.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@neongreen

neongreen commented Jan 6, 2024

Copy link
Copy Markdown
docker run -it --platform linux/amd64 --volume ~/Downloads:/downloads ubuntu:latest
apt-get update
apt-get install binutils -y
cd /downloads
tar xf volta-linux.tar
objdump -T ./volta | grep GLIBC | sed 's/.*GLIBC_\([.0-9]*\).*/\1/g' | sort -Vu

Output:

2.2.5
2.3
2.3.4
2.4
2.9
2.12
2.14
2.15

Or with ldd:

ldd -v ./volta
	./volta:
		libdl.so.2 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libdl.so.2
		ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
		librt.so.1 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/librt.so.1
		libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
		libpthread.so.0 (GLIBC_2.12) => /lib/x86_64-linux-gnu/libpthread.so.0
		libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0
		libgcc_s.so.1 (GCC_3.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
		libgcc_s.so.1 (GCC_4.2.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
		libgcc_s.so.1 (GCC_3.3) => /lib/x86_64-linux-gnu/libgcc_s.so.1
		libc.so.6 (GLIBC_2.15) => /lib/x86_64-linux-gnu/libc.so.6
		libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
		libc.so.6 (GLIBC_2.9) => /lib/x86_64-linux-gnu/libc.so.6
		libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
		libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
		libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6
		libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6

So I suppose 2.15 is the min version? But this doesn't match what Rust docs say

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neongreen

neongreen commented Jan 6, 2024

Copy link
Copy Markdown

This said, if you get ubuntu 12.04 (shipping with glibc 2.15), running ./volta does work:

docker run -it --platform linux/amd64 --volume ~/Downloads:/downloads ubuntu:12.04
image
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neongreen

neongreen commented Jan 6, 2024

Copy link
Copy Markdown

I suppose you might remain compatible with older glibc as long as you only use a subset of the standard library? But really not sure.

If that's the case, you'd have to check the min glibc version on CI, or just say that you support [whatever glibc your version of Rust supports] and make no promises about compatibility with earlier glibc versions.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neongreen

neongreen commented Jan 6, 2024

Copy link
Copy Markdown

Regarding semver — I don't feel like bumping the minimum supported version is a semver violation, because eg. a distro maintainer might build your binary with musl, or even with an alternative Rust compiler, and it will work fine on older machines.

This said, there's a long long argument about it at semver/semver#716, so evidently there are people who think any breaking change counts as breaking the API.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neongreen

neongreen commented Jan 6, 2024

Copy link
Copy Markdown

Unrelatedly, feel free to ping me on discord (@availablegreen) if you want me to check anything else re/ glibc

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chriskrycho chriskrycho added the breaking-change to notate PRs for the release process label Jan 9, 2024
@chriskrycho @rwjblue
Update Rust version to 1.75
b87c82e
We originally pinned to 1.63 because that was the last version before
Rust dropped support for older versions of `glibc` [in Rust 1.64][blog].
However, the relevant operating systems we were maintaining support for
at that time (CentOS/RHEL 6) have now been end-of-life for three full
years, so it seems reasonable to update to a more current version. Since
no other changes to the `glibc` support have happened in the interval,
we can safely update to the most current version of Rust.

As part of this, update the RHEL 7 Dockerfile setup for building on Rust
1.75, including using updated versions of gcc and binutils.

[blog]: https://blog.rust-lang.org/2022/08/01/Increasing-glibc-kernel-requirements.html

Co-authored-by: Rob Jackson <[email protected]>
@chriskrycho
chriskrycho force-pushed the latest-rust branch from 1ddd380 to b87c82e Compare January 9, 2024 16:35
@chriskrycho

chriskrycho commented Jan 9, 2024

Copy link
Copy Markdown
Contributor Author

Thanks so much for that info and input, @neongreen! We have some discussion over on #1619 for why we're inclined to treat the change as breaking. The TL;DR is that in practice, the change in MSRV will break any Fedora/RHEL users who rely on the pre-Rust 1.64 glibc version (or other distros), and who are committed to staying on those unsupported distro versions for whatever reason. Given SemVer is primarily a matter of keeping whatever contract we establish, we can ultimately do what we want here, but it seems best to just do the clearest thing in this case: flag it as a small breaking change. Especially since this is a binary, not a library, major versions are mostly free.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chriskrycho chriskrycho changed the title Update Rust version to 1.74.1 Update Rust version to 1.75 Jan 9, 2024
@chriskrycho
chriskrycho merged commit 1206faa into main Jan 9, 2024
@chriskrycho
chriskrycho deleted the latest-rust branch January 9, 2024 16:46
This was referenced Jan 9, 2024
Upgrade to latest version of Clap #1598
Closed
Fix all recent Clippy lints #1638
Merged
Build universal binary for Mac #1635
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@charlespierce charlespierce charlespierce approved these changes
@rwjblue rwjblue Awaiting requested review from rwjblue
@thoov thoov Awaiting requested review from thoov
@dherman dherman Awaiting requested review from dherman

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

breaking-change to notate PRs for the release process dependencies Pull requests that update a dependency file infrastructure

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@chriskrycho @neongreen @charlespierce
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.