On macOS 12.6 Monterey (Apple M1, 21G115):
0% make test-security-check
1Command 'DYLD_CHAINED_FIXUPS' not parsed!
2Command 'DYLD_EXPORTS_TRIE' not parsed!
3Command 'DYLD_CHAINED_FIXUPS' not parsed!
4Command 'DYLD_EXPORTS_TRIE' not parsed!
5Traceback (most recent call last):
6 File "/Users/hebasto/git/bitcoin/./contrib/devtools/security-check.py", line 254, in <module>
7 if not func(binary):
8 File "/Users/hebasto/git/bitcoin/./contrib/devtools/security-check.py", line 160, in check_MACHO_LAZY_BINDINGS
9 return binary.dyld_info.lazy_bind == (0,0)
10AttributeError: 'NoneType' object has no attribute 'lazy_bind'
11F
12======================================================================
13FAIL: test_MACHO (__main__.TestSecurityChecks)
14----------------------------------------------------------------------
15Traceback (most recent call last):
16 File "/Users/hebasto/git/bitcoin/./contrib/devtools/test-security-check.py", line 138, in test_MACHO
17 self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-flat_namespace','-fno-stack-protector']),
18AssertionError: Tuples differ: (1, '') != (1, 'test1: failed NOUNDEFS LAZY_BINDINGS Canary')
19
20First differing element 1:
21''
22'test1: failed NOUNDEFS LAZY_BINDINGS Canary'
23
24- (1, '')
25+ (1, 'test1: failed NOUNDEFS LAZY_BINDINGS Canary')
26
27----------------------------------------------------------------------
28Ran 1 test in 0.382s
29
30FAILED (failures=1)
31make: *** [test-security-check] Error 1