msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.29k stars 1.22k forks source link

Emacs Master fails build on Msys2-MingW64 #14573

Closed loreno-heer closed 1 year ago

loreno-heer commented 1 year ago

This issue appears since updating the packages recently on msys2.

$ make bootstrap NATIVE_FULL_AOT=1 -j$(nproc)
make actual-bootstrap || make advice-on-failure make-target=bootstrap exit-status=$?
make[1]: Entering directory '/home/User/src/emacs'
make bootstrap-clean
make[2]: Entering directory '/home/User/src/emacs'
make -C src bootstrap-clean
make -C oldXMenu bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/oldXMenu'
rm -f libXMenu11.a ./*.o deps/*
rm -f Makefile
rm -fr deps
make[3]: Leaving directory '/home/User/src/emacs/oldXMenu'
make -C lwlib bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/lwlib'
rm -f ./*.o liblw.a \#* deps/*
rm -f Makefile
rm -fr deps
rm -f TAGS
make[3]: Entering directory '/home/User/src/emacs/src'
rm -f temacs.exe core ./*.core \#* ./*.o
make[3]: Leaving directory '/home/User/src/emacs/lwlib'
make -C lib bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/lib'
rm -f ./*.[ao] ./*/*.o ./*-t \#* deps/*.d deps/*/*.d
rm -f dmpstruct.h
rm -f emacs.pdmp
rm -f ../etc/DOC
rm -f core *.stackdump alloca.h assert.h byteswap.h errno.h execinfo.h getopt.h getopt-cdefs.h malloc/dynarray.gl.h malloc/dynarray-skeleton.gl.h ieee754.h gmp.h limits.h stdalign.h stdckdint.h stddef.h stdint.h string.h sys/random.h time.h
rm -f bootstrap-emacs.exe bootstrap-emacs.pdmp
rm -f emacs-30.0.50.exe
rm -f buildobj.h
rm -f Makefile
rm -fr deps
rm -f globals.h gl-stamp
rm -f ./*.res ./*.tmp
make[3]: Leaving directory '/home/User/src/emacs/lib'
rm -f emacs.exe emacs-*.*.*[0-9].exe emacs-*.*.*[0-9].pdmp
make -C lib-src bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/lib-src'
rm -f core ./*.o ./*.res
rm -f ../etc/DOC*
rm -f seccomp-filter.bpf seccomp-filter.pfc seccomp-filter-exec.bpf seccomp-filter-exec.pfc
rm -f deps/*
rm -f etags.exe ctags.exe emacsclient.exe emacsclientw.exe ebrowse.exe hexl.exe  movemail.exe  make-docfile.exe make-fingerprint.exe
rm -f TAGS Makefile blessmail
make[3]: Leaving directory '/home/User/src/emacs/lib-src'
make -C nt bootstrap-clean
rm -f emacs-module.h epaths.h config.h config.stamp
make[3]: Entering directory '/home/User/src/emacs/nt'
rm -f core *.o *.res
if test -f ./.gdbinit; then \
  mv ./.gdbinit ./.gdbinit.save; \
  if test -f "./.gdbinit"; then rm -f ./.gdbinit.save; \
  else mv ./.gdbinit.save ./.gdbinit; fi; \
fi
rm -f runemacs.exe addpm.exe cmdproxy.exe ddeclient.exe
rm -f TAGS Makefile *.rc
make[3]: Leaving directory '/home/User/src/emacs/src'
make -C doc/emacs bootstrap-clean
true
make[3]: Entering directory '/home/User/src/emacs/doc/emacs'
rm -f ./*.aux ./*.log ./*.toc ./*.cp ./*.cps ./*.fn ./*.fns ./*.ky ./*.kys \
  ./*.op ./*.ops ./*.pg ./*.pgs ./*.tp ./*.tps ./*.vr ./*.vrs
make[3]: Leaving directory '/home/User/src/emacs/nt'
make -C doc/misc bootstrap-clean
rm -f \
  ./../../info/emacs.info \
  ./../../info/emacs.info-[1-9] \
  ./../../info/emacs.info-[1-9][0-9]
make[3]: Entering directory '/home/User/src/emacs/doc/misc'
rm -f ./*.aux ./*.log ./*.toc ./*.c[mp] ./*.c[mp]s ./*.fn ./*.fns \
  ./*.ky ./*.kys ./*.op ./*.ops ./*.p[gj] ./*.p[gj]s ./*.sc ./*.scs ./*.ss \
  ./*.t[gp] ./*.t[gp]s ./*.vr ./*.vrs
rm -f emacs.dvi emacs-xtra.dvi emacs.html emacs.pdf emacs-xtra.pdf emacs.ps emacs-xtra.ps
rm -f gnustmp*
rm -f Makefile
rm -f ./emacsver.texi TAGS
make[3]: Leaving directory '/home/User/src/emacs/doc/emacs'
make -C doc/lispref bootstrap-clean
for file in auth autotype bovine calc ccmode cl dbus dired-x ebrowse ede ediff edt efaq eglot eieio emacs-gnutls emacs-mime epa erc ert eshell eudc eww flymake forms gnus htmlfontify idlwave ido info.info mairix-el message mh-e modus-themes newsticker nxml-mode octave-mode org pcl-cvs pgg rcirc reftex remember sasl sc semantic ses sieve smtpmail speedbar srecode todo-mode tramp transient url use-package vhdl-mode vip viper vtable widget wisent woman efaq-w32; do \
  file=`echo ${file} | sed 's/\.info$//'`.info; \
  rm -f \
    ./../../info/${file} \
    ./../../info/${file}-[1-9] \
    ./../../info/${file}-[1-9][0-9]; \
done
make[3]: Entering directory '/home/User/src/emacs/doc/lispref'
rm -f ./*.aux ./*.log ./*.toc ./*.cp ./*.cps ./*.fn ./*.fns ./*.ky ./*.kys \
  ./*.op ./*.ops ./*.pg ./*.pgs ./*.tp ./*.tps ./*.vr ./*.vrs
rm -f elisp[12]* vol[12].tmp
rm -f \
  ./../../info/elisp.info \
  ./../../info/elisp.info-[1-9] \
  ./../../info/elisp.info-[1-9][0-9]
rm -f elisp.dvi elisp.html elisp.pdf elisp.ps
rm -f vol[12].dvi vol[12].pdf vol[12].ps
rm -f Makefile
rm -f TAGS
make[3]: Leaving directory '/home/User/src/emacs/doc/lispref'
make -C doc/lispintro bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/doc/lispintro'
rm -f ./*.aux ./*.log ./*.toc ./*.cp ./*.cps ./*.fn ./*.fns ./*.ky ./*.kys \
  ./*.op ./*.ops ./*.pg ./*.pgs ./*.tp ./*.tps ./*.vr ./*.vrs
rm -f \
  ./../../info/eintr.info \
  ./../../info/eintr.info-[1-9]
rm -f emacs-lisp-intro.dvi eintr.html emacs-lisp-intro.pdf emacs-lisp-intro.ps
rm -f Makefile
rm -f TAGS
make[3]: Leaving directory '/home/User/src/emacs/doc/lispintro'
make -C test bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/test'
find . '(' -name '*.log' -o -name '*.log~' ')' -delete
find . '(' -name '*.xml' -a ! -path '*resources*' ')' -delete
rm -f ./lisp/gnus/mml-sec-resources/random_seed
rm -f src/emacs-module-resources/*.o src/emacs-module-resources/*.so \
  src/emacs-module-resources/*.dll gmp.h
find . -name '*.elc' -delete
make[3]: Leaving directory '/home/User/src/emacs/test'
make -C nextstep bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/nextstep'
rm -rf
rm -f Makefile
rm -f GNUstep/Emacs.base/Resources/Info-gnustep.plist \
  GNUstep/Emacs.base/Resources/Emacs.desktop \
  Cocoa/Emacs.base/Contents/Info.plist \
  Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings
make[3]: Leaving directory '/home/User/src/emacs/nextstep'
make -C admin/charsets bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/admin/charsets'
make[3]: Nothing to be done for 'bootstrap-clean'.
make[3]: Leaving directory '/home/User/src/emacs/admin/charsets'
make -C admin/unidata bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/admin/unidata'
rm -f ./*.elc unidata.txt
make[3]: Leaving directory '/home/User/src/emacs/admin/unidata'
rm -f ./modus-themes.texi ./org.texi
make -C leim bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/leim'
rm -f ./../lisp/leim/quail/CCDOSPY.el ./../lisp/leim/quail/Punct.el ./../lisp/leim/quail/QJ.el ./../lisp/leim/quail/SW.el ./../lisp/leim/quail/TONEPY.el ./../lisp/leim/quail/4Corner.el ./../lisp/leim/quail/ARRAY30.el ./../lisp/leim/quail/ECDICT.el ./../lisp/leim/quail/ETZY.el ./../lisp/leim/quail/Punct-b5.el ./../lisp/leim/quail/PY-b5.el ./../lisp/leim/quail/QJ-b5.el ./../lisp/leim/quail/ZOZY.el ./../lisp/leim/quail/tsang-b5.el ./../lisp/leim/quail/quick-b5.el ./../lisp/leim/quail/tsang-cns.el ./../lisp/leim/quail/quick-cns.el ./../lisp/leim/quail/PY.el ./../lisp/leim/quail/ZIRANMA.el ./../lisp/leim/quail/CTLau.el ./../lisp/leim/quail/CTLau-b5.el ./../lisp/language/pinyin.el ./../lisp/leim/leim-list.el
make[3]: Leaving directory '/home/User/src/emacs/leim'
rm -f ./*.dvi ./*.html ./*.pdf ./*.ps
make -C lisp bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/lisp'
find . -name '*.elc' -delete
rm -f  ./cus-load.el ./finder-inf.el ./subdirs.el ./eshell/esh-groups.el
make[3]: Leaving directory '/home/User/src/emacs/lisp'
make -C admin/grammars bootstrap-clean
make[3]: Entering directory '/home/User/src/emacs/admin/grammars'
make[3]: Nothing to be done for 'bootstrap-clean'.
make[3]: Leaving directory '/home/User/src/emacs/admin/grammars'
rm -f Makefile
rm -f TAGS
make[3]: Leaving directory '/home/User/src/emacs/doc/misc'
[ ! -f config.log ] || mv -f config.log config.log~
rm -rf ./info
rm -f ./etc/refcards/emacsver.tex
rm -rf native-lisp/ lisp/leim/ja-dic/
rm -fr autom4te.cache config.cache
rm -f config.log ./doc/man/emacs.1
make[2]: Leaving directory '/home/User/src/emacs'
cd . && ./autogen.sh autoconf
Checking whether you have the necessary tools...
(Read INSTALL.REPO for more details on building Emacs)
Checking for autoconf (need at least version 2.65) ... ok
Your system has the required tools.
Running 'autoreconf -fi -I m4' ...
You can now run './configure'.
make MAKEFILE_NAME=force-Makefile force-Makefile
make[2]: Entering directory '/home/User/src/emacs'
make[3]: *** No rule to make target 'echo-sources'.  Stop.
if [ -x ./config.status ]; then \
     ./config.status --recheck; \
else                            \
     ./configure --cache-file=/dev/null; \
fi
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --with-native-compilation=aot --with-json --without-pop CFLAGS=-O2 -march=native -mtune=native --prefix=/home/User/emacs-master-x86_64-full PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig --no-create --no-recursion
configure: loading site script /etc/config.site
checking for xcrun... no
checking for GNU Make... make
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking the compiler's target... x86_64-w64-mingw32
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether the compiler is clang... no
checking for compiler option needed when checking for declarations... none
checking whether gcc and cc understand -c and -o together... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for linux/fs.h... no
checking for malloc.h... yes
checking for sys/systeminfo.h... no
checking for sys/sysinfo.h... no
checking for coff.h... no
checking for pty.h... no
checking for sys/resource.h... yes
checking for sys/utsname.h... no
checking for pwd.h... yes
checking for utmp.h... no
checking for util.h... no
checking for sanitizer/lsan_interface.h... no
checking for sys/socket.h... yes
checking for sys/param.h... yes
checking for pthread.h... (cached) no
checking for malloc/malloc.h... no
checking for sys/un.h... no
checking for vfork.h... no
checking for dirent.h... yes
checking for execinfo.h... no
checking for stdio_ext.h... no
checking for sys/vfs.h... no
checking for sys/fs_types.h... no
checking for getopt.h... (cached) no
checking for sys/cdefs.h... yes
checking for sys/time.h... yes
checking for ieee754.h... no
checking for limits.h... yes
checking for sys/select.h... no
checking for stdalign.h... yes
checking for stdbool.h... yes
checking for stdckdint.h... no
checking for sys/random.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking how to run the C preprocessor... gcc -I ./nt/inc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for time_t past the year 2038... yes
checking whether the compiler is clang... no
checking whether C compiler handles -Werror -Wunknown-warning-option... no
checking whether -Wno-missing-field-initializers is supported... yes
checking whether -Wno-missing-field-initializers is needed... no
checking whether -Wuninitialized is supported... yes
checking whether C compiler handles -fno-common... yes
checking whether C compiler handles -Wall... yes
checking whether C compiler handles -Warith-conversion... yes
checking whether C compiler handles -Wdate-time... yes
checking whether C compiler handles -Wdisabled-optimization... yes
checking whether C compiler handles -Wdouble-promotion... yes
checking whether C compiler handles -Wduplicated-cond... yes
checking whether C compiler handles -Wextra... yes
checking whether C compiler handles -Wformat-signedness... yes
checking whether C compiler handles -Winit-self... yes
checking whether C compiler handles -Winvalid-pch... yes
checking whether C compiler handles -Wlogical-op... yes
checking whether C compiler handles -Wmissing-declarations... yes
checking whether C compiler handles -Wmissing-include-dirs... yes
checking whether C compiler handles -Wmissing-prototypes... yes
checking whether C compiler handles -Wnested-externs... yes
checking whether C compiler handles -Wnull-dereference... yes
checking whether C compiler handles -Wold-style-definition... yes
checking whether C compiler handles -Wopenmp-simd... yes
checking whether C compiler handles -Wpacked... yes
checking whether C compiler handles -Wpointer-arith... yes
checking whether C compiler handles -Wstrict-prototypes... yes
checking whether C compiler handles -Wsuggest-attribute=noreturn... yes
checking whether C compiler handles -Wsuggest-final-methods... yes
checking whether C compiler handles -Wsuggest-final-types... yes
checking whether C compiler handles -Wtrampolines... yes
checking whether C compiler handles -Wuninitialized... yes
checking whether C compiler handles -Wunknown-pragmas... yes
checking whether C compiler handles -Wunused-macros... yes
checking whether C compiler handles -Wvariadic-macros... yes
checking whether C compiler handles -Wvector-operation-performance... yes
checking whether C compiler handles -Wwrite-strings... yes
checking whether C compiler handles -Warray-bounds=2... yes
checking whether C compiler handles -Wattribute-alias=2... yes
checking whether C compiler handles -Wformat=2... yes
checking whether C compiler handles -Wformat-truncation=2... yes
checking whether C compiler handles -Wimplicit-fallthrough=5... yes
checking whether C compiler handles -Wshift-overflow=2... yes
checking whether C compiler handles -Wuse-after-free=3... yes
checking whether C compiler handles -Wvla-larger-than=4031... yes
checking whether C compiler handles -Wredundant-decls... (cached) no
checking whether C compiler handles -Wno-missing-field-initializers... yes
checking whether C compiler handles -Wno-override-init... yes
checking whether C compiler handles -Wno-sign-compare... yes
checking whether C compiler handles -Wno-type-limits... yes
checking whether C compiler handles -Wno-unused-parameter... yes
checking whether C compiler handles -Wno-format-nonliteral... yes
checking whether C compiler handles -Wno-bidi-chars... yes
checking whether C compiler handles -Wno-pointer-sign... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking command to symlink files in the same directory... /bin/ln
checking for install-info... /usr/bin/install-info
checking for gzip... /usr/bin/gzip
checking for 'find' args to delete a file... -delete
checking for brew... no
checking for -znocombreloc... not needed
checking whether addresses are sanitized... no
checking for math library... none required
checking for pkg-config... /mingw64/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for machine/soundcard.h... no
checking for sys/soundcard.h... no
checking for soundcard.h... no
checking for mmsystem.h... yes
checking for _oss_ioctl in -lossaudio... no
checking for alsa >= 1.0.0... no
checking for ADDR_NO_RANDOMIZE... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for net/if.h... no
checking for ifaddrs.h... no
checking for net/if_dl.h... no
checking for struct ifreq.ifr_flags... no
checking for struct ifreq.ifr_hwaddr... no
checking for struct ifreq.ifr_netmask... no
checking for struct ifreq.ifr_broadaddr... no
checking for struct ifreq.ifr_addr... no
checking for struct ifreq.ifr_addr.sa_len... no
checking whether gcc understands -MMD -MF... yes
checking for X... no
checking whether Windows API headers are recent enough... yes
checking for windres... windres
checking whether malloc is Doug Lea style... no
checking for sbrk... (cached) yes
checking for getpagesize... yes
checking for __lsan_ignore_object... no
checking for fork... no
checking for vfork... no
checking for fchmod... no
checking for canonicalize_file_name... (cached) yes
checking for faccessat... (cached) yes
checking for realpath... (cached) yes
checking for lstat... (cached) yes
checking for readlinkat... (cached) yes
checking for explicit_bzero... (cached) yes
checking for memset_s... no
checking for fchmodat... (cached) yes
checking for lchmod... (cached) yes
checking for fcntl... (cached) yes
checking for fdopendir... (cached) not-needed
checking for fstatat... (cached) yes
checking for fsync... (cached) yes
checking for futimens... (cached) not-needed
checking for getrandom... no
checking for gettimeofday... yes
checking for mkostemp... no
checking for pipe2... (cached) yes
checking for pselect... (cached) yes
checking for pthread_sigmask... (cached) yes
checking for readlink... (cached) yes
checking for isblank... yes
checking for iswctype... yes
checking for strtoimax... yes
checking for symlink... (cached) yes
checking for localtime_r... no
checking for timegm... no
checking for utimensat... (cached) yes
checking for getdtablesize... no
checking for futimes... no
checking for futimesat... no
checking for lutimes... no
checking for working mmap... no
checking for main in -lXbsd... no
checking for thread support... yes
checking for librsvg-2.0 >= 2.14.0... yes
checking for libwebpdemux >= 0.6.0... yes
checking for sqlite3_open_v2 in -lsqlite3... yes
checking for sqlite3_load_extension in -lsqlite3... yes
checking for getaddrinfo_a in -lanl... no
checking for malloc_trim... no
checking for dbus-1 >= 1.0... no
checking for lgetfilecon in -lselinux... no
checking for gnutls >= 2.12.2... yes
checking for libsystemd >= 222... no
checking for jansson >= 2.7... yes
checking for tree-sitter >= 0.20.2... no
checking for tree-sitter >= 0.6.3... no
checking for windows.h... yes
checking for harfbuzz >= 1.2.3... yes
checking for X11/xpm.h... yes
checking for jpeglib 6b or later... -ljpeg
checking for lcms2... yes
checking for library containing inflateEnd... -lz
checking for dladdr... no
checking for dlfunc... no
checking for gcc_jit_context_acquire in -lgccjit... yes
checking for libgccjit.h... yes
checking for png.h... yes
checking whether png_longjmp is declared... yes
checking for tiffio.h... yes
checking for gif_lib.h... yes
checking for gpm.h... no
checking for libxml-2.0 > 2.6.17... yes
checking for maillock in -lmail... no
checking for maillock in -llockfile... no
checking for liblockfile.so... no
checking for maillock.h... no
checking for linux/seccomp.h... no
checking for linux/filter.h... no
checking for libseccomp >= 2.5.2... no
checking size of long... 4
checking for accept4... no
checking for fchdir... no
checking for gethostname... (cached) yes
checking for getrusage... no
checking for get_current_dir_name... no
checking for lrand48... no
checking for random... (cached) yes
checking for rint... yes
checking for trunc... yes
checking for select... (cached) yes
checking for getpagesize... (cached) yes
checking for setlocale... yes
checking for newlocale... no
checking for getrlimit... (cached) yes
checking for setrlimit... (cached) yes
checking for shutdown... (cached) yes
checking for pthread_sigmask... (cached) yes
checking for strsignal... (cached) no
checking for setitimer... (cached) yes
checking for sendto... (cached) yes
checking for recvfrom... (cached) yes
checking for getsockname... (cached) yes
checking for getifaddrs... no
checking for freeifaddrs... no
checking for gai_strerror... (cached) yes
checking for sync... no
checking for getpwent... no
checking for endpwent... no
checking for getgrent... no
checking for endgrent... no
checking for cfmakeraw... no
checking for cfsetspeed... no
checking for __executable_start... no
checking for log2... yes
checking for pthread_setname_np... yes
checking for pthread_set_name_np... no
checking whether pthread_setname_np takes a single argument... no
checking whether pthread_setname_np takes three arguments... no
checking for aligned_alloc... no
checking for posix_memalign... no
checking whether aligned_alloc is declared... no
checking for posix_madvise... no
checking for __builtin_frame_address... yes
checking for __builtin_unwind_init... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for grantpt... no
checking for getpt... no
checking for posix_openpt... no
checking for library containing tputs... none required
checking for timerfd interface... no
checking whether signals can be handled on alternate stack... no
checking for valgrind/valgrind.h... no
checking for struct unipair.unicode... no
checking for pid_t... yes
checking for snprintf... yes
checking for spawn.h... no
checking for posix_spawn... no
checking for posix_spawn_file_actions_addchdir... no
checking for posix_spawn_file_actions_addchdir_np... no
checking for posix_spawnattr_setflags... no
checking whether POSIX_SPAWN_SETSID is declared... no
checking whether GLib is linked in... no
checking for nl_langinfo and CODESET... (cached) yes
checking for nl_langinfo and _NL_PAPER_WIDTH... (cached) yes
checking for mbstate_t... yes
checking for _setjmp... no
checking for sigsetjmp... no
checking POSIX termios... no
checking for usable FIONREAD... yes
checking for usable SIGIO... no
checking for usable SIGPOLL... no
checking for struct alignment... yes
checking for typeof syntax and keyword spelling... typeof
checking for statement expressions... yes
checking whether malloc (0) returns nonnull... yes
checking for working alloca.h... no
checking for alloca... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking whether the preprocessor supports include_next... yes
checking whether source code line length is unlimited... yes
checking whether lstat correctly handles trailing slash... (cached) yes
checking whether // is distinct from /... yes
checking whether realpath works... (cached) yes
checking for C/C++ restrict keyword... __restrict__
checking whether byte ordering is bigendian... no
checking if environ is properly declared... yes
checking for complete errno.h... no
checking for EMULTIHOP value... no
checking for ENOLINK value... yes
checking for EOVERFLOW value... yes
checking whether ctype.h defines __header_inline... no
checking for mode_t... yes
checking whether strmode is declared... no
checking for gawk... gawk
checking for getopt.h... (cached) no
checking for timespec_get... no
checking for struct timeval... yes
checking for wide-enough struct timeval.tv_sec member... (cached) yes
checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... no
checking whether the compiler produces multi-arch binaries... no
checking whether stdint.h conforms to C99... yes
checking whether stdint.h works without ISO C predefines... yes
checking whether stdint.h has UINTMAX_WIDTH etc.... no
checking for 64-bit off_t... yes
checking for 64-bit st_size... no
checking whether memmem is declared... no
checking whether memrchr is declared... no
checking whether <limits.h> defines MIN and MAX... no
checking whether <sys/param.h> defines MIN and MAX... no
checking whether time_t is signed... yes
checking whether alarm is declared... (cached) yes
checking for working mktime... (cached) yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... no
checking whether tzname is declared... yes
checking for tzname... yes
checking for struct tm.tm_gmtoff... no
checking whether <sys/select.h> is self-contained... no
checking for inline... inline
checking for sigset_t... no
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking for wchar_t... yes
checking for good max_align_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether fcloseall is declared... yes
checking which flavor of printf attribute matches inttypes macros... gnu
checking whether ecvt is declared... yes
checking whether fcvt is declared... yes
checking whether gcvt is declared... yes
checking whether strnlen is declared... yes
checking whether strtoimax is declared... yes
checking whether stat file-mode macros are broken... no
checking for nlink_t... no
checking for struct timespec in <time.h>... yes
checking for TIME_UTC in <time.h>... no
checking whether execvpe is declared... no
checking whether clearerr_unlocked is declared... no
checking whether feof_unlocked is declared... no
checking whether ferror_unlocked is declared... no
checking whether fflush_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getc_unlocked is declared... no
checking whether getchar_unlocked is declared... no
checking whether putc_unlocked is declared... no
checking whether putchar_unlocked is declared... no
checking type of array argument to getgroups... int
checking whether getdtablesize is declared... no
checking whether malloc is ptrdiff_t safe... yes
checking whether malloc, realloc, calloc set errno on failure... no
checking for O_CLOEXEC... no
checking for promoted mode_t type... int
checking whether the utimes function works... no
checking for C compiler option to allow warnings... -Wno-error
checking for sys/acl.h... yes
checking for library containing acl_get_file... (cached) none required
checking for acl_get_file... (cached) yes
checking for acl_get_fd... no
checking for acl_set_file... (cached) yes
checking for acl_set_fd... no
checking for acl_free... (cached) yes
checking for acl_from_mode... no
checking for acl_from_text... (cached) yes
checking for acl_delete_def_file... no
checking for acl_extended_file... no
checking for acl_delete_fd_np... no
checking for acl_delete_file_np... no
checking for acl_copy_ext_native... no
checking for acl_create_entry_np... no
checking for acl_to_short_text... no
checking for acl_free_text... no
checking for working acl_get_file... (cached) yes
checking for acl/libacl.h... no
checking for acl_entries... no
checking for ACL_FIRST_ENTRY... no
checking for ACL_TYPE_EXTENDED... no
checking for static_assert... yes, an <assert.h> macro
checking for __builtin_expect... yes
checking for byteswap.h... no
checking for library containing clock_gettime... (cached) none required
checking for clock_getres... yes
checking for clock_gettime... (cached) no
checking for clock_settime... (cached) no
checking for copy_file_range... (cached) yes
checking for d_type member in directory struct... no
checking whether // is distinct from /... (cached) yes
checking whether dup2 works... (cached) yes
checking whether fchmodat works... (cached) not-needed-so-yes
checking whether fcntl handles F_DUPFD correctly... (cached) yes
checking whether fcntl understands F_DUPFD_CLOEXEC... (cached) yes
checking whether fdopendir is declared... no
checking whether fdopendir works... (cached) no-but-not-needed-so-yes
checking for getxattr with XATTR_NAME_POSIX_ACL macros... no
checking for flexible array member... yes
checking for __fpending... no
checking whether free is known to preserve errno... (cached) yes
checking whether fstatat (..., 0) works... (cached) yes
checking for sys/mount.h... no
checking for statvfs function (SVR4)... no
checking for two-argument statfs with statfs.f_frsize member... no
checking for 3-argument statfs function (DEC OSF/1)... no
checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... no
checking for four-argument statfs (SVR3)... no
checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... no
checking whether futimens works... (cached) not-needed-so-yes
checking for getloadavg... (cached) yes
checking for sys/loadavg.h... no
checking whether getloadavg is declared... no
checking for bcrypt.h... yes
checking whether the bcrypt library is guaranteed to be present... (cached) no
checking for gettimeofday with POSIX signature... yes
checking whether the compiler supports the __inline keyword... yes
checking for gmp.h... yes
checking for library containing __gmpz_roinit_n... -lgmp
checking for memmem... no
checking for mempcpy... yes
checking for memrchr... no
checking for library containing nanosleep... none required
checking for working nanosleep... (cached) yes
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/param.h... (cached) yes
checking for sys/sysctl.h... no
checking for sched_getaffinity... no
checking for sched_getaffinity_np... no
checking for pstat_getdynamic... no
checking for sysmp... no
checking for sysctl... no
checking whether signature of pselect conforms to POSIX... (cached) yes
checking whether pselect detects invalid fds... (cached) yes
checking whether pthread_sigmask is a macro... (cached) no
checking whether pthread_sigmask works without -lpthread... yes
checking whether pthread_sigmask returns error numbers... (cached) yes
checking whether pthread_sigmask unblocks signals correctly... (cached) not relevant
checking whether readlink signature is correct... yes
checking whether readlink handles trailing slash correctly... (cached) yes
checking whether readlink truncates results correctly... (cached) yes
checking whether readlinkat signature is correct... yes
checking for working re_compile_pattern... no
checking for libintl.h... yes
checking whether isblank is declared... yes
checking for sig2str... no
checking for sigdescr_np... no
checking for socklen_t... yes
checking for ssize_t... yes
checking for struct stat.st_atim.tv_nsec... no
checking for struct stat.st_atimespec.tv_nsec... no
checking for struct stat.st_atimensec... no
checking for struct stat.st_atim.st__tim.tv_nsec... no
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking for alignas and alignof... yes, <stdalign.h> macros
checking for bool, true, false... no
checking for stpcpy... no
checking for working strnlen... yes
checking whether strtoimax works... yes
checking whether symlink handles trailing slash correctly... (cached) yes
checking whether localtime_r is declared... no
checking whether localtime_r exists as an inline function... no
checking whether localtime works even near extrema... yes
checking for timezone_t... no
checking whether timer_settime is declared... no
checking whether utimensat works... (cached) yes
checking for variable-length arrays... yes
checking for __mktime_internal... no
checking for timer_getoverrun... no
checking for gcc  option to disable position independent executables... not needed

Configured for 'x86_64-w64-mingw32'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc  -O2 -march=native -mtune=native
  Should Emacs use the GNU version of malloc?             no
    (The GNU allocators don't work with this system configuration.)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         yes
  What window system should Emacs use?                    w32
  What toolkit should Emacs use?                          none
  Where do we find X Windows header files?                NONE
  Where do we find X Windows libraries?                   NONE
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes
  Does Emacs use a png library?                           yes
  Does Emacs use -lrsvg-2?                                yes
  Does Emacs use -lwebp?                                  yes
  Does Emacs use -lsqlite3?                               yes
  Does Emacs use cairo?                                   no
  Does Emacs use -llcms2?                                 yes
  Does Emacs use imagemagick?                             no
  Does Emacs use native APIs for images?                  yes (w32)
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  no
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               no
  Does Emacs use a file notification library?             yes (w32)
  Does Emacs use access control lists?                    yes
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                yes
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              no
  Does Emacs use HarfBuzz?                                yes
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   no
  Does Emacs use -lsystemd?                               no
  Does Emacs use -ljansson?                               yes
  Does Emacs use -ltree-sitter?                           no
  Does Emacs use the GMP library?                         yes
  Does Emacs directly use zlib?                           yes
  Does Emacs have dynamic modules support?                yes
  Does Emacs use toolkit scroll bars?                     yes
  Does Emacs support Xwidgets?                            no
  Does Emacs have threading support in lisp?              yes
  Does Emacs support the portable dumper?                 yes
  Does Emacs support legacy unexec dumping?               no
  Which dumping strategy does Emacs use?                  pdumper
  Does Emacs have native lisp compiler?                   yes
  Does Emacs use version 2 of the X Input Extension?      no
  Does Emacs generate a smaller-size Japanese dictionary? no

configure: creating ./config.status
MAKE='make' ./config.status
config.status: creating src/verbose.mk
config.status: creating nt/emacs.rc
config.status: creating nt/emacsclient.rc
config.status: creating src/emacs-module.h
config.status: creating Makefile
config.status: creating lib/gnulib.mk
config.status: creating ./doc/man/emacs.1
config.status: creating lib/Makefile
config.status: creating lib-src/Makefile
config.status: creating oldXMenu/Makefile
config.status: creating doc/emacs/Makefile
config.status: creating doc/misc/Makefile
config.status: creating doc/lispintro/Makefile
config.status: creating doc/lispref/Makefile
config.status: creating src/Makefile
config.status: creating lwlib/Makefile
config.status: creating lisp/Makefile
config.status: creating leim/Makefile
config.status: creating nextstep/Makefile
config.status: creating nt/Makefile
config.status: creating test/Makefile
config.status: creating test/manual/noverlay/Makefile
config.status: creating test/infra/Makefile
config.status: creating admin/charsets/Makefile
config.status: creating admin/unidata/Makefile
config.status: creating admin/grammars/Makefile
config.status: creating src/config.h
config.status: executing src/epaths.h commands
make[3]: Entering directory '/home/User/src/emacs'
make[3]: Leaving directory '/home/User/src/emacs'
config.status: executing src/.gdbinit commands
config.status: executing doc/emacs/emacsver.texi commands
config.status: executing etc-refcards-emacsver.tex commands
make[2]: Leaving directory '/home/User/src/emacs'
make actual-all
make[2]: Entering directory '/home/User/src/emacs'
make -C lib all
make -C doc/lispref info
make[3]: Entering directory '/home/User/src/emacs/lib'
  GEN      alloca.h
make[3]: Entering directory '/home/User/src/emacs/doc/lispref'
/usr/bin/mkdir -p ../../info
  GEN      byteswap.h
  GEN      ../../info/elisp.info
  GEN      errno.h
  GEN      execinfo.h
  GEN      getopt.h
  GEN      getopt-cdefs.h
  GEN      malloc/dynarray.gl.h
  GEN      malloc/dynarray-skeleton.gl.h
  GEN      ieee754.h
  GEN      limits.h
  GEN      stdckdint.h
  GEN      stdint.h
  GEN      string.h
  GEN      sys/random.h
  GEN      time.h
  CC       fingerprint.o
  CC       acl_entries.o
  CC       memmem.o
  CC       mktime.o
  CC       binary-io.o
  CC       c-ctype.o
  CC       c-strcasecmp.o
  CC       c-strncasecmp.o
  CC       close-stream.o
  CC       count-leading-zeros.o
  CC       count-one-bits.o
  CC       count-trailing-zeros.o
  CC       md5-stream.o
  CC       md5.o
  CC       sha1.o
  CC       sha256.o
  CC       sha512.o
  CC       dtoastr.o
  CC       dtotimespec.o
  CC       execinfo.o
  CC       filemode.o
  CC       filevercmp.o
  CC       fpending.o
  CC       getopt.o
  CC       getopt1.o
  CC       getrandom.o
  CC       gettime.o
  CC       gettimeofday.o
  CC       malloc/dynarray_at_failure.o
gettimeofday.c: In function 'gettimeofday':
gettimeofday.c:101:42: warning: the comparison will always evaluate as 'true' for the address of 'GetSystemTimePreciseAsFileTime' will never be NULL [-Waddress]
  101 |   if (GetSystemTimePreciseAsFileTimeFunc != NULL)
      |                                          ^~
In file included from C:/msys64/mingw64/include/winbase.h:36,
                 from C:/msys64/mingw64/include/windows.h:70,
                 from gettimeofday.c:29:
C:/msys64/mingw64/include/sysinfoapi.h:63:26: note: 'GetSystemTimePreciseAsFileTime' declared here
   63 |   WINBASEAPI VOID WINAPI GetSystemTimePreciseAsFileTime (LPFILETIME lpSystemTimeAsFileTime);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC       malloc/dynarray_emplace_enlarge.o
  CC       malloc/dynarray_finalize.o
  CC       malloc/dynarray_resize.o
  CC       malloc/dynarray_resize_clear.o
  CC       memrchr.o
  CC       mkostemp.o
  CC       nstrftime.o
  CC       qcopy-acl.o
  CC       regex.o
  CC       sig2str.o
  CC       sigdescr_np.o
  CC       stat-time.o
  CC       stpcpy.o
  CC       tempname.o
  CC       time_r.o
  CC       time_rz.o
  CC       timegm.o
  CC       timespec.o
  CC       timespec-add.o
  CC       timespec-sub.o
  CC       u64.o
  AR       libgnu.a
make[3]: Leaving directory '/home/User/src/emacs/lib'
make -C doc/lispintro info
make[3]: Entering directory '/home/User/src/emacs/doc/lispintro'
  GEN      ../../info/eintr.info
make[3]: Leaving directory '/home/User/src/emacs/doc/lispintro'
make -C doc/emacs info
  GEN      info/dir
make[3]: Entering directory '/home/User/src/emacs/doc/emacs'
  GEN      ../../info/emacs.info
make[3]: Leaving directory '/home/User/src/emacs/doc/lispref'
make -C nt all
make[3]: Entering directory '/home/User/src/emacs/nt'
  RC       emacs.res
  CCLD     addpm.exe
  CCLD     cmdproxy.exe
  CCLD     ddeclient.exe
make[3]: Leaving directory '/home/User/src/emacs/doc/emacs'
  CCLD     runemacs.exe
make[3]: Leaving directory '/home/User/src/emacs/nt'
make -C lib-src all
make[3]: Entering directory '/home/User/src/emacs/lib-src'
  CC       ntlib.o
  RC       emacsclient.res
  CC       pop.o
  CCLD     etags.exe
  CCLD     ctags.exe
  CCLD     emacsclient.exe
  CCLD     emacsclientw.exe
  CCLD     ebrowse.exe
  CCLD     hexl.exe
  CCLD     movemail.exe
  CCLD     make-docfile.exe
  CCLD     make-fingerprint.exe
make[3]: Leaving directory '/home/User/src/emacs/lib-src'
make -C src BIN_DESTDIR=''/home/User/emacs-master-x86_64-full/bin/'' \
         ELN_DESTDIR='/home/User/emacs-master-x86_64-full/lib/emacs/30.0.50/' all
make[3]: Entering directory '/home/User/src/emacs/src'
  GEN      globals.h
  GEN      buildobj.h
make -C ../nt ../src/emacs.res
make[4]: Entering directory '/home/User/src/emacs/nt'
  RC       ../src/emacs.res
make[4]: Leaving directory '/home/User/src/emacs/nt'
make -C ../admin/charsets all
make[4]: Entering directory '/home/User/src/emacs/admin/charsets'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/User/src/emacs/admin/charsets'
make -C ../admin/unidata charscript.el
make[4]: Entering directory '/home/User/src/emacs/admin/unidata'
make[4]: Nothing to be done for 'charscript.el'.
make[4]: Leaving directory '/home/User/src/emacs/admin/unidata'
make -C ../admin/unidata emoji-zwj.el
make[4]: Entering directory '/home/User/src/emacs/admin/unidata'
make[4]: Nothing to be done for 'emoji-zwj.el'.
make[4]: Leaving directory '/home/User/src/emacs/admin/unidata'
make -C ../admin/charsets cp51932.el
make[4]: Entering directory '/home/User/src/emacs/admin/charsets'
make[4]: Nothing to be done for 'cp51932.el'.
make[4]: Leaving directory '/home/User/src/emacs/admin/charsets'
make -C ../admin/charsets eucjp-ms.el
make[4]: Entering directory '/home/User/src/emacs/admin/charsets'
make[4]: Nothing to be done for 'eucjp-ms.el'.
make[4]: Leaving directory '/home/User/src/emacs/admin/charsets'
  CC       firstfile.o
  CC       dispnew.o
  CC       frame.o
  CC       scroll.o
  CC       xdisp.o
  CC       menu.o
  CC       window.o
  CC       charset.o
  CC       coding.o
  CC       category.o
  CC       ccl.o
  CC       character.o
  CC       chartab.o
  CC       bidi.o
  CC       term.o
  CC       terminal.o
  CC       xfaces.o
  CC       emacs.o
  CC       keyboard.o
  CC       macros.o
  CC       keymap.o
  CC       sysdep.o
  CC       bignum.o
  CC       buffer.o
  CC       filelock.o
  CC       insdel.o
  CC       marker.o
  CC       minibuf.o
  CC       fileio.o
  CC       dired.o
  CC       cmds.o
  CC       casetab.o
  CC       casefiddle.o
  CC       indent.o
  CC       search.o
  CC       regex-emacs.o
  CC       undo.o
  CC       alloc.o
  CC       pdumper.o
  CC       data.o
  CC       doc.o
  CC       editfns.o
  CC       callint.o
  CC       eval.o
  CC       floatfns.o
  CC       fns.o
  CC       sort.o
  CC       font.o
  CC       print.o
  CC       lread.o
  CC       emacs-module.o
  CC       syntax.o
  CC       bytecode.o
  CC       comp.o
  CC       dynlib.o
  CC       process.o
  CC       gnutls.o
  CC       callproc.o
  CC       region-cache.o
In file included from process.c:33:
In function 'SDATA',
    inlined from 'SSDATA' at lisp.h:1678:19,
    inlined from 'create_process' at process.c:2254:40,
    inlined from 'Fmake_process' at process.c:2059:7:
lisp.h:1672:31: warning: array subscript 0 is outside array bounds of 'char[]' [-Warray-bounds]
 1672 |   return XSTRING (string)->u.s.data;
      |          ~~~~~~~~~~~~~~~~~~~~~^~~~~
lisp.h:1672:31: warning: null pointer dereference [-Wnull-dereference]
  CC       sound.o
  CC       timefns.o
  CC       atimer.o
  CC       doprnt.o
In file included from ./conf_post.h:38,
                 from ./config.h:3000,
                 from timefns.c:20:
timefns.c: In function 'Fcurrent_cpu_time':
C:/msys64/home/User/src/emacs/nt/inc/ms-w32.h:298:17: warning: implicit declaration of function 'sys_clock'; did you mean 'sys_close'? [-Wimplicit-function-declaration]
  298 | #define clock   sys_clock
      |                 ^~~~~~~~~
timefns.c:1797:27: note: in expansion of macro 'clock'
 1797 |   return Fcons (make_int (clock ()), make_int (CLOCKS_PER_SEC));
      |                           ^~~~~
C:/msys64/home/User/src/emacs/nt/inc/ms-w32.h:298:17: warning: nested extern declaration of 'sys_clock' [-Wnested-externs]
  298 | #define clock   sys_clock
      |                 ^~~~~~~~~
timefns.c:1797:27: note: in expansion of macro 'clock'
 1797 |   return Fcons (make_int (clock ()), make_int (CLOCKS_PER_SEC));
      |                           ^~~~~
  CC       intervals.o
  CC       textprop.o
  CC       composite.o
  CC       xml.o
  CC       lcms.o
  CC       w32notify.o
  CC       profiler.o
  CC       decompress.o
  CC       thread.o
  CC       systhread.o
  CC       sqlite.o
  CC       treesit.o
  CC       itree.o
  CC       hbfont.o
  CC       w32fns.o
  CC       w32menu.o
  CC       w32reg.o
  CC       w32font.o
  CC       w32term.o
  CC       w32xfns.o
  CC       w32select.o
  CC       w32uniscribe.o
  CC       w32cygwinx.o
  CC       w32.o
  CC       w32console.o
  CC       w32heap.o
  CC       w32inevt.o
w32heap.c: In function 'getrlimit':
w32heap.c:853:14: warning: 'm' may be used uninitialized [-Wmaybe-uninitialized]
  853 |         if (!VirtualQuery ((LPCVOID) &m, &m, sizeof m))
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/winbase.h:25,
                 from C:/msys64/mingw64/include/windows.h:70,
                 from w32common.h:24,
                 from w32heap.c:54:
C:/msys64/mingw64/include/memoryapi.h:45:28: note: by argument 1 of type 'LPCVOID' {aka 'const void *'} to 'VirtualQuery' declared here
   45 |   WINBASEAPI SIZE_T WINAPI VirtualQuery (LPCVOID lpAddress, PMEMORY_BASIC_INFORMATION lpBuffer, SIZE_T dwLength);
      |                            ^~~~~~~~~~~~
w32heap.c:844:34: note: 'm' declared here
  844 |         MEMORY_BASIC_INFORMATION m;
      |                                  ^
  CC       w32proc.o
  CC       w32image.o
  CC       fontset.o
  CC       fringe.o
  CC       image.o
  CC       json.o
  CC       tparam.o
  CC       lastfile.o
  GEN      ../etc/DOC
  CCLD     temacs.exe
/usr/bin/mkdir -p ../etc
make -C ../lisp update-subdirs
make[4]: Entering directory '/home/User/src/emacs/lisp'
make[4]: Leaving directory '/home/User/src/emacs/lisp'
cp -f temacs.exe bootstrap-emacs.exe
rm -f bootstrap-emacs.pdmp
./temacs --batch  -l loadup --temacs=pbootstrap \
        --bin-dest /home/User/emacs-master-x86_64-full/bin/ --eln-dest /home/User/emacs-master-x86_64-full/lib/emacs/30.0.50/
make[3]: *** [Makefile:915: bootstrap-emacs.pdmp] Error 127
make[3]: Leaving directory '/home/User/src/emacs/src'
make[2]: *** [Makefile:544: src] Error 2
make[2]: Leaving directory '/home/User/src/emacs'
make[1]: *** [Makefile:1260: actual-bootstrap] Error 2
make[1]: Leaving directory '/home/User/src/emacs'
make[1]: Entering directory '/home/User/src/emacs'
***
*** "make bootstrap" failed with exit status 2.
***
*** You could try to:
*** - run "make extraclean" and run "make" again (or, equivalently, run
***   "make bootstrap configure=default"), to rebuild Emacs with the
***   default configuration options, which might fix the problem
*** - run "git clean -fdx" and run "make bootstrap" again, which might
***   fix the problem if "make bootstrap configure=default" did not
***   !BEWARE! "git clean -fdx" deletes all files that are not under
***   !BEWARE! version control, which means that all changes to such
***   !BEWARE! files will be lost and cannot be restored later
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
*** - report the problem and ask for help by sending an email to
***   bug-gnu-emacs@gnu.org, mentioning at least the build error
***   message, the platform, and the repository revision displayed by
***   "git rev-parse HEAD"
***
make[1]: *** [Makefile:414: advice-on-failure] Error 2
make[1]: Leaving directory '/home/User/src/emacs'
make: *** [Makefile:1243: bootstrap] Error 2
brisingraerowing commented 1 year ago

Error 127 is Command Not Found. I'm guessing Make doesn't like the missing .exe on the command name, as the cp command a couple lines above referencing the same file didn't error out.

oscarfv commented 1 year ago

Please report bugs in Emacs development branches to the Emacs bug tracker. We don't distribute packages for those branches.

oscarfv commented 1 year ago

Also, please refrain from pasting long text outputs to the message body. Attach files instead.

loreno-heer commented 1 year ago

I already did. But the problem is not with emacs. It is a build problem with the MSYS2/MingW64 system. I build it myself and on linux the build works fine.

oscarfv commented 1 year ago

If you already reported the problem to the Emacs bug tracker you should post a reference to the bug report here.

The fact that it does work on Linux is of little relevance. The Emacs build system contains lots of platform-specific stuff.

Without a simple test case, it is unlikely that the problem will be addressed here as we are speaking of code in development stage that is not packaged by MSYS2.

loreno-heer commented 1 year ago

Here is the relevant reference: https://lists.gnu.org/archive/html/emacs-devel/2022-12/msg00446.html

oscarfv commented 1 year ago

In that thread you mention that the build fails the same way for 28.2. So I forced C.I. to build our Emacs 28.2 package. It passed your point of failure and the build completed. As C.I. uses the most recent MinGW-w64 and MSYS2 packages, and as there are other users that frequently build the master branch with our packages, I suspect that something is broken on your setup.

loreno-heer commented 1 year ago

thanks for testing this out for me. I guess I have to re-install msys2 then.

loreno-heer commented 1 year ago

I deleted msys2, reinstalled everything, got the new emacs master from git, ran the build. same error.

oscarfv commented 1 year ago

Disable the antivirus and any other security system you can think off. Also do an out-of-source build:

$ cd path/to/emacs/source
$ git clean -f -d -x
$ ./autogen.sh
$ mkdir build
$ cd build
$ path/to/emacs/source/configure
$ make
loreno-heer commented 1 year ago

I looked at the function calls to system dll's and noticed that there are some missing functions, which led me to suspect that msys2 somehow thinks it is running on a different windows version. Putting

define _WIN32_WINNT 0x0601

into config.h fixed the build for me. For some reason the default is set to #define _WIN32_WINNT 0x0603 which is wrong for windows 7 ESR.

oscarfv commented 1 year ago

Which config.h file is that? Emacs' one in src/? If affirmative, please submit a bug report (M-x report-emacs-bug).

Also consider closing this issue and re-open if the problem with Emacs is caused by something wrong in our side.

loreno-heer commented 1 year ago

Yes, config.h in emacs src/ . I will file a bug report with emacs. I assume the emacs build has to set that variable somewhere? It is not set by some msys2 defaults?

oscarfv commented 1 year ago

AFAIK Mingw-packages still supports Windows 7, as you can attest because the binary packages you installed work fine, right? I suspect a problem in Emacs' configure script.

loreno-heer commented 1 year ago

Yes exactly the build works perfectly fine now. So indeed I think the should be a problem with Emacs' configure script. I reported it in their mailing list.

loreno-heer commented 1 year ago

Emacs dev says they do not set that variable anywhere: https://lists.gnu.org/archive/html/emacs-devel/2022-12/msg01027.html

loreno-heer commented 1 year ago

Yes, that would explain everything. But shouldn't _WIN32_WINNT just reflect the running system? Or use something like the minimum of the two.

lazka commented 1 year ago

Yes, that would explain everything. But shouldn't _WIN32_WINNT just reflect the running system? Or use something like the minimum of the two.

Projects need to set _WIN32_WINNT to indicate which minimum Windows version they want to support, in case they don't things will fall back to the default, which we changed recently.

If emacs targets Windows 7, it needs to set _WIN32_WINNT accordingly. Though it might happen that emacs dependencies require Windows 8.1 as they get updated over time, which in turn will also affect emacs.

oscarfv commented 1 year ago

Yes, that would explain everything. But shouldn't _WIN32_WINNT just reflect the running system? Or use something like the minimum of the two.

Projects need to set _WIN32_WINNT to indicate which minimum Windows version they want to support, in case they don't things will fall back to the default, which we changed recently.

Though it might happen that emacs dependencies require Windows 8.1 as they get updated over time, which in turn will also affect emacs.

As examples mentioned on #14452 illustrate, a package can support Win7 fine but if we say to its build system that we target >Win7 the resulting binary may be incompatible with Win7. This means in practice that Emacs (or any other software) can't rely on using our packages as runtime dependencies for supporting Win7.

Not saying that that is bad. It's about understanding the full scope of our actions.

Eli-Zaretskii commented 1 year ago

Emacs cannot magically support versions of Windows that MinGW64 dropped in its headers and/or runtime. Emacs does support Windows versions as old as Windows 9X, but only with headers and runtime that support those old systems. (mingw.org's MinGW still does.)

Since which version of MinGW64 is (or will be) Windows 8.1 the oldest MS-Windows that MinGW64 supports? I would like to reflect this in Emacs documentation, so that users are not surprised.

jeremyd2019 commented 1 year ago

Since which version of MinGW64 is (or will be) Windows 8.1 the oldest MS-Windows that MinGW64 supports? I would like to reflect this in Emacs documentation, so that users are not surprised.

Upstream mingw-w64 updated the default to Windows 10 in https://github.com/mingw-w64/mingw-w64/commit/f3c53a51df5c08f181e13a39b1cd6fd1d41edb96. Msys2 updated the default in its packages (it explicitly specifies a default to mingw-w64's configure script rather than relying on their default default) in #14452

jeremyd2019 commented 1 year ago

Emacs cannot magically support versions of Windows that MinGW64 dropped in its headers and/or runtime.

This change was just the default target for the headers. As lazka mentioned above, code on Windows is basically expected to define _WIN32_WINNT to the version of Windows they are trying to target, and the default should just be a default. Unfortunately, in practice this is turning out to be more complicated (due to libraries in different packages)...

Eli-Zaretskii commented 1 year ago

Upstream mingw-w64 updated the default to Windows 10 in mingw-w64/mingw-w64@f3c53a5

Thanks. So MinGW64 drops Windows 8.1 even before Microsoft?

This change was just the default target for the headers. As lazka mentioned above, code on Windows is basically expected to define _WIN32_WINNT to the version of Windows they are trying to target, and the default should just be a default. Unfortunately, in practice this is turning out to be more complicated (due to libraries in different packages)...

Exactly. Which means, in practice, that building Emacs with MinGW64 is only going to work and run on the platforms that are at least as new as the default target, and for any other version of Windows all bets are off.

jeremyd2019 commented 1 year ago

Upstream mingw-w64 updated the default to Windows 10 in mingw-w64/mingw-w64@f3c53a5

Thanks. So MinGW64 drops Windows 8.1 even before Microsoft?

Microsoft's Windows SDK defaulted to Windows 10 at that time (I don't know if that was updated to 11 after that point), that was the justification for that change. (https://sourceforge.net/p/mingw-w64/mailman/message/37752659/)

oscarfv commented 1 year ago

Upstream mingw-w64 updated the default to Windows 10 in mingw-w64/mingw-w64@f3c53a5

Thanks. So MinGW64 drops Windows 8.1 even before Microsoft?

Please note that setting a default target is not the same as desupporting the previous targets. MinGW-w64, as distributed by MSYS2, will have the target that MSYS2 says, which currently is 8.1.

This change was just the default target for the headers. As lazka mentioned above, code on Windows is basically expected to define _WIN32_WINNT to the version of Windows they are trying to target, and the default should just be a default. Unfortunately, in practice this is turning out to be more complicated (due to libraries in different packages)...

Exactly. Which means, in practice, that building Emacs with MinGW64 is only going to work and run on the platforms that are at least as new as the default target, and for any other version of Windows all bets are off.

I think that you are mixing MinGW-w64 (the project) with MSYS2/MinGW-w64 (a binary distribution based on that project.) Your assessment is correct for MSYS2/MinGW-w64, but is irrelevant for MinGW-w64. The difference is that MSYS2 distributes binaries while MinGW-w64 distributes source. The later you must configure to your taste, while the former already comes with the effect of those configurations.

Eli-Zaretskii commented 1 year ago

If the default target is Windows 10, it means all the packages brought in by updates via pacman will probably be compiled with that default target, right? And if so, building Emacs against various libraries used by Emacs, like GnuTLS, the image libraries, tree-sitter, libjansson, etc. will also "inherit" the default target. IOW, trying to build or run such an Emacs on older systems is risky, and basically users who decide to do that are on their own. Right?

So, while it is possible to build Emacs on and for older Windows versions, doing so in practice requires a lot of tinkering, and it would be unreasonable to expect users to do that. Thus my conclusion that the default target in this case becomes the de-facto minimum supported target for anyone who wants to build Emacs on Windows from sources on their systems.

oscarfv commented 1 year ago

If the default target is Windows 10, it means all the packages brought in by updates via pacman will probably be compiled with that default target, right?

No. MSYS2 sets its own default target that overrides the default target in MinGW-w64.

Eli-Zaretskii commented 1 year ago

That doesn't affect the Emacs compilation, though, because Emacs is compiled with the default value of _WIN32_WINNT. Right?

And I can hardly believe all the people who produce MSYS2 MinGW64 binaries are so disciplined as to be ready to tinker with non-default _WIN32_WINNT values and the potential problems it causes. E.g., does it mean MSYS2 build their own MinGW64 runtime libraries, disregarding what MinGW64 itself releases? And how do you verify that each MSYS2 package does indeed run on older Windows versions?

oscarfv commented 1 year ago

That doesn't affect the Emacs compilation, though, because Emacs is compiled with the default value of _WIN32_WINNT. Right?

Right.

And I can hardly believe all the people who produce MSYS2 MinGW64 binaries are so disciplined as to be ready to tinker with non-default _WIN32_WINNT values and the potential problems it causes. E.g., does it mean MSYS2 build their own MinGW64 runtime libraries, disregarding what MinGW64 itself releases? And how do you verify that each MSYS2 package does indeed run on older Windows versions?

Mingw-w64 provides a configure option with a default value. MSYS2 just uses that config option. MSYS2 disregards nothing. We don't care about older Windows versions, our packages just need to work on the minimum version we support (Windows 8.1 at this moment.) If it doesn't and is not an explicit requirement of that precise package, it is a bug that users should report.