You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good to bisect/fix/report this upstream.
An alternative would be to partially/temporarily revert fa74f58, but without knowing the exact macOS bug, it is hard to decide which parts to revert for how long ...?
It would be good to bisect/fix/report this upstream.
An alternative would be to partially/temporarily revert fa74f58, but without knowing the exact macOS bug, it is hard to decide which parts to revert for how long ...?
Only the wallet.h part (if we choose to do so) the inline-ing of the 2 lines that depend on each other that's the "issue"
P2WSH_OP_TRUE in the tests also depends on the prior global, which seems to be the same pattern, no?
yes you are correct, missed that because in #36246 it isn't causing an issue, in an other PR it is. The bug is also link-order dependent so it will not show in every PR (depending on the changes)
Sure, done. Only reverted the ones with dependencies. The others should be fine, as we already have stuff like src/protocol.h:274:inline const std::array ALL_NET_MESSAGE_TYPES{std::to_array<std::string>({ for a long time.
If the problem can be worked around using LLD, I’d recommend switching the package to link with LLD. The plan is eventually to switch to LLD on Darwin anyway.
So it seems like anyone using Nix, should just (early) switch away from using ld64 on Darwin?
If the problem can be worked around using LLD, I’d recommend switching the package to link with LLD. The plan is eventually to switch to LLD on Darwin anyway.
So it seems like anyone using Nix, should just (early) switch away from using ld64 on Darwin?
Yes that seems to be the "solution" given unfortunately.
Activity
maflcko commentedon Sep 17, 2026
It would be good to bisect/fix/report this upstream.
An alternative would be to partially/temporarily revert fa74f58, but without knowing the exact macOS bug, it is hard to decide which parts to revert for how long ...?
janb84 commentedon Sep 17, 2026
Only the wallet.h part (if we choose to do so) the inline-ing of the 2 lines that depend on each other that's the "issue"
maflcko commentedon Sep 17, 2026
P2WSH_OP_TRUEin the tests also depends on the prior global, which seems to be the same pattern, no?janb84 commentedon Sep 17, 2026
yes you are correct, missed that because in #36246 it isn't causing an issue, in an other PR it is. The bug is also link-order dependent so it will not show in every PR (depending on the changes)
maflcko commentedon Sep 17, 2026
Ah interesting. Do you recall the test error log? I presume the P2WSH_OP_TRUE tests failed?
ugh. I guess that makes it harder to bisect/fix/report this upstream.
I guess my new recommendation would be to revert fa74f58 wholesale for now (to err on the safe side for 32.x) and then re-apply it for 33.x later on.
This should buy enough time to debug this on macOS.
sedited commentedon Sep 17, 2026
@maflcko do you want to open a pull request for that?
maflcko commentedon Sep 17, 2026
Sure, done. Only reverted the ones with dependencies. The others should be fine, as we already have stuff like
src/protocol.h:274:inline const std::array ALL_NET_MESSAGE_TYPES{std::to_array<std::string>({for a long time.Merge #36285: refactor: Use static const over inline const to work ar…
Merge bitcoin/bitcoin#36285: refactor: Use static const over inline c…
maflcko commentedon Sep 23, 2026
Just to clarify: The next steps would be for someone (or a clanker) to bisect/minimize the ld64 bug.
janb84 commentedon Sep 23, 2026
Yes will take a shot at it / done some work already, but also busy with testing guide.
Edit: Update: Me and the agent found a working patch, drafting a bug report for the nix repo now.
fanquake commentedon Nov 23, 2026
According to upstream NixOS/nixpkgs#567844 (comment):
So it seems like anyone using Nix, should just (early) switch away from using
ld64on Darwin?janb84 commentedon Nov 24, 2026
Yes that seems to be the "solution" given unfortunately.