https://cirrus-ci.com/task/6736987506343936:
0Undefined symbols for architecture x86_64:
1 "___llvm_profile_reset_counters", referenced from:
2 initialize() in libtest_fuzz.a(libtest_fuzz_a-fuzz.o)
3 "___gcov_reset", referenced from:
4 initialize() in libtest_fuzz.a(libtest_fuzz_a-fuzz.o)
5ld: symbol(s) not found for architecture x86_64
https://cirrus-ci.com/task/6596250017988608:
0/usr/bin/ld: libtest_fuzz.a(libtest_fuzz_a-fuzz.o): in function `ResetCoverageCounters()':
1./src/test/fuzz/fuzz.cpp:90: undefined reference to `__llvm_profile_reset_counters'
2/usr/bin/ld: ./src/test/fuzz/fuzz.cpp:94: undefined reference to `__gcov_reset'
3/usr/bin/ld: ./src/test/fuzz/fuzz.cpp:90: undefined reference to `__llvm_profile_reset_counters'
4/usr/bin/ld: ./src/test/fuzz/fuzz.cpp:94: undefined reference to `__gcov_reset'
5collect2: error: ld returned 1 exit status
https://cirrus-ci.com/task/5470350111145984:
0test/fuzz/fuzz.cpp:84:1: error: attributes are not permitted in this position [-Werror=attributes]
1 84 | __attribute__((weak)) extern "C" void __llvm_profile_reset_counters(void);
2 | ^~~~~~~~~~~~~
3test/fuzz/fuzz.cpp:84:33: note: attributes may be inserted here
4 84 | __attribute__((weak)) extern "C" void __llvm_profile_reset_counters(void);
5 | ^
6test/fuzz/fuzz.cpp:85:1: error: attributes are not permitted in this position [-Werror=attributes]
7 85 | __attribute__((weak)) extern "C" void __gcov_reset(void);
8 | ^~~~~~~~~~~~~
9test/fuzz/fuzz.cpp:85:33: note: attributes may be inserted here
10 85 | __attribute__((weak)) extern "C" void __gcov_reset(void);
11 | ^
12test/fuzz/fuzz.cpp: In function ‘void ResetCoverageCounters()’:
13test/fuzz/fuzz.cpp:89:9: error: the address of ‘void __llvm_profile_reset_counters()’ will never be NULL [-Werror=address]
14 89 | if (__llvm_profile_reset_counters) {
15 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16test/fuzz/fuzz.cpp:84:39: note: ‘void __llvm_profile_reset_counters()’ declared here
17 84 | __attribute__((weak)) extern "C" void __llvm_profile_reset_counters(void);
18 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19test/fuzz/fuzz.cpp:93:9: error: the address of ‘void __gcov_reset()’ will never be NULL [-Werror=address]
20 93 | if (__gcov_reset) {
21 | ^~~~~~~~~~~~
22test/fuzz/fuzz.cpp:85:39: note: ‘void __gcov_reset()’ declared here
23 85 | __attribute__((weak)) extern "C" void __gcov_reset(void);
24 | ^~~~~~~~~~~~
25cc1plus: all warnings being treated as errors