Open Meai opened 4 years ago
@Meai would you mind checking if #2585 works for you? :)
I think that one is gone now but the build has lots of other errors:
from /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:6: In function ‘strncpy’, inlined from ‘cleanup’ at /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:146:3: /usr/include/bits/string_fortified.h:106:10: error: ‘builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Werror=stringop-truncation] 106 | return _builtinstrncpy_chk (dest, src, len, bos (dest)); | ^
~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘cleanup’ at /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:148:3: /usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Werror=stringop-truncation] 106 | return builtin_strncpy_chk (dest, src, len, bos (dest)); | ^~~~~~~~~~~~~~ /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c: In function ‘run_one_transaction’: /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:614:7: error: ‘rc’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 614 | if (rc == FDB_ERROR_ABORT) { | ^ /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c: In function ‘worker_process_main’: /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:822:14: error: ‘worker_threads’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 822 | pthread_t *worker_threads; | ^~~~~~ /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:969:6: error: ‘thread_args’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 969 | if (thread_args) | ^ /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c: In function ‘print_stats’: /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:1445:6: error: ‘print_err’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 1445 | if (print_err) { | ^ /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c: In function ‘main’: /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:1938:5: error: ‘worker_pids’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 1938 | free(worker_pids); | ^~~~~ /home/pc/workarea/test/foundationdb/bindings/c/test/mako/mako.c:1940:6: error: ‘shm’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 1940 | if (shm != MAP_FAILED) | ^
CC #2147 , @AlvinMooreSr
gcc 9.2.1 Linux 5.4.10 commit 16c32c3
oh and I had to add this as well, there was an error "pthread_once not defined"
to contrib/monitoring/CMakeLists.txt