By default, the GNU C Library is built with -Werror. If you wish
to build without this option (for example, if building with a
newer version of GCC than this version of the GNU C Library was
tested with, so new warnings cause the build with -Werror to fail),
you can configure with --disable-werror.
guix: combine and document enable_werror
Combine into hardened-glibc.
Document why we don't use --disable-werror directly.
https://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html
> By default, the GNU C Library is built with -Werror. If you wish
> to build without this option (for example, if building with a
> newer version of GCC than this version of the GNU C Library was
> tested with, so new warnings cause the build with -Werror to fail),
> you can configure with --disable-werror.
4becee396f
fanquake added the label Build system on Mar 24, 2023
fanquake added the label DrahtBot Guix build requested on Mar 24, 2023
fanquake requested review from TheCharlatan on Mar 24, 2023
DrahtBot
commented at 5:13 PM on March 24, 2023:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
hebasto
commented at 5:57 PM on March 24, 2023:
member
Document why we don't use --disable-werror directly.
Concept ACK on that.
Combine into hardened-glibc.
Not against it, just clarifying. What are benefits of doing that?
fanquake
commented at 6:21 PM on March 24, 2023:
member
I don't see a reason to keep them separated, need multiple funcs etc. I doubt we'll ever turn -Werror back on here, so hardened-glibc is really just how we build glibc.
hebasto
commented at 8:17 PM on March 24, 2023:
member
I don't see a reason to keep them separated, need multiple funcs etc.
In the future, if we will have multiple glibc versions again, as it was when you introduced those "multiple funcs", they will be useful again.
I mean, while this change improves code readability, it hurts maintainability a bit, doesn't it?
fanquake
commented at 11:40 AM on March 25, 2023:
member
as it was when you introduced those "multiple funcs", they will be useful again.
It was needed when we were building 2 different glibcs, in two different ways. Now we're building a single glibc, in one way, hence consolidating. We can speculate about what might happen in future, but I can't see a reason (looking at current releases), to return to multiple builds. The only reason it was done this way initially, was for RISC-V support. I also don't know why we'd turn -Werror back on again, it's not useful here.
it hurts maintainability a bit, doesn't it?
How?
hebasto approved
hebasto
commented at 3:22 PM on March 25, 2023:
member
ACK4becee396f3bda40832138dd1aaa90368ed31857, the diff is correct.
TheCharlatan approved
TheCharlatan
commented at 8:57 PM on March 25, 2023:
contributor
ACK4becee396f3bda40832138dd1aaa90368ed31857
fanquake merged this on Mar 27, 2023
fanquake closed this on Mar 27, 2023
fanquake deleted the branch on Mar 27, 2023
maflcko removed the label DrahtBot Guix build requested on Mar 27, 2023
sidhujag referenced this in commit 69c05d4baf on Mar 27, 2023
PastaPastaPasta referenced this in commit 895f3e385c on Jan 14, 2024
PastaPastaPasta referenced this in commit 2b478ed6a8 on Jan 16, 2024
PastaPastaPasta referenced this in commit 41d465ccae on Jan 19, 2024
PastaPastaPasta referenced this in commit 933c4f53fe on Jan 24, 2024
PastaPastaPasta referenced this in commit 13c2608567 on Jan 28, 2024
Fabcien referenced this in commit 28bfe053a4 on Jan 31, 2024
PastaPastaPasta referenced this in commit 30f6c4985b on Feb 7, 2024
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me