Skip to content

Remove 32-bit architecture support #36659

Closed

Description

@l0rinc

We have found few recent reports of 32-bit Bitcoin Core node use, yet we regularly run into problems with architecture-dependent types such as size_t.

Previous discussions focused on shipping 32-bit x86 Linux binaries and ARM32 release binaries.
Keeping source support retains the code and testing burden even after binary distribution ends.

Given these recurring costs, I propose requiring a 64-bit target for Bitcoin Core node builds, including builds from source.
That would let us retire the 32-bit node CI and release configurations and simplify node code that exists only to accommodate 32-bit targets.

Further examples of the work created by 32-bit support
  • #33709 and #33724 replaced architecture-dependent serialized-size arithmetic after the published crash mitigation. The review discussion explains the recurring need to reason about intermediate overflow and checked narrowing.
  • #35097 changed byte-unit literals because size_t prevented expressing larger storage sizes and limits on 32-bit targets.
  • #7848 fixed UTXO hash results that differed between 32-bit and 64-bit builds because a size_t counter wrapped.
  • #24214 made interpreter arithmetic independent of host width and reduced integer-sanitizer suppressions.
  • #34110 exposed a 32-bit Base58 overflow during wallet fuzzing and documents the additional effort needed to reproduce it.
  • #30307 needed different handling for file-position errors that occurred earlier on 32-bit systems.
  • #29415's review revisited architecture-dependent counter types during private-broadcast work. #32497's review compared arithmetic across compilers and 32-bit/64-bit targets for a small allocation optimization.
  • #34108 and #34136 required changing a functional test whose memory-accounting assumptions failed on 32-bit builds. #34132's review needed different storage-corruption test setup because the 32-bit database path behaved differently.
  • #28531's test discussion describes the difficulty of maintaining memory-usage expectations across both widths. #35773 needed a sanitizer suppression for intentional hash truncation on 32-bit targets.
  • #16096 raised declining developer testing and assumptions about size_t, time_t, and long. #35466 later repaired ARM32 IPC test coverage that had been skipped because a dependency was missing.
  • #27879, #31965, and the later hosting discussion show ARM32 execution restricting CI hardware and provider choices. #33302 needed an additional runner/cache exception.
  • #35546 revisited an i686 compiler choice originally made to avoid memory exhaustion. #31772 records another 32-bit compiler/build-mode combination causing an IPC test failure.
  • #3324 documents longstanding virtual-address-space exhaustion. #28906 and #28913 show ARM32 alignment assumptions causing a later memory regression.
  • #33333 needed arithmetic ordering chosen to avoid 32-bit overflow. #34692 retained a separate 32-bit cache default. The unmerged #35620 also illustrates separate database-cache behavior complicating proposed changes.
  • #2203, #2236, #438, and #439 needed large-file accommodations for 32-bit builds.
  • #29980 and #29985 required dependency changes during the time64 transition. #25573's ARM32 discussion describes extra toolchain and IPC work for static PIE.
  • #28096 found a nominally 32-bit build producing a 64-bit executable after losing target flags. #22889 and #22923 prompted additional 32-bit Clang coverage after compilation failures.
  • #18686, #19735, and #22464 are smaller examples of warning and narrowing fixes needed specifically for 32-bit targets.
  • #15939 and #22908 retired Win32 release and build configurations. #18104 stopped default i686 release builds while explicitly retaining source builds and CI, leaving later cleanup in #19745.
  • #23744 removed an i686 Android target that had been broken unnoticed for months. #24448, #24639, and #26075 show the compatibility work and eventual cleanup around discontinued i686 release builds.

Activity

  1. willcl-ark commented on Oct 26, 2026

    @willcl-ark
    Member

    Rough concept ACK.

    I suppose this should happen eventually at some point. It's kind of a shame that we can't deprecate tier 1 support but leave this working in self-compilation, but if we did that we'd not get any of the cleanup benefits of dropping support...

    What Pi devices do we think this would break support for? Seems like Pi 1 and 2 would be out of the mix, along with anybody running 32 bit Raspberry Pi OS on any device. Is that also your understanding?

    Do we have any other major 32 bit users that we know about?

  2. maflcko commented on Oct 26, 2026

    @maflcko
    Member

    Do we have any other major 32 bit users that we know about?

    Maybe the website can be updated to drop the 32-bit bins from the html with a note that support may fully be dropped? (The raw file in /bin can remain for now)

    If no major users step up to motivate a continued maintenance effort, support can be fully dropped? Maybe in ~4.5 months after the 33.x branch-off?

  3. maflcko commented on Oct 26, 2026

    @maflcko
    Member

    Also, if this is the new brainstorming issue, maybe #32375 can be closed?

  4. Sjors commented on Oct 28, 2026

    @Sjors
    Member

    I learned a lot from struggling to understand the subtleties of 32-bit systems :-)

    It might be useful to get a sense of how much cheap 32-bit hardware is still out there that can plausibly run a (pruned, assume-utxo) node. E.g. are 32-bit smartphones a thing? If there's a billion of them, maybe it's worth holding on to it a bit longer.

  5. maflcko commented on Oct 28, 2026

    @maflcko
    Member

    While hacking your 32-bit arm smart TV seems to be a current thing right now, I think practically there are less than 1000 Bitcoin Core users on Raspberry Pi 32-bit. In theory libbitcoinkernel applications can run on such hardware, but I think right now that is mostly philosophical?

    Personally, the patches I provided are generally trivial stuff like:

    -    size_t maxConfirms, maxPeriods;
    +    uint64_t maxConfirms, maxPeriods;

    Which at least to me seems to also improve code readability for non-32-bit contexts. However, I don't know how much effort the memory allocation/alignment fixes and the leveldb stuff is.

    Personally I can also see possible outcomes of only dropping the 32-bit GUI (if that is too much work), or keeping only libbitcoinkernel for 32-bit, but again most of this is philosophical without any real usage data.

  6. darosior commented on Nov 3, 2026

    @darosior
    Member

    Should we close this as a duplicate of #32375, so discussions can be kept in a single place?

  7. willcl-ark commented on Nov 4, 2026

    @willcl-ark
    Member

    Closing and linked to/copied to #32375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions