mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 16:02:38 +00:00
guix: introduce a minimal linux-base-gcc variant #36193
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36193
Loading…
Reference in a new issue
No description provided.
Delete branch "guix_disable_wchar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduce a minimal variant of
linux-base-gcc, and use it for non-GUI builds.This saves roughly half a megabyte in binary size, in the non-GUI binaries:
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html:
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, this pull request conflicts with the following ones:
-static-piebitcoind by fanquake)If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Isn't
--disable-wchar_talibstdc++configure option rather than a GCC one?Guix build:
Yes, and we are passing that option through GCC. I will make the commit message clearer.
guix build for
24041fcf8c:build of
24041fcf8cMy Guix build:
675a036034We can do instead:
And submit this patch upstream?
Looking at that diff, maybe we could also define
BOOST_NO_CWCHAR? I don't particularly mind how this is patched out. Feel free to submit something upstream, and we could switch to it, if this code isn't removed first (#35713).I am mainly looking for Concept ACKs on the overall change, and primarily review of
d890a9ecd5(which is shared between #25573). Happy to split that out if needed.Concept ACK.
I retract my proposal. It was incorrect.
Boost does this automagically:
It might be worth checking for potential side effects of those macros on Boost.MultiIndex.
In my opinion, splitting it out would help.
Rebased, and added another commit, that passes
--with-libstdcxx-zoneinfo=no:Split it into #36272.
🐙 This pull request conflicts with the target branch and needs rebase.
🔵 Suggestion · Qualify the global
wcrtombcalldrop_wcrtomb_wchar_t.patch:14 still calls unqualified
wcrtomb. The arguments bring in only the global namespace, so writing::wcrtombwould resolve to the same C-library function and just make that explicit. It is a low-value clarity change in a vendored Boost patch.Location:
depends/patches/boost/drop_wcrtomb_wchar_t.patch:13(head).Review coverage was incomplete.
Reviewed:
5ec877a74dfe· Full review report · Previous reportspermalink
🐙 This pull request conflicts with the target branch and needs rebase.
Reworked a bit, and moved out of draft.
Guix Build:
My build:
Guix builds (on x86_64) [untrusted test-only build, possibly unsafe, not for production use]
df0dc1e2d2(master)
69ddbf1f8a(pull/36193/merge)
16b0d207bd7b2680...0cebcdc0154db438...581f15202e27611f...20541afece8ffa64...e91d29d827858387...2b497e5a55ad3963...00e96952fd2bb1a8...864d884614484014...1f2cf5eff5e3c515...99e30b32cf51b24c...2c3d6b96a33026aa...5c978e5b0f830661...8778c9c7ba3b7e33...568ae9e6f8728500...a0a35d635a762456...51ed5d8901feb296...491545595485c7df...0b7e597cd82dbeb4...c27aa853d1f26747...2cb1f2a446cf7011...34225723fd8de7d1...827ae8405e9208ef...0d2c0d2002d082d8...3a10f4cff62f93c7...653fbe82d879ab51...97fac70a4589d274...0a20d560f9a2128f...489457e05cc7fba5...1c1e7def546d4ea7...16d6d76d9e229a26...782b7dfd64db13a3...a1ec2169458c07fa...72c0673ea6c7b4bc...fc68f59cd1db323a...c818cae602ebba3f...01740c7ddaac377d...64d527c89133af1a...df59508cdf764a6f...b25d2f566a239ca9...c960e7078f9c59e8...d2e2b4c05862e590...e5bbb1649ae9cc86...3b06dc959f8d0382...c6648e67458fce81...ff72d93ff03f9c03...0b9c1a2eaef0b7a4...145900a1d2676579...My Guix build:
Is adding this line intentional? Disabling libstdc++ features doesn’t seem to affect the
gcc-cross-sans-libc-...package, as Guix configures it with--disable-libstdc++-v3.linux-base-gccseems to be used only intoolchains.scm. So there is no need to export it:A note for other reviewers
--enable-clocale=genericis fine now that https://github.com/bitcoin/bitcoin/pull/36524 has been merged, as the non-GUI code no longer constructs any namedstd::locale, which the generic model doesn’t support.Switched from
define-publicto#:export.Yes. I thought it would be clearer to use for either. Dropped for now.
Approach ACK
5ec877a74d.As of the latest push, the
gcc-cross-sans-libc-<host>package is reused in the GUI stage rather than being rebuilt.My Guix build hashes will follow shortly.
This all seems fine to me.
Just one question:
Am I correct in understanding that
guix: pass --disable-libstdcxx-filesystem-ts to libstdc++is simply a general cleanup commit being snuck in here? I'm fine if it is, only wondering if its related to/needed by the minimal linux-base-gcc variant in a way that I'm not seeing...Yea. We never need
std::experimental::filesystem..ACK
5ec877a74d.My Guix build:
ACK
5ec877a74dReviewed the toolchain selection and GUI/non-GUI build separation. Reproduced the Boost compile failure with wchar support disabled in the headers and verified the patch fixes it.
Will do another Guix build on a different machine in the meantime