Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_MTIMESPEC failed with the following output: Change Dir: /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_58e68/fast && make[1]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_58e68.dir/build.make CMakeFiles/cmTC_58e68.dir/build make[2]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_58e68.dir/src.c.o /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/home/giuliobenetti/autobuild/run/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DHAVE_STRUCT_STAT_ST_MTIMESPEC -DNDEBUG -o CMakeFiles/cmTC_58e68.dir/src.c.o -c /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/src.c /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/src.c: In function 'main': /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/src.c:7:34: error: 'struct stat' has no member named 'st_mtimespec' 7 | (void)sizeof(((struct stat *)0)->st_mtimespec); | ^~ make[2]: *** [CMakeFiles/cmTC_58e68.dir/build.make:69: CMakeFiles/cmTC_58e68.dir/src.c.o] Error 1 make[2]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_58e68/fast] Error 2 make[1]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' Source file was: #include #include int main() { (void)sizeof(((struct stat *)0)->st_mtimespec); return 0; } Performing C SOURCE FILE Test HAVE_STRUCT_STAT_MTIME_NSEC failed with the following output: Change Dir: /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_82c4f/fast && make[1]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_82c4f.dir/build.make CMakeFiles/cmTC_82c4f.dir/build make[2]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_82c4f.dir/src.c.o /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/home/giuliobenetti/autobuild/run/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DHAVE_STRUCT_STAT_MTIME_NSEC -DNDEBUG -o CMakeFiles/cmTC_82c4f.dir/src.c.o -c /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/src.c /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/src.c: In function 'main': /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/src.c:6:34: error: 'struct stat' has no member named 'st_mtime_nsec' 6 | (void)sizeof(((struct stat *)0)->st_mtime_nsec); | ^~ make[2]: *** [CMakeFiles/cmTC_82c4f.dir/build.make:69: CMakeFiles/cmTC_82c4f.dir/src.c.o] Error 1 make[2]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_82c4f/fast] Error 2 make[1]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' Source file was: #include int main() { (void)sizeof(((struct stat *)0)->st_mtime_nsec); return 0; } Performing C SOURCE FILE Test IS_WDOCUMENTATION_SUPPORTED failed with the following output: Change Dir: /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_67b86/fast && make[1]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_67b86.dir/build.make CMakeFiles/cmTC_67b86.dir/build make[2]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_67b86.dir/src.c.o /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/home/giuliobenetti/autobuild/run/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -fvisibility=hidden -fPIC -DIS_WDOCUMENTATION_SUPPORTED -DNDEBUG -Wdocumentation -o CMakeFiles/cmTC_67b86.dir/src.c.o -c /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/src.c x86_64-linux-gcc.br_real: error: unrecognized command line option '-Wdocumentation' make[2]: *** [CMakeFiles/cmTC_67b86.dir/build.make:69: CMakeFiles/cmTC_67b86.dir/src.c.o] Error 1 make[2]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_67b86/fast] Error 2 make[1]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' Source file was: int main(void) { return 0; } Determining if the prototype qsort_r exists for HAVE_QSORT_R_BSD failed with the following output: Change Dir: /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_6647f/fast && make[1]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_6647f.dir/build.make CMakeFiles/cmTC_6647f.dir/build make[2]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6647f.dir/CheckPrototypeDefinition.c.o /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/home/giuliobenetti/autobuild/run/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -fvisibility=hidden -fPIC -Wno-documentation-deprecated-sync -Wno-missing-field-initializers -Wstrict-aliasing -Wstrict-prototypes -Wdeclaration-after-statement -Wshift-count-overflow -Wunused-const-variable -Wunused-function -Wint-conversion -Wformat -Wformat-security -Wmissing-declarations -DNDEBUG -o CMakeFiles/cmTC_6647f.dir/CheckPrototypeDefinition.c.o -c /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c:14:6: error: conflicting types for 'qsort_r' 14 | void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *)) { | ^~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c:1: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/stdlib.h:737:13: note: previous declaration of 'qsort_r' was here 737 | extern void qsort_r (void *__base, size_t __nmemb, size_t __size, | ^~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c: In function 'qsort_r': /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c:14:20: warning: unused parameter 'base' [-Wunused-parameter] 14 | void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *)) { | ~~~~~~^~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c:14:33: warning: unused parameter 'nmemb' [-Wunused-parameter] 14 | void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *)) { | ~~~~~~~^~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c:14:47: warning: unused parameter 'size' [-Wunused-parameter] 14 | void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *)) { | ~~~~~~~^~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c:14:59: warning: unused parameter 'thunk' [-Wunused-parameter] 14 | void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *)) { | ~~~~~~^~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c:14:72: warning: unused parameter 'compar' [-Wunused-parameter] 14 | void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c: At top level: cc1: warning: unrecognized command line option '-Wno-documentation-deprecated-sync' make[2]: *** [CMakeFiles/cmTC_6647f.dir/build.make:69: CMakeFiles/cmTC_6647f.dir/CheckPrototypeDefinition.c.o] Error 1 make[2]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_6647f/fast] Error 2 make[1]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' #include static void cmakeRequireSymbol(int dummy, ...) { (void) dummy; } static void checkSymbol(void) { #ifndef qsort_r cmakeRequireSymbol(0, &qsort_r); #endif } void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *)) { return ; } #ifdef __CLASSIC_C__ int main() { int ac; char*av[]; #else int main(int ac, char *av[]) { #endif checkSymbol(); if (ac > 1000) { return *av[0]; } return 0; } Determining if the function qsort_s exists failed with the following output: Change Dir: /home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_42354/fast && make[1]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_42354.dir/build.make CMakeFiles/cmTC_42354.dir/build make[2]: Entering directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_42354.dir/CheckFunctionExists.c.o /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/home/giuliobenetti/autobuild/run/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -fvisibility=hidden -fPIC -Wno-documentation-deprecated-sync -Wno-missing-field-initializers -Wstrict-aliasing -Wstrict-prototypes -Wdeclaration-after-statement -Wshift-count-overflow -Wunused-const-variable -Wunused-function -Wint-conversion -Wformat -Wformat-security -Wmissing-declarations -DCHECK_FUNCTION_EXISTS=qsort_s -DNDEBUG -o CMakeFiles/cmTC_42354.dir/CheckFunctionExists.c.o -c /home/giuliobenetti/autobuild/run/instance-0/output-1/host/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_42354 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_42354.dir/link.txt --verbose=1 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/home/giuliobenetti/autobuild/run/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -fvisibility=hidden -fPIC -Wno-documentation-deprecated-sync -Wno-missing-field-initializers -Wstrict-aliasing -Wstrict-prototypes -Wdeclaration-after-statement -Wshift-count-overflow -Wunused-const-variable -Wunused-function -Wint-conversion -Wformat -Wformat-security -Wmissing-declarations -DCHECK_FUNCTION_EXISTS=qsort_s -DNDEBUG CMakeFiles/cmTC_42354.dir/CheckFunctionExists.c.o -o cmTC_42354 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: CMakeFiles/cmTC_42354.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0x9): undefined reference to `qsort_s' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_42354.dir/build.make:90: cmTC_42354] Error 1 make[2]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_42354/fast] Error 2 make[1]: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/libgit2-1.1.0/CMakeFiles/CMakeTmp'