Decided to rebuild Emacs. Looks like there is some problem with `Makefile' under MSYS2. For me it always terminates here:
make[1]: Leaving directory '/c/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs-git/src/build-x86_64-w64-mingw32/lib-src'
if test "no" = "no"; then \
/usr/bin/install -c src/emacs.exe "/c/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs-git/pkg/mingw-w64-x86_64-emacs-git/mingw64/bin/`echo emacs-25.0.50 | sed 's,x,x,'`.exe" || exit 1 ; \
chmod 1755 "/c/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs-git/pkg/mingw-w64-x86_64-emacs-git/mingw64/bin/`echo emacs-25.0.50 | sed 's,x,x,'`.exe" || true; \
if test "x" = x; then \
rm -f "/c/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs-git/pkg/mingw-w64-x86_64-emacs-git/mingw64/bin/`echo emacs | sed 's,x,x,'`.exe" ; \
cd "/c/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs-git/pkg/mingw-w64-x86_64-emacs-git/mingw64/bin" && /bin/ln -s `echo emacs-25.0.50 | sed 's,x,x,'`.exe `echo emacs | sed 's,x,x,'`.exe; \
fi; \
else \
subdir=/site-lisp; \
if [ -f "${subdir}/subdirs.el" ]; then true; else umask 022; /usr/bin/mkdir -p "${subdir}"; (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; echo " (normal-top-level-add-subdirs-to-load-path))") > "${subdir}/subdirs.el"; fi || exit 1; \
rm -rf /share; \
fi
==> ERROR: A failure occurred in package().
Aborting...
I suspect that the build is almost finished, but something goes wrong in the very last moment. Any suggestions? Thanks.
Best regards,
Alexander