Repository navigation
[32.x] Bump to 32.0rc1 - #36246
[32.x] Bump to 32.0rc1#36246
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36246. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
+ ./contrib/devtools/clang-format-diff.py -binary=clang-format-23 -p1 -i -v
Formatting src/clientversion.cpp
+ git --no-pager diff --exit-code
diff --git a/src/clientversion.cpp b/src/clientversion.cpp
index 222dafb..1bb1332 100644
--- a/src/clientversion.cpp
+++ b/src/clientversion.cpp
@@ -22,7 +22,6 @@ using util::Join;
const std::string UA_NAME("Satoshi");
-#include <bitcoin-build-info.h>
// The <bitcoin-build-info.h>, which is generated by the build environment (cmake/script/GenerateBuildInfo.cmake),
// could contain only one line of the following:
// - "#define BUILD_GIT_TAG ...", if the top commit is tagged
^^^ ⚠️ Failure generated from IWYU
+ echo '^^^ ⚠️ Failure generated from IWYU'
+ falseNot sure why IWYU is failing. cc @hebasto. |
1aa500b iwyu: Always keep `bitcoin-build-info.h` header (Hennadii Stepanov) Pull request description: Macros from the `bitcoin-build-info.h` header [may not be used](#36246 (comment)) in `src/clientversion.cpp` depending on the `CLIENT_VERSION_IS_RELEASE` macro value. Therefore, enforce IWYU to always keep the header. ACKs for top commit: fanquake: ACK 1aa500b Tree-SHA512: 1420d15d0629d22d0a184bb4970c464c9beae0c5579bb0ea24f422ce585ff5910290203ee06318f7c15e53ba3b324d69005a7ebf614a8176486b7eb6dbe6b22c
Macros from the `bitcoin-build-info.h` header may not be used in `src/clientversion.cpp` depending on the `CLIENT_VERSION_IS_RELEASE` macro value. Therefore, enforce IWYU to always keep the header. Github-Pull: bitcoin#36247 Rebased-From: 1aa500b
|
ACK e48ac92 |
|
I have issue with this commit (and v31.RC1 the tag that is based on this) The normal build, builds normally and everything is ok (bitcoind works) Tested this with both the RC tag and this commit. MacOS 27, Aarch64 |
Can you provide a stacktrace or a systrace or something else that might give a bit more insight into what is going on? |
I haven't yet been able to recreate this. |
|
trace: (lldb) b __cxa_throw
(lldb) run
frame #1: std::__throw_out_of_range
frame #2: std::map<wallet::WalletFlags, std::string>::at(this=size=0, ...) const
frame #3: __cxx_global_var_init.9() at wallet.h:173:28
frame #4: dyld4::LibSystemHelpers::callInitializer(...)It's a specific issue with the
inline const std::map<WalletFlags, std::string> WALLET_FLAG_TO_STRING{ ... };
inline const std::map<std::string, WalletFlags> STRING_TO_WALLET_FLAG{
{WALLET_FLAG_TO_STRING.at(WALLET_FLAG_AVOID_REUSE), WALLET_FLAG_AVOID_REUSE},
...
};This order is preserved by clang but ld64 does not preserve this order. Apple ld-27037.1 from the Command Line Tools is fine btw. |
|
Can you provide the exact steps to reproduce?
Do you mean |
|
@janb84 I have been seeing this on my nightly jobs, e.g. https://my.cdash.org/builds/4081910 from https://my.cdash.org/index.php?project=bitcoin-core&date=2026-09-12 Where my clanker came up with a similar underlying cause:
It is happening when I was using Clang 21 but wasn't happening with Clang 22. @fanquake my build was using |
Let me see if I can make something more portable, other than "install nix 26.05, use clang-wrapper, do a dev-mode build of this pr".
it provides it's own Version: 956.6 So given it passes CI / guix, and it only happens in certain cases with nix-packages on macOS, I would opt to drop this for now. |
Drop this as in do nothing? I would nevertheless open an issue for this. That mapping code is kind of funky. I wonder if there is a better way to do it. |
I did a clean build with clang 22.1.8, on my machine problem persists.
As in, I see this as a nix-pkgs specific issue. But I agree that's maybe to short sighted |
Is the nix shell available and do you think it would repro on Linux as well? |
kind of.... it's taken from https://github.com/bitcoin-dev-tools/bix but it does a
There are several nightly builds on Linux and none of them suffer this issue. Nix Darwin is using cctools from here which includes an old version of |
My clanker and I made this plan how to reproduce using apple containers; It is made by claude with help from me! ( tested and adopted by me) the end result is the same broken bin. |
|
Can track in #36281. |
… header 1aa500b6b7d8a4dc1ff374f4a033799194bc5470 iwyu: Always keep `bitcoin-build-info.h` header (Hennadii Stepanov) Pull request description: Macros from the `bitcoin-build-info.h` header [may not be used](bitcoin/bitcoin#36246 (comment)) in `src/clientversion.cpp` depending on the `CLIENT_VERSION_IS_RELEASE` macro value. Therefore, enforce IWYU to always keep the header. ACKs for top commit: fanquake: ACK 1aa500b6b7d8a4dc1ff374f4a033799194bc5470 Tree-SHA512: 1420d15d0629d22d0a184bb4970c464c9beae0c5579bb0ea24f422ce585ff5910290203ee06318f7c15e53ba3b324d69005a7ebf614a8176486b7eb6dbe6b22c
No description provided.