-
Notifications
You must be signed in to change notification settings - Fork 37.7k
depends: remove redundant stdlib option #27721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Use of -stdlib++-isystem gets rid of any system c++ header include paths and negates the need for this option. In newer versions of clangs the combo produces a warning.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee 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. |
Concept ACK |
Guix Build: ed1f83a77d00:/bitcoin# find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
b2fc48fff5ef2c15a520582845a8af73c2af71f4f59a0d0b92b04db8530373b0 guix-build-4fe5f3c46752/output/aarch64-linux-gnu/SHA256SUMS.part
d074ce3bdc89db1d7d0e4fcbde818b9a2183c9a23541e2dabcb2401e88635959 guix-build-4fe5f3c46752/output/aarch64-linux-gnu/bitcoin-4fe5f3c46752-aarch64-linux-gnu-debug.tar.gz
890d8535d8590ceb5d17b0cbd254c4c17e3791930b34413e7ba5e69983bb0efb guix-build-4fe5f3c46752/output/aarch64-linux-gnu/bitcoin-4fe5f3c46752-aarch64-linux-gnu.tar.gz
17da41c41dc5fbbcf8f8822bb735af1208e42c9b7c9f26d895b583eb3781ebc2 guix-build-4fe5f3c46752/output/arm-linux-gnueabihf/SHA256SUMS.part
91203aceac6c0d025fe2946a24b33cc1f672f35abce2a4cf355dd7b0c29729ce guix-build-4fe5f3c46752/output/arm-linux-gnueabihf/bitcoin-4fe5f3c46752-arm-linux-gnueabihf-debug.tar.gz
9ad48abf7f342f3f1d681fc8aef36b5e7b0b6509776a22bafa944869e7f4d450 guix-build-4fe5f3c46752/output/arm-linux-gnueabihf/bitcoin-4fe5f3c46752-arm-linux-gnueabihf.tar.gz
c6c0784a4e4c3a6b2ee8c570d36f2f2423569d50101c235e3268eb69d2b3ddc8 guix-build-4fe5f3c46752/output/arm64-apple-darwin/SHA256SUMS.part
ef2f70d33ac5a6e14aefe956b505f2947d3d0812c8ca757e8d0a54a1ad89a6eb guix-build-4fe5f3c46752/output/arm64-apple-darwin/bitcoin-4fe5f3c46752-arm64-apple-darwin-unsigned.dmg
4e9afc179fdeaa6b27755f2490db66e7ce4ecb148a6da34ffce96e79edc57c23 guix-build-4fe5f3c46752/output/arm64-apple-darwin/bitcoin-4fe5f3c46752-arm64-apple-darwin-unsigned.tar.gz
ae08e9d9f7fed75eff54c06074898869292a16bbff76c492990f557991b4f26d guix-build-4fe5f3c46752/output/arm64-apple-darwin/bitcoin-4fe5f3c46752-arm64-apple-darwin.tar.gz
e2f10f598eca972c80a3e9c9cef1b6825fdea80b24bca3bd3792366621c707e2 guix-build-4fe5f3c46752/output/dist-archive/bitcoin-4fe5f3c46752.tar.gz
2b6d41256afaec1d8ce37e7160c59b58fd2588585392de2274b1136654df9695 guix-build-4fe5f3c46752/output/powerpc64-linux-gnu/SHA256SUMS.part
ee74b47acbb72d0d48670426b197700a89e856b3475fea71f447c44962615dcb guix-build-4fe5f3c46752/output/powerpc64-linux-gnu/bitcoin-4fe5f3c46752-powerpc64-linux-gnu-debug.tar.gz
f25e8063fcb3132b55f72599770abb7d69cfb8f55102cc2581dd2ea809264149 guix-build-4fe5f3c46752/output/powerpc64-linux-gnu/bitcoin-4fe5f3c46752-powerpc64-linux-gnu.tar.gz
4797a634c6fdcff0b1023e25f4a3a6edf2f9da28349e99d4d264cf4da794b7c7 guix-build-4fe5f3c46752/output/powerpc64le-linux-gnu/SHA256SUMS.part
72491d6a821925156e708baf47723f51ea785011e2ea224de3b41e42a37200f5 guix-build-4fe5f3c46752/output/powerpc64le-linux-gnu/bitcoin-4fe5f3c46752-powerpc64le-linux-gnu-debug.tar.gz
e54da3394a3b4f0f836868e0990eb7d03628b17b4226e8a6e27708e89030e56a guix-build-4fe5f3c46752/output/powerpc64le-linux-gnu/bitcoin-4fe5f3c46752-powerpc64le-linux-gnu.tar.gz
7dc2a0b048bd1bc44c87c49c745d3b1f1f25d8e61911f3d7128c621d447c0b0f guix-build-4fe5f3c46752/output/riscv64-linux-gnu/SHA256SUMS.part
833f7c288abf386c6f4d81e33dc6616aedfcf7b00731b7636a72618e60b7e09c guix-build-4fe5f3c46752/output/riscv64-linux-gnu/bitcoin-4fe5f3c46752-riscv64-linux-gnu-debug.tar.gz
867dd0ef016b230fd568b00887f78a9c314dbe14b26dfea30ecce3a0b276b8ac guix-build-4fe5f3c46752/output/riscv64-linux-gnu/bitcoin-4fe5f3c46752-riscv64-linux-gnu.tar.gz
7e94a9ed36e806ffd4bfd944d626b418583630b2b13623f8b082dc5f39d7e1e3 guix-build-4fe5f3c46752/output/x86_64-apple-darwin/SHA256SUMS.part
992b53920c86f6962eef7938d4a0dfa45ae04fcd76971f7f00f4bc4acde01a58 guix-build-4fe5f3c46752/output/x86_64-apple-darwin/bitcoin-4fe5f3c46752-x86_64-apple-darwin-unsigned.dmg
7244946e0629ba4eaa956b50f9072d9ea1563dc1fbdab1e1e63f6d87b03a8d0c guix-build-4fe5f3c46752/output/x86_64-apple-darwin/bitcoin-4fe5f3c46752-x86_64-apple-darwin-unsigned.tar.gz
8c6d1e89c5541fac79d1b9c8c51f775f1a87b963951c1b2df8da9e12c6567921 guix-build-4fe5f3c46752/output/x86_64-apple-darwin/bitcoin-4fe5f3c46752-x86_64-apple-darwin.tar.gz
3f64b6bc2c4316143a8845f0eaaba11a0fbd4d44d8164a450ceb01e97795dae7 guix-build-4fe5f3c46752/output/x86_64-linux-gnu/SHA256SUMS.part
709c8afd2abb92015991e389a39f98646fa9d729f05d373b236b63f53923cc7e guix-build-4fe5f3c46752/output/x86_64-linux-gnu/bitcoin-4fe5f3c46752-x86_64-linux-gnu-debug.tar.gz
35d4e2dd94efc6c5cf8b7671ce9c445152cc4c744d2c50e2d23217a03602518c guix-build-4fe5f3c46752/output/x86_64-linux-gnu/bitcoin-4fe5f3c46752-x86_64-linux-gnu.tar.gz
048b450acf8e316dfad4cef242891e08f5bddc3828a14c258ef643aaa638e196 guix-build-4fe5f3c46752/output/x86_64-w64-mingw32/SHA256SUMS.part
10cffcfa5f36a4a9300b64d30f6230af4e21b3b4ffd1129a5a61e3fa39e42317 guix-build-4fe5f3c46752/output/x86_64-w64-mingw32/bitcoin-4fe5f3c46752-win64-debug.zip
14a7ea0c6be0366f3a1679b9c6214d34fb6f8d8ab8775b18abb996a49a64ea52 guix-build-4fe5f3c46752/output/x86_64-w64-mingw32/bitcoin-4fe5f3c46752-win64-setup-unsigned.exe
cfa0466943018add68791ab40c90027f18007bef56cb35a794a2bd29438f590e guix-build-4fe5f3c46752/output/x86_64-w64-mingw32/bitcoin-4fe5f3c46752-win64-unsigned.tar.gz
7e28b91edfad8d0838c8c8bcffe4808b47c7217a646b9364bb8487c4794a605e guix-build-4fe5f3c46752/output/x86_64-w64-mingw32/bitcoin-4fe5f3c46752-win64.zip |
I cannot confirm it, at least for
|
Well, |
Sorry, I guess I should've said it's a behavioral no-op. A simple test-case shows that search-paths are unchanged with or without the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 4fe5f3c
4fe5f3c depends: remove redundant stdlib option (Cory Fields) Pull request description: Like bitcoin#27628, this is another dependency of bitcoin#21778, though it doesn't become obvious until used with a newer clang. This should be a no-op. Use of -stdlib++-isystem gets rid of any system c++ header include paths and negates the need for this option. In newer versions of clangs the combo produces an annoying warning that actually causes problems during configure. ACKs for top commit: fanquake: ACK 4fe5f3c Tree-SHA512: 904072f2b13dffbbeab2bc9ff20a74969888502fa1ea35d9030784dd397c6751e31233e6ec7dc34e9fd42574950be733b25d6653c2a93e214cc5e4eef2e0133a
Summary: > depends: fix osx build with clang 16 > > For some reason the previous syntax worked with clang 15 and below, but > clang 16 requires that the option and value are properly separated. > depends: remove redundant stdlib option > > Use of -stdlib++-isystem gets rid of any system c++ header include paths and > negates the need for this option. In newer versions of clangs the combo > produces a warning. > depends: modernize clang flags > > Fixes builds with llvm >= 11 in guix by working around the problem. As a bonus, > this is much cleaner and more maintainable than what we had before. This is a backport of [[bitcoin/bitcoin#27328 | core#27328]], [[bitcoin/bitcoin#27721 | core#27721]] and [[bitcoin/bitcoin#27798 | core#27798]] The change to ci/test/00_setup_env_mac.sh in [[bitcoin/bitcoin#27798 | core#27798]] to ignore -Wunused-command-line-argument warnings seems equivalent to D3792 Test Plan: check that gitian-osx still works Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D15579
Like #27628, this is another dependency of #21778, though it doesn't become obvious until used with a newer clang.
This should be a no-op.
Use of -stdlib++-isystem gets rid of any system c++ header include paths and negates the need for this option. In newer versions of clangs the combo produces an annoying warning that actually causes problems during configure.