bitcoin-tools / bitcoin-tools/nodebuilder
[BUG] on macOS arm64, compiling Bitcoin is throwing warnings
- Lingua principale
- Shell
- Stelle
- 7
- Fork
- 0
- Merge medio
- 2h 37m
- PR unite (30g)
- 28
Descrizione
**Describe the bug**
This is an upstream issue, but nodebuilder can suppress it without suppressing all of stdout.
Will require some `grep -A -B -C` magic.
The following lines are printing in the terminal output.
```
+ make --jobs 4
ld: warning: -single_module is obsolete
qt/macnotificationhandler.mm:27:9: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
NSUserNotification* userNotification = [[NSUserNotification alloc] init];
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here
@interface NSUserNotification : NSObject {
^
qt/macnotificationhandler.mm:27:50: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
NSUserNotification* userNotification = [[NSUserNotification alloc] init];
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here
@interface NSUserNotification : NSObject {
^
qt/macnotificationhandler.mm:30:11: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: userNotification];
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here
@interface NSUserNotificationCenter : NSObject {
^
3 warnings generated.
ld: warning: ignoring duplicate libraries: '-levent'
ld: warning: ignoring duplicate libraries: '-levent'
ld: warning: ignoring duplicate libraries: '-levent'
ld: warning: ignoring duplicate libraries: '-levent'
ld: warning: ignoring duplicate libraries: '-levent', 'libbitcoin_util.a'
ld: warning: ignoring duplicate libraries: '-levent', 'libbitcoin_util.a'
+ printf '%s\n %s' ok. 'Running compile checks, please wait... '
Compiling source code, please wait... ok.
```
**Steps to Reproduce**
Run with `-c` option on macOS 14 / arm64. Or check the CI jobs.
**Expected behavior**
Should show `Compiling source code, please wait... ok.` without warnings.
**Desktop (please complete the following information):**
- OS: macOS 14
- Environment: bare metal
- Release: master
**Additional context**
Add any other context about the problem here.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il percorso di compilazione `-c` e analizza come viene acquisito l’output di `make --jobs 4` su macOS arm64, inclusi i job CI. Modifica la gestione dell’output in modo da omettere gli avvisi del compilatore e del linker, mantenendo visibile lo stato finale `Compiling source code, please wait... ok.`, quindi verifica con la riproduzione su macOS 14 arm64.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- macos, shell
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100