emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failure building Emacs master on MSYS2 [MSYS2 PKG]


From: Angelo Graziosi
Subject: Re: Failure building Emacs master on MSYS2 [MSYS2 PKG]
Date: Wed, 7 May 2025 01:57:49 +0200
User-agent: Mozilla Thunderbird

Il 07/05/2025 01:17, Bruno Haible ha scritto:

Please give the actual, complete sequence of commands that you use.

Without this, I won't attempt to reproduce your issue.

READ BELOW

I follow more or less the MSYS2 people build script: https://github.com/msys2/MSYS2-packages/blob/master/emacs/PKGBUILD.

To simplify, the following sequence (to be run in echo $MSYSTEM == MSYS, MSYS2 shell (and TESTED!)) reproduces the issue :

wget http://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e.tar.gz # the source with new Gnulib, April 19

aunpack emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e.tar.gz

cd emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e
./autogen.sh
./configure --build=x86_64-pc-cygwin
make
<output of make>
make actual-all || make advice-on-failure make-target=all exit-status=$?
make[1]: ingresso nella directory «/tmp/emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e»
make -C lib all
make[2]: ingresso nella directory «/tmp/emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e/lib»
  GEN      alloca.h
  GEN      dirent.h
  GEN      endian.h
  GEN      execinfo.h
  GEN      fcntl.h
  GEN      malloc/dynarray.gl.h
  GEN      malloc/dynarray-skeleton.gl.h
  GEN      ieee754.h
  GEN      inttypes.h
  GEN      limits.h
  GEN      signal.h
  GEN      stdbit.h
  GEN      stdckdint.h
  GEN      stddef.h
  GEN      stdint.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/random.h
  GEN      sys/select.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      time.h
  GEN      unistd.h
  CC       fingerprint.o
  CC       acl-errno-valid.o
In file included from /usr/include/sys/types.h:45,
                 from ./sys/types.h:46,
                 from ./acl.h:28,
                 from acl-errno-valid.c:22:
/usr/include/sys/_types.h:167:5: error: unknown type name ‘wint_t’
  167 |     wint_t __wch;
      |     ^~~~~~
make[2]: *** [Makefile:102: acl-errno-valid.o] Error 1
make[2]: uscita dalla directory «/tmp/emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e/lib»
make[1]: *** [Makefile:529: lib] Error 2
make[1]: uscita dalla directory «/tmp/emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e» make[1]: ingresso nella directory «/tmp/emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e»
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
make[1]: *** [Makefile:410: advice-on-failure] Error 2
make[1]: uscita dalla directory «/tmp/emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e»
make: *** [Makefile:366: all] Error 2


Repeating the same sequence with previous commit, http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=30335bb73483fce9d4204f1e18618fe777d0f45e

the build is completed:

[...]
make
<output of make>
make actual-all || make advice-on-failure make-target=all exit-status=$?
make[1]: ingresso nella directory «/tmp/emacs-30335bb73483fce9d4204f1e18618fe777d0f45e»
make -C lib all
make[2]: ingresso nella directory «/tmp/emacs-30335bb73483fce9d4204f1e18618fe777d0f45e/lib»
  GEN      alloca.h
  GEN      dirent.h
  GEN      endian.h
  GEN      execinfo.h
  GEN      fcntl.h
  GEN      malloc/dynarray.gl.h
  GEN      malloc/dynarray-skeleton.gl.h
  GEN      ieee754.h
  GEN      inttypes.h
  GEN      limits.h
  GEN      signal.h
  GEN      stdbit.h
  GEN      stdckdint.h
  GEN      stddef.h
  GEN      stdint.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/random.h
  GEN      sys/select.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      time.h
  GEN      unistd.h
  CC       fingerprint.o
  CC       acl-errno-valid.o                       ##   <====
  CC       acl-internal.o
  CC       get-permissions.o
  CC       set-permissions.o
  CC       allocator.o
  CC       openat-proc.o
  CC       binary-io.o
  CC       boot-time.o
  CC       c-ctype.o
  CC       c-strcasecmp.o
  CC       c-strncasecmp.o
  CC       careadlinkat.o
  CC       close-stream.o
  CC       copy-file-range.o
  CC       md5-stream.o
  CC       md5.o
  CC       sha1.o
  CC       sha256.o
  CC       sha512.o
  CC       dtoastr.o
[...]
make[2]: uscita dalla directory «/tmp/emacs-30335bb73483fce9d4204f1e18618fe777d0f45e/lib»
make -C lib-src all
make[2]: ingresso nella directory «/tmp/emacs-30335bb73483fce9d4204f1e18618fe777d0f45e/lib-src»
  CCLD     etags.exe
  CCLD     emacsclient.exe
  CCLD     ebrowse.exe
  CCLD     hexl.exe
  CC       pop.o
  CCLD     movemail.exe
  CCLD     make-docfile.exe
  CCLD     make-fingerprint.exe
make[2]: uscita dalla directory «/tmp/emacs-30335bb73483fce9d4204f1e18618fe777d0f45e/lib-src»
make -C src BIN_DESTDIR='/usr/bin/' \
         ELN_DESTDIR='/usr/lib/emacs/31.0.50/' all
make[2]: ingresso nella directory «/tmp/emacs-30335bb73483fce9d4204f1e18618fe777d0f45e/src»
  GEN      /tmp/emacs-30335bb73483fce9d4204f1e18618fe777d0f45e/src/lisp.mk
  GEN      globals.h
  CC       dispnew.o
  CC       frame.o
  CC       scroll.o
  CC       xdisp.o
[...]

AND SO ON...


Notice that

./configure --build=x86_64-pc-cygwin

prints

configure: loading site script /etc/config.site
checking for xcrun... no
checking for GNU Make... make
checking build system type... x86_64-pc-cygwin
checking host system type... x86_64-pc-cygwin ## as should be for this kind of build
[...]

Ciao,
  Angelo.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]