guix: combine and document `enable_werror` #27326

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:guix_glibc_simplify_werror changing 1 files +8 −7
  1. fanquake commented at 5:12 PM on March 24, 2023: member

    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.

  2. 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
  3. fanquake added the label Build system on Mar 24, 2023
  4. fanquake added the label DrahtBot Guix build requested on Mar 24, 2023
  5. fanquake requested review from TheCharlatan on Mar 24, 2023
  6. 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.

    Type Reviewers
    ACK hebasto, TheCharlatan

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  7. 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?

  8. 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.

  9. 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?

  10. 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?

  11. hebasto approved
  12. hebasto commented at 3:22 PM on March 25, 2023: member

    ACK 4becee396f3bda40832138dd1aaa90368ed31857, the diff is correct.

  13. TheCharlatan approved
  14. TheCharlatan commented at 8:57 PM on March 25, 2023: contributor

    ACK 4becee396f3bda40832138dd1aaa90368ed31857

  15. fanquake merged this on Mar 27, 2023
  16. fanquake closed this on Mar 27, 2023

  17. fanquake deleted the branch on Mar 27, 2023
  18. maflcko removed the label DrahtBot Guix build requested on Mar 27, 2023
  19. sidhujag referenced this in commit 69c05d4baf on Mar 27, 2023
  20. PastaPastaPasta referenced this in commit 895f3e385c on Jan 14, 2024
  21. PastaPastaPasta referenced this in commit 2b478ed6a8 on Jan 16, 2024
  22. PastaPastaPasta referenced this in commit 41d465ccae on Jan 19, 2024
  23. PastaPastaPasta referenced this in commit 933c4f53fe on Jan 24, 2024
  24. PastaPastaPasta referenced this in commit 13c2608567 on Jan 28, 2024
  25. Fabcien referenced this in commit 28bfe053a4 on Jan 31, 2024
  26. PastaPastaPasta referenced this in commit 30f6c4985b on Feb 7, 2024
  27. bitcoin locked this on Mar 26, 2024

github-metadata-mirror

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