[12:27:57.590] time ./configure \ [12:27:57.590] --host=x86_64-w64-mingw32 \ [12:27:57.590] --enable-cassert \ [12:27:57.590] --without-icu \ [12:27:57.590] CC="ccache x86_64-w64-mingw32-gcc" \ [12:27:57.590] CXX="ccache x86_64-w64-mingw32-g++" [12:27:57.698] checking build system type... x86_64-pc-linux-gnu [12:27:57.904] checking host system type... x86_64-w64-mingw32 [12:27:57.909] checking which template to use... win32 [12:27:57.910] checking whether NLS is wanted... no [12:27:57.910] checking for default port number... 5432 [12:27:57.916] checking for block size... 8kB [12:27:57.917] checking for segment size... 1GB [12:27:57.919] checking for WAL block size... 8kB [12:27:57.920] checking for x86_64-w64-mingw32-gcc... ccache x86_64-w64-mingw32-gcc [12:27:57.951] checking whether the C compiler works... yes [12:27:58.111] checking for C compiler default output file name... a.exe [12:27:58.112] checking for suffix of executables... .exe [12:27:58.150] checking whether we are cross compiling... yes [12:27:58.224] checking for suffix of object files... o [12:27:58.232] checking whether we are using the GNU C compiler... yes [12:27:58.246] checking whether ccache x86_64-w64-mingw32-gcc accepts -g... yes [12:27:58.277] checking for ccache x86_64-w64-mingw32-gcc option to accept ISO C89... none needed [12:27:58.286] checking for ccache x86_64-w64-mingw32-gcc option to accept ISO C99... none needed [12:27:58.444] checking whether we are using the GNU C++ compiler... yes [12:27:58.607] checking whether ccache x86_64-w64-mingw32-g++ accepts -g... yes [12:27:58.732] checking for gawk... no [12:27:58.732] checking for mawk... mawk [12:27:58.735] checking whether ccache x86_64-w64-mingw32-gcc supports -Wdeclaration-after-statement, for CFLAGS... yes [12:27:58.749] checking whether ccache x86_64-w64-mingw32-gcc supports -Werror=vla, for CFLAGS... yes [12:27:58.765] checking whether ccache x86_64-w64-mingw32-gcc supports -Werror=unguarded-availability-new, for CFLAGS... no [12:27:58.809] checking whether ccache x86_64-w64-mingw32-g++ supports -Werror=unguarded-availability-new, for CXXFLAGS... no [12:27:58.851] checking whether ccache x86_64-w64-mingw32-gcc supports -Wendif-labels, for CFLAGS... yes [12:27:58.881] checking whether ccache x86_64-w64-mingw32-g++ supports -Wendif-labels, for CXXFLAGS... yes [12:27:58.887] checking whether ccache x86_64-w64-mingw32-gcc supports -Wmissing-format-attribute, for CFLAGS... yes [12:27:58.916] checking whether ccache x86_64-w64-mingw32-g++ supports -Wmissing-format-attribute, for CXXFLAGS... yes [12:27:58.922] checking whether ccache x86_64-w64-mingw32-gcc supports -Wimplicit-fallthrough=3, for CFLAGS... yes [12:27:58.953] checking whether ccache x86_64-w64-mingw32-g++ supports -Wimplicit-fallthrough=3, for CXXFLAGS... yes [12:27:58.968] checking whether ccache x86_64-w64-mingw32-gcc supports -Wcast-function-type, for CFLAGS... yes [12:27:58.975] checking whether ccache x86_64-w64-mingw32-g++ supports -Wcast-function-type, for CXXFLAGS... yes [12:27:58.981] checking whether ccache x86_64-w64-mingw32-gcc supports -Wshadow=compatible-local, for CFLAGS... yes [12:27:58.988] checking whether ccache x86_64-w64-mingw32-g++ supports -Wshadow=compatible-local, for CXXFLAGS... yes [12:27:58.994] checking whether ccache x86_64-w64-mingw32-gcc supports -Wformat-security, for CFLAGS... yes [12:27:59.001] checking whether ccache x86_64-w64-mingw32-g++ supports -Wformat-security, for CXXFLAGS... yes [12:27:59.030] checking whether ccache x86_64-w64-mingw32-gcc supports -Wmissing-variable-declarations, for CFLAGS... no [12:27:59.064] checking whether ccache x86_64-w64-mingw32-gcc supports -fno-strict-aliasing, for CFLAGS... yes [12:27:59.071] checking whether ccache x86_64-w64-mingw32-g++ supports -fno-strict-aliasing, for CXXFLAGS... yes [12:27:59.100] checking whether ccache x86_64-w64-mingw32-gcc supports -fwrapv, for CFLAGS... yes [12:27:59.130] checking whether ccache x86_64-w64-mingw32-g++ supports -fwrapv, for CXXFLAGS... yes [12:27:59.145] checking whether ccache x86_64-w64-mingw32-gcc supports -fexcess-precision=standard, for CFLAGS... yes [12:27:59.152] checking whether ccache x86_64-w64-mingw32-g++ supports -fexcess-precision=standard, for CXXFLAGS... no [12:27:59.174] checking whether ccache x86_64-w64-mingw32-gcc supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... yes [12:27:59.180] checking whether ccache x86_64-w64-mingw32-gcc supports -ftree-vectorize, for CFLAGS_VECTORIZE... yes [12:27:59.187] checking whether ccache x86_64-w64-mingw32-gcc supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... no [12:27:59.222] checking whether ccache x86_64-w64-mingw32-gcc supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... no [12:27:59.258] checking whether ccache x86_64-w64-mingw32-gcc supports -Wformat-truncation, for NOT_THE_CFLAGS... yes [12:27:59.288] checking whether ccache x86_64-w64-mingw32-gcc supports -Wstringop-truncation, for NOT_THE_CFLAGS... yes [12:27:59.295] checking whether ccache x86_64-w64-mingw32-gcc supports -Wcast-function-type-strict, for NOT_THE_CFLAGS... no [12:27:59.328] checking whether ccache x86_64-w64-mingw32-gcc supports -fvisibility=hidden, for CFLAGS_SL_MODULE... yes [12:27:59.335] checking whether ccache x86_64-w64-mingw32-g++ supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE... yes [12:27:59.365] checking whether ccache x86_64-w64-mingw32-g++ supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE... yes [12:27:59.397] checking whether the C compiler still works... yes [12:27:59.469] checking how to run the C preprocessor... ccache x86_64-w64-mingw32-gcc -E [12:27:59.536] checking for x86_64-w64-mingw32-pkg-config... /usr/bin/x86_64-w64-mingw32-pkg-config [12:27:59.537] checking pkg-config is at least version 0.9.0... yes [12:27:59.554] checking whether to build with ICU support... no [12:27:59.554] checking whether to build with Tcl... no [12:27:59.554] checking whether to build Perl modules... no [12:27:59.554] checking whether to build Python modules... no [12:27:59.554] checking whether to build with GSSAPI support... no [12:27:59.555] checking whether to build with PAM support... no [12:27:59.555] checking whether to build with BSD Authentication support... no [12:27:59.556] checking whether to build with LDAP support... no [12:27:59.556] checking whether to build with Bonjour support... no [12:27:59.556] checking whether to build with SELinux support... no [12:27:59.556] checking whether to build with systemd support... no [12:27:59.556] configure: WARNING: *** Readline does not work on MinGW --- disabling [12:27:59.556] checking whether to build with XML support... no [12:27:59.556] checking whether to build with LZ4 support... no [12:27:59.557] checking whether to build with ZSTD support... no [12:27:59.557] checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip [12:27:59.557] checking whether it is possible to strip libraries... yes [12:27:59.564] checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar [12:27:59.565] checking for x86_64-w64-mingw32-windres... x86_64-w64-mingw32-windres [12:27:59.565] checking for a BSD-compatible install... /usr/bin/install -c [12:27:59.573] checking for tar... /usr/bin/tar [12:27:59.574] checking whether ln -s works... yes [12:27:59.574] checking for a thread-safe mkdir -p... /usr/bin/mkdir -p [12:27:59.576] checking for bison... /usr/bin/bison [12:27:59.578] configure: using bison (GNU Bison) 3.8.2 [12:27:59.581] checking for flex... /usr/bin/flex [12:27:59.593] configure: using flex 2.6.4 [12:27:59.593] checking for perl... /usr/bin/perl [12:27:59.596] configure: using perl 5.36.0 [12:27:59.598] checking for zic... /usr/sbin/zic [12:27:59.598] checking for a sed that does not truncate output... /usr/bin/sed [12:27:59.603] checking for grep that handles long lines and -e... /usr/bin/grep [12:27:59.605] checking for egrep... /usr/bin/grep -E [12:27:59.606] checking for ANSI C header files... yes [12:27:59.689] checking for sys/types.h... yes [12:27:59.721] checking for sys/stat.h... yes [12:27:59.736] checking for stdlib.h... yes [12:27:59.750] checking for string.h... yes [12:27:59.783] checking for memory.h... yes [12:27:59.838] checking for strings.h... yes [12:27:59.895] checking for inttypes.h... yes [12:27:59.910] checking for stdint.h... yes [12:27:59.923] checking for unistd.h... yes [12:27:59.987] checking for main in -lm... yes [12:28:00.029] checking for library containing setproctitle... no [12:28:00.108] checking for library containing dlsym... no [12:28:00.187] checking for library containing socket... -lws2_32 [12:28:00.306] checking for library containing getopt_long... none required [12:28:00.352] checking for library containing shm_open... no [12:28:00.437] checking for library containing shm_unlink... no [12:28:00.524] checking for library containing clock_gettime... no [12:28:00.608] checking for library containing shmget... no [12:28:00.690] checking for library containing backtrace_symbols... no [12:28:00.772] checking for library containing pthread_barrier_wait... -lpthread [12:28:00.855] checking for inflate in -lz... yes [12:28:00.902] checking atomic.h usability... no [12:28:00.956] checking atomic.h presence... no [12:28:00.976] checking for atomic.h... no [12:28:00.980] checking copyfile.h usability... no [12:28:01.033] checking copyfile.h presence... no [12:28:01.053] checking for copyfile.h... no [12:28:01.056] checking execinfo.h usability... no [12:28:01.112] checking execinfo.h presence... no [12:28:01.133] checking for execinfo.h... no [12:28:01.136] checking getopt.h usability... yes [12:28:01.144] checking getopt.h presence... yes [12:28:01.160] checking for getopt.h... yes [12:28:01.167] checking ifaddrs.h usability... no [12:28:01.223] checking ifaddrs.h presence... no [12:28:01.242] checking for ifaddrs.h... no [12:28:01.245] checking mbarrier.h usability... no [12:28:01.299] checking mbarrier.h presence... no [12:28:01.318] checking for mbarrier.h... no [12:28:01.322] checking sys/epoll.h usability... no [12:28:01.379] checking sys/epoll.h presence... no [12:28:01.399] checking for sys/epoll.h... no [12:28:01.402] checking sys/event.h usability... no [12:28:01.459] checking sys/event.h presence... no [12:28:01.478] checking for sys/event.h... no [12:28:01.481] checking sys/personality.h usability... no [12:28:01.539] checking sys/personality.h presence... no [12:28:01.558] checking for sys/personality.h... no [12:28:01.562] checking sys/prctl.h usability... no [12:28:01.618] checking sys/prctl.h presence... no [12:28:01.637] checking for sys/prctl.h... no [12:28:01.641] checking sys/procctl.h usability... no [12:28:01.695] checking sys/procctl.h presence... no [12:28:01.715] checking for sys/procctl.h... no [12:28:01.718] checking sys/signalfd.h usability... no [12:28:01.775] checking sys/signalfd.h presence... no [12:28:01.795] checking for sys/signalfd.h... no [12:28:01.799] checking sys/ucred.h usability... no [12:28:01.854] checking sys/ucred.h presence... no [12:28:01.874] checking for sys/ucred.h... no [12:28:01.877] checking termios.h usability... no [12:28:01.931] checking termios.h presence... no [12:28:01.950] checking for termios.h... no [12:28:01.953] checking ucred.h usability... no [12:28:02.008] checking ucred.h presence... no [12:28:02.026] checking for ucred.h... no [12:28:02.029] checking xlocale.h usability... no [12:28:02.081] checking xlocale.h presence... no [12:28:02.100] checking for xlocale.h... no [12:28:02.103] checking zlib.h usability... yes [12:28:02.135] checking zlib.h presence... yes [12:28:02.154] checking for zlib.h... yes [12:28:02.155] checking for lz4... /usr/bin/lz4 [12:28:02.155] checking for zstd... /usr/bin/zstd [12:28:02.155] checking for openssl... /usr/bin/openssl [12:28:02.159] configure: using openssl: OpenSSL 3.0.15 3 Sep 2024 (Library: OpenSSL 3.0.15 3 Sep 2024) [12:28:02.160] checking crtdefs.h usability... yes [12:28:02.168] checking crtdefs.h presence... yes [12:28:02.183] checking for crtdefs.h... yes [12:28:02.184] checking whether byte ordering is bigendian... no [12:28:02.261] checking for inline... inline [12:28:02.279] checking for printf format archetype... gnu_printf [12:28:02.287] checking for _Static_assert... yes [12:28:02.328] checking for typeof... typeof [12:28:02.345] checking for __builtin_types_compatible_p... yes [12:28:02.384] checking for __builtin_constant_p... yes [12:28:02.395] checking for __builtin_mul_overflow... yes [12:28:02.443] checking for __builtin_unreachable... yes [12:28:02.485] checking for computed goto support... yes [12:28:02.493] checking for struct tm.tm_zone... no [12:28:02.568] checking for union semun... no [12:28:02.601] checking for socklen_t... yes [12:28:03.717] checking for struct sockaddr.sa_len... no [12:28:05.592] checking for C/C++ restrict keyword... __restrict [12:28:05.631] checking for struct option... yes [12:28:05.697] checking whether assembler supports x86_64 popcntq... yes [12:28:05.712] checking size of off_t... 4 [12:28:05.969] 0 [12:28:05.969] checking for int timezone... yes [12:28:06.015] checking for backtrace_symbols... no [12:28:06.061] checking for copyfile... no [12:28:06.107] checking for copy_file_range... no [12:28:06.153] checking for elf_aux_info... no [12:28:06.199] checking for getauxval... no [12:28:06.246] checking for getifaddrs... no [12:28:06.293] checking for getpeerucred... no [12:28:06.339] checking for inet_pton... yes [12:28:06.386] checking for kqueue... no [12:28:06.434] checking for mbstowcs_l... no [12:28:06.480] checking for memset_s... no [12:28:06.525] checking for posix_fallocate... no [12:28:06.570] checking for ppoll... no [12:28:06.617] checking for pthread_is_threaded_np... no [12:28:06.664] checking for setproctitle... no [12:28:06.713] checking for setproctitle_fast... no [12:28:06.760] checking for strchrnul... no [12:28:06.805] checking for strsignal... no [12:28:06.850] checking for syncfs... no [12:28:06.895] checking for sync_file_range... no [12:28:06.941] checking for uselocale... no [12:28:06.986] checking for wcstombs_l... no [12:28:07.031] checking for __builtin_bswap16... yes [12:28:07.076] checking for __builtin_bswap32... yes [12:28:07.122] checking for __builtin_bswap64... yes [12:28:07.166] checking for __builtin_clz... yes [12:28:07.209] checking for __builtin_ctz... yes [12:28:07.254] checking for __builtin_popcount... yes [12:28:07.298] checking for __builtin_frame_address... yes [12:28:07.342] checking for _LARGEFILE_SOURCE value needed for large files... no [12:28:07.392] checking how ccache x86_64-w64-mingw32-gcc reports undeclared, standard C functions... error [12:28:07.422] checking for posix_fadvise... no [12:28:07.470] checking whether posix_fadvise is declared... no [12:28:07.512] checking whether fdatasync is declared... no [12:28:07.555] checking whether strlcat is declared... no [12:28:07.616] checking whether strlcpy is declared... no [12:28:07.677] checking whether strnlen is declared... yes [12:28:07.689] checking whether strsep is declared... no [12:28:07.749] checking whether preadv is declared... no [12:28:07.782] checking whether pwritev is declared... no [12:28:07.815] checking whether F_FULLFSYNC is declared... no [12:28:07.853] checking for explicit_bzero... no [12:28:07.898] checking for getopt... yes [12:28:07.940] checking for getpeereid... no [12:28:07.984] checking for inet_aton... no [12:28:08.027] checking for mkdtemp... no [12:28:08.071] checking for strlcat... no [12:28:08.116] checking for strlcpy... no [12:28:08.160] checking for strnlen... yes [12:28:08.204] checking for strsep... no [12:28:08.247] checking for pthread_barrier_wait... yes [12:28:08.290] configure: On mingw32 we will use our strtof wrapper. [12:28:08.290] checking for getopt_long... yes [12:28:08.334] checking for syslog... no [12:28:08.380] checking for opterr... yes [12:28:08.427] checking for optreset... no [12:28:08.478] checking test program... cross-compiling [12:28:08.478] checking size of void *... 8 [12:28:08.782] checking size of size_t... 8 [12:28:09.249] checking size of long... 4 [12:28:09.542] checking size of long long... 8 [12:28:09.907] checking alignment of short... 2 [12:28:10.102] checking alignment of int... 4 [12:28:10.343] checking alignment of long... 4 [12:28:10.621] checking alignment of int64_t... 8 [12:28:11.008] checking alignment of double... 8 [12:28:11.281] checking for __int128... yes [12:28:11.325] checking for __int128 alignment bug... assuming ok [12:28:11.325] checking alignment of PG_INT128_TYPE... 16 [12:28:11.722] checking for builtin __sync char locking functions... yes [12:28:11.760] checking for builtin __sync int32 locking functions... yes [12:28:11.798] checking for builtin __sync int32 atomic operations... yes [12:28:11.837] checking for builtin __sync int64 atomic operations... yes [12:28:11.876] checking for builtin __atomic int32 atomic operations... yes [12:28:11.915] checking for builtin __atomic int64 atomic operations... yes [12:28:11.955] checking for __get_cpuid... yes [12:28:11.997] checking for __get_cpuid_count... yes [12:28:12.037] checking for __cpuid... no [12:28:12.410] checking for __cpuidex... no [12:28:12.815] checking for _xgetbv... yes [12:28:13.194] checking for _mm512_popcnt_epi64... yes [12:28:13.595] checking for _mm_crc32_u8 and _mm_crc32_u32... yes [12:28:13.693] checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... no [12:28:13.717] checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc+simd... no [12:28:13.736] checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... no [12:28:13.754] 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 [12:28:13.805] checking which CRC-32C implementation to use... SSE 4.2 with runtime check [12:28:13.806] checking which random number source to use... Windows native [12:28:13.807] checking for xmllint... /usr/bin/xmllint [12:28:13.808] checking for xsltproc... /usr/bin/xsltproc [12:28:13.808] checking for fop... /usr/bin/fop [12:28:13.808] checking for dbtoepub... no [12:28:13.808] checking whether ccache x86_64-w64-mingw32-gcc supports -Wl,--as-needed, for LDFLAGS... assuming no [12:28:13.808] checking whether ccache x86_64-w64-mingw32-gcc supports -Wl,--export-dynamic, for LDFLAGS_EX_BE... assuming no [12:28:13.808] checking whether ccache x86_64-w64-mingw32-gcc supports -Wl,-export_dynamic, for LDFLAGS_EX_BE... assuming no [12:28:13.818] configure: using compiler=x86_64-w64-mingw32-gcc (GCC) 12-win32 [12:28:13.818] 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 [12:28:13.818] configure: using CPPFLAGS= -D_POSIX_C_SOURCE -I./src/include/port/win32 [12:28:13.818] configure: using LDFLAGS= -Wl,--allow-multiple-definition -Wl,--disable-auto-import [12:28:13.898] configure: creating ./config.status [12:28:13.979] config.status: creating GNUmakefile [12:28:13.991] config.status: creating src/Makefile.global [12:28:14.005] config.status: creating src/include/pg_config.h [12:28:14.018] config.status: creating src/interfaces/ecpg/include/ecpg_config.h [12:28:14.033] config.status: linking src/backend/port/tas/dummy.s to src/backend/port/tas.s [12:28:14.040] config.status: linking src/backend/port/win32_sema.c to src/backend/port/pg_sema.c [12:28:14.047] config.status: linking src/backend/port/win32_shmem.c to src/backend/port/pg_shmem.c [12:28:14.054] config.status: linking src/include/port/win32.h to src/include/pg_config_os.h [12:28:14.061] config.status: linking src/makefiles/Makefile.win32 to src/Makefile.port [12:28:14.064] config.status: executing check_win32_symlinks commands [12:28:14.096] [12:28:14.096] real 0m16.506s [12:28:14.096] user 0m10.840s [12:28:14.096] sys 0m5.173s [12:28:14.096] make -s -j${BUILD_JOBS} clean [12:28:14.598] time make -s -j${BUILD_JOBS} world-bin [12:30:38.253] In file included from ../../../../src/include/postgres.h:45, [12:30:38.253] from smgr.c:52: [12:30:38.253] smgr.c: In function ‘smgrtruncate’: [12:30:38.253] smgr.c:733:16: error: ‘CritSectionCount’ undeclared (first use in this function) [12:30:38.253] 733 | Assert(CritSectionCount == 0); [12:30:38.253] | ^~~~~~~~~~~~~~~~ [12:30:38.253] ../../../../src/include/c.h:829:23: note: in definition of macro ‘Assert’ [12:30:38.253] 829 | if (!(condition)) \ [12:30:38.253] | ^~~~~~~~~ [12:30:38.253] smgr.c:733:16: note: each undeclared identifier is reported only once for each function it appears in [12:30:38.253] 733 | Assert(CritSectionCount == 0); [12:30:38.253] | ^~~~~~~~~~~~~~~~ [12:30:38.253] ../../../../src/include/c.h:829:23: note: in definition of macro ‘Assert’ [12:30:38.253] 829 | if (!(condition)) \ [12:30:38.253] | ^~~~~~~~~ [12:30:38.254] make[4]: *** [: smgr.o] Error 1 [12:30:38.254] make[3]: *** [../../../src/backend/common.mk:37: smgr-recursive] Error 2 [12:30:38.254] make[2]: *** [common.mk:37: storage-recursive] Error 2 [12:30:38.254] make[2]: *** Waiting for unfinished jobs.... [12:31:08.432] make[1]: *** [Makefile:42: all-backend-recurse] Error 2 [12:31:08.433] make: *** [GNUmakefile:21: world-bin-src-recurse] Error 2 [12:31:08.433] [12:31:08.433] real 2m53.835s [12:31:08.433] user 9m34.283s [12:31:08.433] sys 1m44.930s [12:31:08.433] [12:31:08.433] Exit status: 2