Repository navigation
Description
Just wondering when it would be acceptable to drop build support on vanilla Ubuntu Jammy 22.04.
According to https://documentation.ubuntu.com/project/release-team/list-of-releases/ EOSS will be in June 2027.
Thus, I think it would be fine to drop support with the release of Bitcoin Core 33.0 in April 2027. Affected users can then decide if they want to upgrade their OS, or temporarily stay on Bitcoin Core 32.x for as long as it is supported (~1y).
I presume anyone with an Ubuntu subscription wishing to stay on the older LTS is an expert user who can figure out how to install a more recent version of cmake and their compiler and then compile using depends. C.f. https://github.com/bitcoin/bitcoin/blob/master/doc/dependencies.md#dependencies
The benefits would be to be able to drop workarounds in code and CI tooling around supporting older build toolchains. Specifically, it would
- come with the last bit of C++20 support which may be useful (std::format).
- allow more modern cmake features (not sure if there are any of interest, cc @hebasto)
- ...
Note this is about build support, and the runtime support of the pre-built release binaries is tracked in
bitcoin/contrib/guix/symbol-check.py
Lines 17 to 36 in 8e78932
| # Debian 11 (Bullseye) EOL: 2026. https://wiki.debian.org/LTS | |
| # | |
| # - libc version 2.31 (https://packages.debian.org/source/bullseye/glibc) | |
| # | |
| # Ubuntu 20.04 (Focal) EOL: 2030. https://wiki.ubuntu.com/ReleaseTeam | |
| # | |
| # - libc version 2.31 (https://packages.ubuntu.com/focal/libc6) | |
| # | |
| # CentOS Stream 9 EOL: 2027. https://www.centos.org/cl-vs-cs/#end-of-life | |
| # | |
| # - libc version 2.34 (https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/) | |
| # | |
| # bitcoin-qt | |
| # | |
| # Ubuntu 22.04 is currently the baseline for ELF_ALLOWED_LIBRARIES: | |
| # | |
| # libfontconfig version 2.13.1 (https://packages.ubuntu.com/jammy/libfontconfig1) | |
| # | |
| # libfreetype version 2.11.1 (https://packages.ubuntu.com/jammy/libfreetype6) | |
Activity
hebasto commentedon Apr 1, 2026
ACK. The same topic was discussed during this IRC meeting.
I agree with all the points mentioned in the OP.
Using the same arguments, my answer is: in the current (v32) release cycle. I believe that it is acceptable for both tech-savvy individuals who choose to stay on Ubuntu 22.04 LTS and for businesses.
Installing CMake from https://cmake.org/download/ is a no-brainer. So I'm still hoping to bump the minimum required CMake version from 3.22 to 3.25 in the current release cycle, regardless of the decision about supporting Ubuntu 22.04 as a build platform.
purpleKarrot commentedon Apr 1, 2026
Double ACK. I also agree with all the points and I would even go a step further.
The current approach of requiring that all build dependencies must be more than five years old simply does not scale and we even rely on the fact that our dependencies don't follow the same philosophy. Instead, we should strive for more "live at head".
On the contrary. My assumption is that anyone wishing to stay on an old LTS also wants to stay on an equally old release of our software, while anyone who is happy to build our software from source does not mind building the dependencies. But even in the case where someone actually wants to build our code on an old LTS:
And so is installing CMake, GCC, Python via conda/mamba.
Essentially, we need to understand that we have different stake holders with slightly conflicting interests.
So we need to make a decision which of those stake holders should be treated as first class citizens, and which are treated as second class citizens. At the moment it seems the interests of the "legacy users" are put above all others and I am afraid that is not the best approach. I am not saying their interests should be dismissed. I am just saying that they should come second.
So my recommendation would be: Use guix and anaconda as the baseline. At the time of writing, guix provides CMake version 4.1.3 (link), while anaconda provides version 4.2.3 (link). Hence, I would set the minimum version of CMake to version 4.1.
Back to the original question: what about Ubuntu 22.04? I think the platform should remain to be supported, but not in the vanilla flavor. Instead, modern build dependencies should be installed with
micromamba.fanquake commentedon Apr 1, 2026
Why? I don't think this is true, because we see issues opened from users using/pinned to old OS's, that have compatibility issues when we bump libc requirements for new releases.
purpleKarrot commentedon Apr 1, 2026
Do they have issues building new releases or running released binaries? This issue is about build support and I gave an answer to that in my post above: They can install build dependencies like cmake, gcc, python via a non-system package manager like mamba. The libc incompatibility is not an unsolvable problem either. The question remains: Who should be treated as the second class citizen.
maflcko commentedon Apr 1, 2026
This is not the intention. According to https://bitcoincore.org/en/lifecycle/ it is simply not supported to run that old releases at all.
Not sure this is true. Installing each dependency individually from the upstream vendor may appear trivial one-by-one, but going out and installing all (including the runtime deps from https://github.com/bitcoin/bitcoin/blob/master/doc/dependencies.md#dependencies or all the build toolchain ones from https://github.com/bitcoin/bitcoin/blob/master/depends/README.md#usage) can easily be overwhelming.
Also, asking builders to use a third-party package manager to do it for them doesn't seem ideal, because every additional dependency (including the package manager) can increase the surface of vulnerability.
Finally, when looking at other C++ projects, they seem to be even more conservative. E.g. LLVM isn't even on C++20, when it would be presumably easy to require a recent clang in a two stage build (https://discourse.llvm.org/t/rfc-raise-the-minimum-compiler-requirements-to-move-toward-c-20/88894/27)
hebasto commentedon Apr 1, 2026
Yes, let's not introduce support for more package managers. We already have code specific to Homebrew and vcpkg.
purpleKarrot commentedon Apr 1, 2026
Which simply means that there is no plan for further point releases. It is not something that will stop people from using old versions, as usage statistics show. The license states that the software is released without warranty of any kind.
...
...
Yeah. We cannot support one single environment manager for all legacy platforms, because we already support two specific package managers for macOS and Windows respectively. So this is why we can't have nice things, I guess.
But I repeat myself: It all boils down to the question: Who do we want to treat as second class citizens.
maflcko commentedon Apr 2, 2026
Right, of course everyone is free to do whatever they want. However, there are no auto-updates, so I think updates should be easy, both for self-compilation, as well as for the release binaries, so that most users have an option to update if they wish.
I know running the release binaries is unrelated to self-compilation, but the glibc bump may have been too early, so it may be good to not repeat the same mistake for self-compilation. Ref:
Still unrelated, but I wonder if and how that resolved by now.
I think we should make it straightforward for users to compile and update the software on commonly used and supported operating systems. What that means specifically, depends on the operating system, but for Ubuntu, I'd say it is what they call "Standard Support".
To give some more stats: I know the snap ships the release binaries, but I think the Ubuntu distribution is likely similar to those self-compiling. (Obviously, every non-Ubuntu distro isn't representative, as snap is usually only found on Ubuntu). The stats currently show 22.04 at second place, after 24.04:
https://snapcraft.io/bitcoin-core
hebasto commentedon Apr 2, 2026
Here is my vision for a multi-tier support model for build platforms.
Tier 1
Platforms that meet the following criteria:
Our promise / User expectations
Tier 2
Same as Tier 1, except that CI jobs are hosted elsewhere.
Our promise / User expectations
Same as Tier 1, but on a best-effort basis.
Tier 3
Same as Tier 2, but there are no documented build notes in this repository.
Our promise / User expectations
No promises.
build: Drop build support on vanilla Ubuntu Jammy 22.04 LTS?
maflcko commentedon Apr 7, 2026
Not sure if this has any benefits. From the IRC, there is mentioned:
However, (2)
COMPILE_WARNING_AS_ERRORalready is used today, without a bump. As for LTO: I wonder who is even using it, given that it increases the risk of miscompilation or ICE. And "scope management" as well as "file sets" are likely purely internal cleanups, similar tostd::format. While they may be nice, I think there is no rush to have them 6mo earlier.willcl-ark commentedon Apr 28, 2026
+1
This naturally limits what features we can use for a time, but we are a conservative project and I view this as expected for us.
Another build-time approach for legacy OSes, building on suggestion from Daniel, might be to provide a nix-shell which includes minimum required tools, which can be used to build on older linux platforms (which can run nix). This is of course ~ analagous to just directing older users to build using our guix build command for their host.
If runtime support then becomes the sticking point for guix or nix (don't want to derail this issue), most likely due to an old libc, a nix/guix build could output a fully static binary using musl libc, or if we get something like #35098 and #25573 then users should be able to guix/nix-build on an unsupported legacy host and run the compiled binaries.
Overall, I agree that we should try and maintain compatibility with native OS tools up to a point, and that i probably agree with marco that 2 previous versions feels reasonable. Dropping 22.04 support for 34.0 seems ok.
maflcko commentedon Apr 28, 2026
Ah, good point. I haven't used nix yet, but it is probably minimally more widely used than mamba/conda? So if we do add a config or docs for such a package manager, I'd minimally lean toward nix. To derail a bit more, I think some people have been asking for an "official" docker file and with a nix config, we could just tell them that the docker file is just a pointer at the nix config?
To clarify, currently I was wondering if 33.0 may even be fine (~Apr 2027), but happy to move the milestone another 6 months. No strong opinion.
willcl-ark commentedon Apr 28, 2026
A nix flake to build a musl static bitcoind on linux ~ looks like this:
master...willcl-ark:bitcoin:nix-flake-linux-minimal
If this was in the root of our repo, and you have nix installed (with flakes enabled, but can make an equivalent for non-flake nix), all you have to do to build on a legacy (or current) OS would be:
which is rather neat, in my opinion, as a fallback :). With a flake, dependencies are locked by hash (pointing to a nixpkgs commit). I have also derivations whose derivations build and use depends.
Docker is another option, and is surely more widely used. Having both nix and guix might not be pallatable to folks, IDK.
mmm, kind of. You can build a docker image from a nix config, but it's not very optimised, space-wise (images are large). Do they want this file to build bitcoin core, or to run it (or both)?
I think either would be fine too.
fanquake commentedon Apr 29, 2026
Any changes to minimum version requirements increase friction for compiling and using Bitcoin Core, and depending on the approaches above, would also increase reliance on 3rd party/upstream tooling, and introduce various layers of indirection (and trust) to be able to get working binaries (also depending on if these package our Guix built binaries or not).
Aside from this (which there doesn't seem to be a rush for?), is there anything else that would become available, that would meaningfully improve our binaries for end users, or the experience for developers? The CMake items listed here:
are things we are already using (and don't need to bump requirements for), or are nice to have.
Would be good to clarify (maybe in the OP), which versions of which dependencies we are proposing changing here. I'm guessing this is dropping support for GCC
12.x, and bumping CMake to3.something?maflcko commentedon Apr 29, 2026
Right, there is no rush, as this is all at least a year out. But the question boils down to: How many users will have Ubuntu Pro enabled when it is required to receive security updates for the base OS? Given how easy it is to upgrade Ubuntu, I'd guess it is not many.
My thinking is that we aren't going to support Jammy Pro for another ~10 years, so I was wondering when a good milestone would be to drop it. Maybe it is 33.0, or maybe it is 34.0/35.0, to give users another extra ~6mo/~12mo to upgrade their Ubuntu?
I was also thinking that the milestone could be put into the prior release's release notes, to pre-announce the plan, with an option to delay the plan, if there are any significant user complaints.
Yeah, we'd get GCC 13 and a more recent cmake version.
I forgot to comment on this earlier, but as mentioned earlier, the static libc discussion should be mostly unrelated here. I am sure you can use any libc when your are self-compiling. For example, it should be possible to compile the needed dependencies, and then Bitcoin Core itself on Ubuntu 20.04, whose support was earlier dropped. If it is too confusing, maybe a new thread can be started about discussing to add docs to compile on older systems via nix, as it should be orthogonal to the topic here.
maflcko commentedon May 14, 2026
To clarify: Formatting is mostly only used for logging, but there are some (many?) logging refactors/changes queued up right now, so it could make sense to deal with them first, unless there is a global change of all log format strings required, in which case the
std::formatswitch can be "sneaked in".So it may be best to hibernate this issue for a year or so.
Another question would be if we want to switch to C++23 with G++-13, but I haven't looked into C++23 much yet.
Edit: I guess C++23 would mostly give style-cleanups. E.g:
bitcoin/src/util/types.h
Line 8 in 1ea532e
bitcoin/src/compat/byteswap.h
Line 15 in 1ea532e
bitcoin/src/util/expected.h
Line 40 in 1ea532e
this(only gcc-14)auto{x}decay-copy-Wc++23-lambda-attributes(for no-return attributes)stdmodules??hebasto commentedon Jul 17, 2026
Another reason is that users are unable to build Bitcoin Core with the default
-DENABLE_IPC=ONdue to the unsupportedcapnprotopackage version.maflcko commentedon Aug 20, 2026
Looks like this is blocked by the netbsd-cross ci task: #36042 (comment)
Removing milestone for now.
willcl-ark commentedon Aug 21, 2026
I had a play with a "static nix shell" of sorts, here.
This seems to work on ubuntu 22.04 and debian bookworm with ~
Dockerfile
as we get a fresh sh on each instruction, and have no systemd, need to start nix-daemon manually:
This is pinned to a current revision with gcc15 and other needed build tools.
It builds static binaries from depends, with
NO_QT=1, in much the same way #25573 does.As has already been raised in other issues, this is slightly dubious in that it is essentially re-creating what could also just be done in guix, but as responded to there, this does give a nice way to build the binaries on systems where there is/may not be a guix package e.g. Debian.