-
Notifications
You must be signed in to change notification settings - Fork 314
Description
On macOS Big Sur 11.2.3 (20D91):
% xcrun --show-sdk-version
11.1
When bitcoin-qt
is compiled with depends, no window is shown.
That was not the case before bumping Qt version to 5.12.10. See bitcoin/bitcoin#21376 (comment)
I scratched it a bit. Looks like a problem with the Cocoa integration plugin as dereferencing of the QGuiApplicationPrivate::platformIntegration()
pointer causes the EXC_BAD_ACCESS
error.
Probably, it's an upstream bug.
UPDATE:
Case A (SDK 11.1)
- system: Big Sur 11.2.3 (20D91)
% xcode-select --print-path
/Library/Developer/CommandLineTools
% xcrun --show-sdk-path
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
% xcrun --show-sdk-version
11.1
% make C depends
% CONFIG_SITE=$PWD/depends/x86_64-apple-darwin20.3.0/share/config.site ./configure
% make
% src/qt/bitcoin-qt -regtest -printtoconsole
The client runs but the GUI hangs -- no window is created.
Case B (SDK 11.1 compiled on Catalina, tested on Big Sur)
- build system: Catalina 10.15.7 (19H524) + Xcode 12.4 (12D4e)
% xcodebuild -version
Xcode 12.4
Build version 12D4e
% xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
% xcrun --sdk macosx --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
% xcrun --sdk macosx --show-sdk-version
11.1
% make C depends
% CONFIG_SITE=$PWD/depends/x86_64-apple-darwin19.6.0/share/config.site ./configure
% make
% src/qt/bitcoin-qt -regtest -printtoconsole
Everything works just fine.
- test system: Big Sur 11.2.3 (20D91)
The binary compiled on Catalina has been moved to Big Sur.
% ~/Downloads/bitcoin-qt -regtest -printtoconsole
The client runs but the GUI hangs -- no window is created (the same behavior as in the case A).
Case C (SDK 10.15.6 from downloaded Xcode 11.7)
- system: Big Sur 11.2.3 (20D91)
% sudo xcode-select --switch ~/Downloads/Xcode_11.7/Xcode.app
% xcode-select --print-path
/Users/hebasto1/Downloads/Xcode_11.7/Xcode.app/Contents/Developer
% xcrun --show-sdk-path
/Users/hebasto1/Downloads/Xcode_11.7/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
% xcrun --show-sdk-version
10.15.6
% make C depends
% CONFIG_SITE=$PWD/depends/x86_64-apple-darwin20.3.0/share/config.site ./configure
% make
% src/qt/bitcoin-qt -regtest -printtoconsole
The client runs but the GUI hangs -- no window is created (the same behavior as in the case A).
Xcode 10.3 and older (SDK 10.14.6) does not work on Big Sur at all. (see https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-release-notes)
But building depends fail:
Case D (SDK 10.14.6 from downloaded Xcode 10.3)
- build system: Big Sur 11.2.3 (20D91) + Xcode 10.3 (10G8)
% xcodebuild -version
Xcode 10.3
Build version 10G8
% xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
% xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
% xcrun --show-sdk-version
10.14
% make -C depends native_ds_store
The last command fails (looks like an infinite loop).