[01:08:13.716] time ./configure \ [01:08:13.716] --host=x86_64-w64-mingw32 \ [01:08:13.716] --enable-cassert \ [01:08:13.716] --without-icu \ [01:08:13.716] CC="ccache x86_64-w64-mingw32-gcc" \ [01:08:13.716] CXX="ccache x86_64-w64-mingw32-g++" [01:08:13.819] checking build system type... x86_64-pc-linux-gnu [01:08:14.001] checking host system type... x86_64-w64-mingw32 [01:08:14.006] checking which template to use... win32 [01:08:14.006] checking whether NLS is wanted... no [01:08:14.006] checking for default port number... 5432 [01:08:14.012] checking for block size... 8kB [01:08:14.013] checking for segment size... 1GB [01:08:14.015] checking for WAL block size... 8kB [01:08:14.016] checking for x86_64-w64-mingw32-gcc... ccache x86_64-w64-mingw32-gcc [01:08:14.046] checking whether the C compiler works... yes [01:08:14.183] checking for C compiler default output file name... a.exe [01:08:14.184] checking for suffix of executables... .exe [01:08:14.221] checking whether we are cross compiling... yes [01:08:14.287] checking for suffix of object files... o [01:08:14.302] checking whether we are using the GNU C compiler... yes [01:08:14.329] checking whether ccache x86_64-w64-mingw32-gcc accepts -g... yes [01:08:14.335] checking for ccache x86_64-w64-mingw32-gcc option to accept ISO C89... none needed [01:08:14.409] checking for ccache x86_64-w64-mingw32-gcc option to accept ISO C99... none needed [01:08:14.535] checking whether we are using the GNU C++ compiler... yes [01:08:14.683] checking whether ccache x86_64-w64-mingw32-g++ accepts -g... yes [01:08:14.740] checking for gawk... no [01:08:14.741] checking for mawk... mawk [01:08:14.743] checking whether ccache x86_64-w64-mingw32-gcc supports -Wdeclaration-after-statement, for CFLAGS... yes [01:08:14.770] checking whether ccache x86_64-w64-mingw32-gcc supports -Werror=vla, for CFLAGS... yes [01:08:14.776] checking whether ccache x86_64-w64-mingw32-gcc supports -Werror=unguarded-availability-new, for CFLAGS... no [01:08:14.819] checking whether ccache x86_64-w64-mingw32-g++ supports -Werror=unguarded-availability-new, for CXXFLAGS... no [01:08:14.860] checking whether ccache x86_64-w64-mingw32-gcc supports -Wendif-labels, for CFLAGS... yes [01:08:14.866] checking whether ccache x86_64-w64-mingw32-g++ supports -Wendif-labels, for CXXFLAGS... yes [01:08:14.880] checking whether ccache x86_64-w64-mingw32-gcc supports -Wmissing-format-attribute, for CFLAGS... yes [01:08:14.894] checking whether ccache x86_64-w64-mingw32-g++ supports -Wmissing-format-attribute, for CXXFLAGS... yes [01:08:14.900] checking whether ccache x86_64-w64-mingw32-gcc supports -Wimplicit-fallthrough=3, for CFLAGS... yes [01:08:14.906] checking whether ccache x86_64-w64-mingw32-g++ supports -Wimplicit-fallthrough=3, for CXXFLAGS... yes [01:08:14.912] checking whether ccache x86_64-w64-mingw32-gcc supports -Wcast-function-type, for CFLAGS... yes [01:08:14.939] checking whether ccache x86_64-w64-mingw32-g++ supports -Wcast-function-type, for CXXFLAGS... yes [01:08:14.945] checking whether ccache x86_64-w64-mingw32-gcc supports -Wshadow=compatible-local, for CFLAGS... yes [01:08:14.951] checking whether ccache x86_64-w64-mingw32-g++ supports -Wshadow=compatible-local, for CXXFLAGS... yes [01:08:15.013] checking whether ccache x86_64-w64-mingw32-gcc supports -Wformat-security, for CFLAGS... yes [01:08:15.042] checking whether ccache x86_64-w64-mingw32-g++ supports -Wformat-security, for CXXFLAGS... yes [01:08:15.071] checking whether ccache x86_64-w64-mingw32-gcc supports -Wmissing-variable-declarations, for CFLAGS... no [01:08:15.105] checking whether ccache x86_64-w64-mingw32-gcc supports -fno-strict-aliasing, for CFLAGS... yes [01:08:15.119] checking whether ccache x86_64-w64-mingw32-g++ supports -fno-strict-aliasing, for CXXFLAGS... yes [01:08:15.133] checking whether ccache x86_64-w64-mingw32-gcc supports -fwrapv, for CFLAGS... yes [01:08:15.161] checking whether ccache x86_64-w64-mingw32-g++ supports -fwrapv, for CXXFLAGS... yes [01:08:15.189] checking whether ccache x86_64-w64-mingw32-gcc supports -fexcess-precision=standard, for CFLAGS... yes [01:08:15.195] checking whether ccache x86_64-w64-mingw32-g++ supports -fexcess-precision=standard, for CXXFLAGS... no [01:08:15.215] checking whether ccache x86_64-w64-mingw32-gcc supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... yes [01:08:15.221] checking whether ccache x86_64-w64-mingw32-gcc supports -ftree-vectorize, for CFLAGS_VECTORIZE... yes [01:08:15.235] checking whether ccache x86_64-w64-mingw32-gcc supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... no [01:08:15.270] checking whether ccache x86_64-w64-mingw32-gcc supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... no [01:08:15.305] checking whether ccache x86_64-w64-mingw32-gcc supports -Wformat-truncation, for NOT_THE_CFLAGS... yes [01:08:15.333] checking whether ccache x86_64-w64-mingw32-gcc supports -Wstringop-truncation, for NOT_THE_CFLAGS... yes [01:08:15.360] checking whether ccache x86_64-w64-mingw32-gcc supports -Wcast-function-type-strict, for NOT_THE_CFLAGS... no [01:08:15.392] checking whether ccache x86_64-w64-mingw32-gcc supports -fvisibility=hidden, for CFLAGS_SL_MODULE... yes [01:08:15.398] checking whether ccache x86_64-w64-mingw32-g++ supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE... yes [01:08:15.404] checking whether ccache x86_64-w64-mingw32-g++ supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE... yes [01:08:15.410] checking whether the C compiler still works... yes [01:08:15.476] checking how to run the C preprocessor... ccache x86_64-w64-mingw32-gcc -E [01:08:15.536] checking for x86_64-w64-mingw32-pkg-config... /usr/bin/x86_64-w64-mingw32-pkg-config [01:08:15.537] checking pkg-config is at least version 0.9.0... yes [01:08:15.552] checking whether to build with ICU support... no [01:08:15.552] checking whether to build with Tcl... no [01:08:15.552] checking whether to build Perl modules... no [01:08:15.552] checking whether to build Python modules... no [01:08:15.553] checking whether to build with GSSAPI support... no [01:08:15.554] checking whether to build with PAM support... no [01:08:15.554] checking whether to build with BSD Authentication support... no [01:08:15.554] checking whether to build with LDAP support... no [01:08:15.554] checking whether to build with Bonjour support... no [01:08:15.554] checking whether to build with SELinux support... no [01:08:15.554] checking whether to build with systemd support... no [01:08:15.554] configure: WARNING: *** Readline does not work on MinGW --- disabling [01:08:15.554] checking whether to build with XML support... no [01:08:15.555] checking whether to build with LZ4 support... no [01:08:15.555] checking whether to build with ZSTD support... no [01:08:15.555] checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip [01:08:15.555] checking whether it is possible to strip libraries... yes [01:08:15.562] checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar [01:08:15.562] checking for x86_64-w64-mingw32-windres... x86_64-w64-mingw32-windres [01:08:15.562] checking for a BSD-compatible install... /usr/bin/install -c [01:08:15.571] checking for tar... /usr/bin/tar [01:08:15.571] checking whether ln -s works... yes [01:08:15.571] checking for a thread-safe mkdir -p... /usr/bin/mkdir -p [01:08:15.573] checking for bison... /usr/bin/bison [01:08:15.574] configure: using bison (GNU Bison) 3.8.2 [01:08:15.577] checking for flex... /usr/bin/flex [01:08:15.587] configure: using flex 2.6.4 [01:08:15.588] checking for perl... /usr/bin/perl [01:08:15.590] configure: using perl 5.36.0 [01:08:15.592] checking for zic... /usr/sbin/zic [01:08:15.592] checking for a sed that does not truncate output... /usr/bin/sed [01:08:15.596] checking for grep that handles long lines and -e... /usr/bin/grep [01:08:15.598] checking for egrep... /usr/bin/grep -E [01:08:15.599] checking for ANSI C header files... yes [01:08:15.640] checking for sys/types.h... yes [01:08:15.671] checking for sys/stat.h... yes [01:08:15.724] checking for stdlib.h... yes [01:08:15.775] checking for string.h... yes [01:08:15.806] checking for memory.h... yes [01:08:15.859] checking for strings.h... yes [01:08:15.913] checking for inttypes.h... yes [01:08:15.968] checking for stdint.h... yes [01:08:16.022] checking for unistd.h... yes [01:08:16.056] checking for main in -lm... yes [01:08:16.097] checking for library containing setproctitle... no [01:08:16.174] checking for library containing dlsym... no [01:08:16.251] checking for library containing socket... -lws2_32 [01:08:16.364] checking for library containing getopt_long... none required [01:08:16.407] checking for library containing shm_open... no [01:08:16.485] checking for library containing shm_unlink... no [01:08:16.562] checking for library containing clock_gettime... no [01:08:16.638] checking for library containing shmget... no [01:08:16.714] checking for library containing backtrace_symbols... no [01:08:16.792] checking for library containing pthread_barrier_wait... -lpthread [01:08:16.871] checking for inflate in -lz... yes [01:08:16.914] checking atomic.h usability... no [01:08:16.962] checking atomic.h presence... no [01:08:16.978] checking for atomic.h... no [01:08:16.981] checking copyfile.h usability... no [01:08:17.030] checking copyfile.h presence... no [01:08:17.046] checking for copyfile.h... no [01:08:17.049] checking execinfo.h usability... no [01:08:17.097] checking execinfo.h presence... no [01:08:17.114] checking for execinfo.h... no [01:08:17.116] checking getopt.h usability... yes [01:08:17.165] checking getopt.h presence... yes [01:08:17.177] checking for getopt.h... yes [01:08:17.183] checking ifaddrs.h usability... no [01:08:17.234] checking ifaddrs.h presence... no [01:08:17.251] checking for ifaddrs.h... no [01:08:17.253] checking mbarrier.h usability... no [01:08:17.302] checking mbarrier.h presence... no [01:08:17.318] checking for mbarrier.h... no [01:08:17.320] checking sys/epoll.h usability... no [01:08:17.370] checking sys/epoll.h presence... no [01:08:17.386] checking for sys/epoll.h... no [01:08:17.389] checking sys/event.h usability... no [01:08:17.437] checking sys/event.h presence... no [01:08:17.453] checking for sys/event.h... no [01:08:17.456] checking sys/personality.h usability... no [01:08:17.504] checking sys/personality.h presence... no [01:08:17.520] checking for sys/personality.h... no [01:08:17.523] checking sys/prctl.h usability... no [01:08:17.572] checking sys/prctl.h presence... no [01:08:17.588] checking for sys/prctl.h... no [01:08:17.590] checking sys/procctl.h usability... no [01:08:17.639] checking sys/procctl.h presence... no [01:08:17.655] checking for sys/procctl.h... no [01:08:17.658] checking sys/signalfd.h usability... no [01:08:17.706] checking sys/signalfd.h presence... no [01:08:17.722] checking for sys/signalfd.h... no [01:08:17.725] checking sys/ucred.h usability... no [01:08:17.774] checking sys/ucred.h presence... no [01:08:17.790] checking for sys/ucred.h... no [01:08:17.793] checking termios.h usability... no [01:08:17.843] checking termios.h presence... no [01:08:17.859] checking for termios.h... no [01:08:17.861] checking ucred.h usability... no [01:08:17.911] checking ucred.h presence... no [01:08:17.926] checking for ucred.h... no [01:08:17.929] checking xlocale.h usability... no [01:08:17.977] checking xlocale.h presence... no [01:08:17.993] checking for xlocale.h... no [01:08:17.995] checking zlib.h usability... yes [01:08:18.023] checking zlib.h presence... yes [01:08:18.039] checking for zlib.h... yes [01:08:18.040] checking for lz4... /usr/bin/lz4 [01:08:18.040] checking for zstd... /usr/bin/zstd [01:08:18.040] checking for openssl... /usr/bin/openssl [01:08:18.044] configure: using openssl: OpenSSL 3.0.15 3 Sep 2024 (Library: OpenSSL 3.0.15 3 Sep 2024) [01:08:18.044] checking crtdefs.h usability... yes [01:08:18.051] checking crtdefs.h presence... yes [01:08:18.063] checking for crtdefs.h... yes [01:08:18.064] checking whether byte ordering is bigendian... no [01:08:18.135] checking for inline... inline [01:08:18.158] checking for printf format archetype... gnu_printf [01:08:18.173] checking for _Static_assert... yes [01:08:18.209] checking for typeof... typeof [01:08:18.238] checking for __builtin_types_compatible_p... yes [01:08:18.247] checking for __builtin_constant_p... yes [01:08:18.265] checking for __builtin_mul_overflow... yes [01:08:18.305] checking for __builtin_unreachable... yes [01:08:18.341] checking for computed goto support... yes [01:08:18.371] checking for struct tm.tm_zone... no [01:08:18.439] checking for union semun... no [01:08:18.468] checking for socklen_t... yes [01:08:19.820] checking for struct sockaddr.sa_len... no [01:08:21.650] checking for C/C++ restrict keyword... __restrict [01:08:21.686] checking for struct option... yes [01:08:21.732] checking whether assembler supports x86_64 popcntq... yes [01:08:21.739] checking size of off_t... 4 [01:08:22.060] 0 [01:08:22.060] checking for int timezone... yes [01:08:22.105] checking for backtrace_symbols... no [01:08:22.150] checking for copyfile... no [01:08:22.193] checking for copy_file_range... no [01:08:22.238] checking for elf_aux_info... no [01:08:22.282] checking for getauxval... no [01:08:22.327] checking for getifaddrs... no [01:08:22.372] checking for getpeerucred... no [01:08:22.418] checking for inet_pton... yes [01:08:22.464] checking for kqueue... no [01:08:22.510] checking for mbstowcs_l... no [01:08:22.557] checking for memset_s... no [01:08:22.602] checking for posix_fallocate... no [01:08:22.648] checking for ppoll... no [01:08:22.694] checking for pthread_is_threaded_np... no [01:08:22.740] checking for setproctitle... no [01:08:22.786] checking for setproctitle_fast... no [01:08:22.832] checking for strchrnul... no [01:08:22.878] checking for strsignal... no [01:08:22.922] checking for syncfs... no [01:08:22.966] checking for sync_file_range... no [01:08:23.010] checking for uselocale... no [01:08:23.054] checking for wcstombs_l... no [01:08:23.096] checking for __builtin_bswap16... yes [01:08:23.139] checking for __builtin_bswap32... yes [01:08:23.181] checking for __builtin_bswap64... yes [01:08:23.223] checking for __builtin_clz... yes [01:08:23.266] checking for __builtin_ctz... yes [01:08:23.309] checking for __builtin_popcount... yes [01:08:23.352] checking for __builtin_frame_address... yes [01:08:23.395] checking for _LARGEFILE_SOURCE value needed for large files... no [01:08:23.442] checking how ccache x86_64-w64-mingw32-gcc reports undeclared, standard C functions... error [01:08:23.469] checking for posix_fadvise... no [01:08:23.515] checking whether posix_fadvise is declared... no [01:08:23.554] checking whether fdatasync is declared... no [01:08:23.594] checking whether strlcat is declared... no [01:08:23.650] checking whether strlcpy is declared... no [01:08:23.706] checking whether strnlen is declared... yes [01:08:23.737] checking whether strsep is declared... no [01:08:23.793] checking whether preadv is declared... no [01:08:23.825] checking whether pwritev is declared... no [01:08:23.857] checking whether F_FULLFSYNC is declared... no [01:08:23.892] checking for explicit_bzero... no [01:08:23.934] checking for getopt... yes [01:08:23.973] checking for getpeereid... no [01:08:24.015] checking for inet_aton... no [01:08:24.057] checking for mkdtemp... no [01:08:24.098] checking for strlcat... no [01:08:24.140] checking for strlcpy... no [01:08:24.181] checking for strnlen... yes [01:08:24.222] checking for strsep... no [01:08:24.264] checking for pthread_barrier_wait... yes [01:08:24.303] configure: On mingw32 we will use our strtof wrapper. [01:08:24.303] checking for getopt_long... yes [01:08:24.343] checking for syslog... no [01:08:24.386] checking for opterr... yes [01:08:24.429] checking for optreset... no [01:08:24.474] checking test program... cross-compiling [01:08:24.474] checking size of void *... 8 [01:08:24.860] checking size of size_t... 8 [01:08:25.239] checking size of long... 4 [01:08:25.550] checking size of long long... 8 [01:08:25.970] checking alignment of short... 2 [01:08:26.112] checking alignment of int... 4 [01:08:26.356] checking alignment of long... 4 [01:08:26.634] checking alignment of int64_t... 8 [01:08:27.018] checking alignment of double... 8 [01:08:27.319] checking for __int128... yes [01:08:27.361] checking for __int128 alignment bug... assuming ok [01:08:27.361] checking alignment of PG_INT128_TYPE... 16 [01:08:27.833] checking for builtin __sync char locking functions... yes [01:08:27.872] checking for builtin __sync int32 locking functions... yes [01:08:27.911] checking for builtin __sync int32 atomic operations... yes [01:08:27.949] checking for builtin __sync int64 atomic operations... yes [01:08:27.990] checking for builtin __atomic int32 atomic operations... yes [01:08:28.029] checking for builtin __atomic int64 atomic operations... yes [01:08:28.068] checking for __get_cpuid... yes [01:08:28.109] checking for __get_cpuid_count... yes [01:08:28.148] checking for __cpuid... no [01:08:28.532] checking for __cpuidex... no [01:08:28.926] checking for _xgetbv... yes [01:08:29.304] checking for _mm512_popcnt_epi64... yes [01:08:29.702] checking for _mm_crc32_u8 and _mm_crc32_u32... yes [01:08:29.793] checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... no [01:08:29.817] checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc+simd... no [01:08:29.834] checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... no [01:08:29.851] checking for __builtin_loongarch_crcc_w_b_w, __builtin_loongarch_crcc_w_h_w, __builtin_loongarch_crcc_w_w_w and __builtin_loongarch_crcc_w_d_w... no [01:08:29.900] checking which CRC-32C implementation to use... SSE 4.2 with runtime check [01:08:29.901] checking which random number source to use... Windows native [01:08:29.902] checking for xmllint... /usr/bin/xmllint [01:08:29.902] checking for xsltproc... /usr/bin/xsltproc [01:08:29.902] checking for fop... /usr/bin/fop [01:08:29.903] checking for dbtoepub... no [01:08:29.903] checking whether ccache x86_64-w64-mingw32-gcc supports -Wl,--as-needed, for LDFLAGS... assuming no [01:08:29.903] checking whether ccache x86_64-w64-mingw32-gcc supports -Wl,--export-dynamic, for LDFLAGS_EX_BE... assuming no [01:08:29.903] checking whether ccache x86_64-w64-mingw32-gcc supports -Wl,-export_dynamic, for LDFLAGS_EX_BE... assuming no [01:08:29.912] configure: using compiler=x86_64-w64-mingw32-gcc (GCC) 12-win32 [01:08:29.912] configure: using CFLAGS=-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 [01:08:29.912] configure: using CPPFLAGS= -D_POSIX_C_SOURCE -I./src/include/port/win32 [01:08:29.912] configure: using LDFLAGS= -Wl,--allow-multiple-definition -Wl,--disable-auto-import [01:08:29.986] configure: creating ./config.status [01:08:30.061] config.status: creating GNUmakefile [01:08:30.072] config.status: creating src/Makefile.global [01:08:30.085] config.status: creating src/include/pg_config.h [01:08:30.096] config.status: creating src/interfaces/ecpg/include/ecpg_config.h [01:08:30.110] config.status: linking src/backend/port/tas/dummy.s to src/backend/port/tas.s [01:08:30.116] config.status: linking src/backend/port/win32_sema.c to src/backend/port/pg_sema.c [01:08:30.122] config.status: linking src/backend/port/win32_shmem.c to src/backend/port/pg_shmem.c [01:08:30.129] config.status: linking src/include/port/win32.h to src/include/pg_config_os.h [01:08:30.135] config.status: linking src/makefiles/Makefile.win32 to src/Makefile.port [01:08:30.137] config.status: executing check_win32_symlinks commands [01:08:30.167] [01:08:30.167] real 0m16.451s [01:08:30.167] user 0m10.927s [01:08:30.167] sys 0m5.083s [01:08:30.167] make -s -j${BUILD_JOBS} clean [01:08:30.638] time make -s -j${BUILD_JOBS} world-bin [01:10:50.826] In file included from ../../../../src/include/postgres.h:45, [01:10:50.826] from smgr.c:52: [01:10:50.826] smgr.c: In function ‘smgrtruncate’: [01:10:50.826] smgr.c:733:16: error: ‘CritSectionCount’ undeclared (first use in this function) [01:10:50.826] 733 | Assert(CritSectionCount == 0); [01:10:50.826] | ^~~~~~~~~~~~~~~~ [01:10:50.826] ../../../../src/include/c.h:829:23: note: in definition of macro ‘Assert’ [01:10:50.826] 829 | if (!(condition)) \ [01:10:50.826] | ^~~~~~~~~ [01:10:50.826] smgr.c:733:16: note: each undeclared identifier is reported only once for each function it appears in [01:10:50.826] 733 | Assert(CritSectionCount == 0); [01:10:50.826] | ^~~~~~~~~~~~~~~~ [01:10:50.826] ../../../../src/include/c.h:829:23: note: in definition of macro ‘Assert’ [01:10:50.826] 829 | if (!(condition)) \ [01:10:50.826] | ^~~~~~~~~ [01:10:50.827] make[4]: *** [: smgr.o] Error 1 [01:10:50.827] make[3]: *** [../../../src/backend/common.mk:37: smgr-recursive] Error 2 [01:10:50.827] make[2]: *** [common.mk:37: storage-recursive] Error 2 [01:10:50.827] make[2]: *** Waiting for unfinished jobs.... [01:11:23.081] make[1]: *** [Makefile:42: all-backend-recurse] Error 2 [01:11:23.081] make: *** [GNUmakefile:21: world-bin-src-recurse] Error 2 [01:11:23.081] [01:11:23.081] real 2m52.444s [01:11:23.081] user 9m27.270s [01:11:23.081] sys 1m44.844s [01:11:23.082] [01:11:23.082] Exit status: 2