aerospike-server icon indicating copy to clipboard operation
aerospike-server copied to clipboard

Failed build on GCC 12

Open moeryomenko opened this issue 2 years ago • 0 comments

OS: Arch linux

Aerospike version: tags/6.2.0.3-0-g46a1008

Client version: -


Failed build on GCC 12

In file included from cf_thread.c:27:
../include/cf_thread.h: In function ‘cf_thread_yield’:
../include/cf_thread.h:81:9: error: ‘pthread_yield’ is deprecated: pthread_yield is deprecated, use sched_yield instead [-Werror=deprecated-declarations]
   81 |         pthread_yield();
      |         ^~~~~~~~~~~~~
In file included from /usr/include/features.h:490,
                 from /usr/include/pthread.h:21,
                 from ../include/cf_thread.h:29:
/usr/include/pthread.h:479:12: note: declared here
  479 | extern int __REDIRECT_NTH (pthread_yield, (void), sched_yield)
      |            ^~~~~~~~~~~~~~
In file included from alloc.c:47:
../include/cf_thread.h: In function ‘cf_thread_yield’:
../include/cf_thread.h:81:9: error: ‘pthread_yield’ is deprecated: pthread_yield is deprecated, use sched_yield instead [-Werror=deprecated-declarations]
   81 |         pthread_yield();
      |         ^~~~~~~~~~~~~
In file included from /usr/include/features.h:490,
                 from /usr/include/malloc.h:23,
                 from ../include/enhanced_alloc.h:29,
                 from alloc.c:26:
/usr/include/pthread.h:479:12: note: declared here
  479 | extern int __REDIRECT_NTH (pthread_yield, (void), sched_yield)
      |            ^~~~~~~~~~~~~~
In file included from dns.c:29:
../include/cf_thread.h: In function ‘cf_thread_yield’:
../include/cf_thread.h:81:9: error: ‘pthread_yield’ is deprecated: pthread_yield is deprecated, use sched_yield instead [-Werror=deprecated-declarations]
   81 |         pthread_yield();
      |         ^~~~~~~~~~~~~
In file included from /usr/include/features.h:490,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/limits.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/include-fixed/limits.h:203,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/include-fixed/limits.h:34,
                 from ../include/dns.h:25,
                 from dns.c:23:
/usr/include/pthread.h:479:12: note: declared here
  479 | extern int __REDIRECT_NTH (pthread_yield, (void), sched_yield)
      |            ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
In function ‘hmh_compatible_template’,
    inlined from ‘hll_modify_op_union’ at base/particle_hll.c:1274:2:
base/particle_hll.c:1595:34: error: ‘*(const hll_t **)hmhs’ may be used uninitialized [-Werror=maybe-uninitialized]
 1595 |         uint8_t index_bits = hmhs[0]->n_index_bits;
      |                              ~~~~^~~

moeryomenko avatar Jan 29 '23 09:01 moeryomenko