[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MinGW build on master fails with Error 127
From: |
Loreno Heer |
Subject: |
Re: MinGW build on master fails with Error 127 |
Date: |
Mon, 12 Dec 2022 16:44:02 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 |
Yes, temacs is in the src directory. There were some warnings and notes
but no other errors. I just updated mingw and the git repo today. Here
is the full build output:
> $ make NATIVE_FULL_AOT=1 -j$(nproc)
> make actual-all || make advice-on-failure
> make-target=all exit-status=$?
> make[1]: Entering directory '/home/User/src/emacs'
> make -C lib all
> make -C doc/lispref info
> make[2]: Entering directory '/home/User/src/emacs/doc/lispref'
> /usr/bin/mkdir -p ../../info
> GEN ../../info/elisp.info
> make[2]: Entering directory '/home/User/src/emacs/lib'
> GEN alloca.h
> GEN byteswap.h
> 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[2]: Leaving directory '/home/User/src/emacs/lib'
> make -C doc/lispintro info
> make[2]: Entering directory '/home/User/src/emacs/doc/lispintro'
> GEN ../../info/eintr.info
> make[2]: Leaving directory '/home/User/src/emacs/doc/lispintro'
> make -C doc/emacs info
> GEN info/dir
> make[2]: Entering directory '/home/User/src/emacs/doc/emacs'
> GEN ../../info/emacs.info
> make[2]: Leaving directory '/home/User/src/emacs/doc/lispref'
> make -C nt all
> make[2]: Entering directory '/home/User/src/emacs/nt'
> RC emacs.res
> CCLD addpm.exe
> CCLD cmdproxy.exe
> make[2]: Leaving directory '/home/User/src/emacs/doc/emacs'
> CCLD ddeclient.exe
> CCLD runemacs.exe
> make[2]: Leaving directory '/home/User/src/emacs/nt'
> make -C lib-src all
> make[2]: 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[2]: Leaving directory '/home/User/src/emacs/lib-src'
> make -C src BIN_DESTDIR=''/mingw64/bin/'' \
> ELN_DESTDIR='/mingw64/lib/emacs/30.0.50/' all
> make[2]: Entering directory '/home/User/src/emacs/src'
> GEN lisp.mk
> GEN globals.h
> GEN buildobj.h
> make -C ../nt ../src/emacs.res
> make[3]: Entering directory '/home/User/src/emacs/nt'
> RC ../src/emacs.res
> make[3]: Leaving directory '/home/User/src/emacs/nt'
> make -C ../admin/charsets all
> make[3]: Entering directory '/home/User/src/emacs/admin/charsets'
> GEN ../../etc/charsets/8859-2.map
> GEN ../../etc/charsets/8859-3.map
> GEN ../../etc/charsets/8859-4.map
> GEN ../../etc/charsets/8859-5.map
> GEN ../../etc/charsets/8859-6.map
> GEN ../../etc/charsets/8859-7.map
> GEN ../../etc/charsets/8859-8.map
> GEN ../../etc/charsets/8859-9.map
> GEN ../../etc/charsets/8859-10.map
> GEN ../../etc/charsets/8859-11.map
> GEN ../../etc/charsets/8859-13.map
> GEN ../../etc/charsets/8859-14.map
> GEN ../../etc/charsets/8859-15.map
> make -C ../admin/unidata charscript.el
> make[3]: Entering directory '/home/User/src/emacs/admin/unidata'
> GEN ../../etc/charsets/8859-16.map
> GEN ../../lisp/international/charscript.el
> make[3]: Leaving directory '/home/User/src/emacs/admin/unidata'
> make -C ../admin/unidata emoji-zwj.el
> make[3]: Entering directory '/home/User/src/emacs/admin/unidata'
> GEN ../../etc/charsets/IBM037.map
> GEN ../../lisp/international/emoji-zwj.el
> make[3]: Leaving directory '/home/User/src/emacs/admin/unidata'
> make -C ../admin/charsets cp51932.el
> make[3]: Entering directory '/home/User/src/emacs/admin/charsets'
> GEN ../../etc/charsets/CP932-2BYTE.map
> GEN ../../etc/charsets/IBM038.map
> GEN ../../lisp/international/cp51932.el
> GEN ../../etc/charsets/IBM256.map
> make[3]: Leaving directory '/home/User/src/emacs/admin/charsets'
> GEN ../../etc/charsets/IBM273.map
> GEN ../../etc/charsets/IBM274.map
> make -C ../admin/charsets eucjp-ms.el
> make[3]: Entering directory '/home/User/src/emacs/admin/charsets'
> GEN ../../lisp/international/eucjp-ms.el
> make[3]: Leaving directory '/home/User/src/emacs/admin/charsets'
> GEN ../../etc/charsets/IBM275.map
> GEN ../../etc/charsets/IBM277.map
> GEN ../../etc/charsets/IBM278.map
> CC firstfile.o
> GEN ../../etc/charsets/IBM280.map
> CC dispnew.o
> GEN ../../etc/charsets/IBM281.map
> GEN ../../etc/charsets/IBM284.map
> CC frame.o
> GEN ../../etc/charsets/IBM285.map
> GEN ../../etc/charsets/IBM290.map
> GEN ../../etc/charsets/IBM297.map
> GEN ../../etc/charsets/IBM420.map
> GEN ../../etc/charsets/IBM423.map
> GEN ../../etc/charsets/IBM424.map
> GEN ../../etc/charsets/IBM437.map
> GEN ../../etc/charsets/IBM500.map
> CC scroll.o
> GEN ../../etc/charsets/IBM850.map
> GEN ../../etc/charsets/IBM851.map
> GEN ../../etc/charsets/IBM852.map
> GEN ../../etc/charsets/IBM855.map
> GEN ../../etc/charsets/IBM856.map
> GEN ../../etc/charsets/IBM857.map
> GEN ../../etc/charsets/IBM860.map
> GEN ../../etc/charsets/IBM861.map
> GEN ../../etc/charsets/IBM862.map
> GEN ../../etc/charsets/IBM863.map
> GEN ../../etc/charsets/IBM864.map
> GEN ../../etc/charsets/IBM865.map
> CC xdisp.o
> GEN ../../etc/charsets/IBM866.map
> GEN ../../etc/charsets/IBM868.map
> GEN ../../etc/charsets/IBM869.map
> GEN ../../etc/charsets/IBM870.map
> GEN ../../etc/charsets/IBM871.map
> GEN ../../etc/charsets/IBM874.map
> CC menu.o
> GEN ../../etc/charsets/IBM875.map
> GEN ../../etc/charsets/IBM880.map
> GEN ../../etc/charsets/IBM891.map
> GEN ../../etc/charsets/IBM903.map
> GEN ../../etc/charsets/IBM904.map
> GEN ../../etc/charsets/IBM905.map
> GEN ../../etc/charsets/IBM918.map
> GEN ../../etc/charsets/IBM1004.map
> GEN ../../etc/charsets/IBM1026.map
> GEN ../../etc/charsets/IBM1047.map
> GEN ../../etc/charsets/CP737.map
> GEN ../../etc/charsets/CP775.map
> GEN ../../etc/charsets/CP1125.map
> GEN ../../etc/charsets/CP1250.map
> GEN ../../etc/charsets/CP1251.map
> GEN ../../etc/charsets/CP1252.map
> GEN ../../etc/charsets/CP1253.map
> GEN ../../etc/charsets/CP1254.map
> GEN ../../etc/charsets/CP1255.map
> GEN ../../etc/charsets/CP1256.map
> GEN ../../etc/charsets/CP1257.map
> GEN ../../etc/charsets/CP1258.map
> GEN ../../etc/charsets/CP10007.map
> GEN ../../etc/charsets/CP720.map
> GEN ../../etc/charsets/CP858.map
> GEN ../../etc/charsets/GB2312.map
> GEN ../../etc/charsets/GBK.map
> GEN ../../etc/charsets/GB180302.map
> GEN ../../etc/charsets/BIG5.map
> GEN ../../etc/charsets/BIG5-HKSCS.map
> GEN ../../etc/charsets/CNS-1.map
> GEN ../../etc/charsets/CNS-2.map
> GEN ../../etc/charsets/CNS-3.map
> GEN ../../etc/charsets/CNS-4.map
> GEN ../../etc/charsets/CNS-5.map
> GEN ../../etc/charsets/CNS-6.map
> GEN ../../etc/charsets/CNS-7.map
> GEN ../../etc/charsets/CNS-F.map
> GEN ../../etc/charsets/JISX0201.map
> GEN ../../etc/charsets/JISX0208.map
> GEN ../../etc/charsets/JISX0212.map
> GEN ../../etc/charsets/JISX2132.map
> GEN ../../etc/charsets/JISC6226.map
> GEN ../../etc/charsets/JISX213A.map
> GEN ../../etc/charsets/KSC5601.map
> GEN ../../etc/charsets/KSC5636.map
> GEN ../../etc/charsets/JOHAB.map
> GEN ../../etc/charsets/KOI-8.map
> GEN ../../etc/charsets/KOI8-R.map
> GEN ../../etc/charsets/KOI8-U.map
> GEN ../../etc/charsets/KOI8-T.map
> CC window.o
> GEN ../../etc/charsets/ALTERNATIVNYJ.map
> GEN ../../etc/charsets/MIK.map
> GEN ../../etc/charsets/PTCP154.map
> GEN ../../etc/charsets/TIS-620.map
> GEN ../../etc/charsets/VISCII.map
> GEN ../../etc/charsets/VSCII.map
> GEN ../../etc/charsets/VSCII-2.map
> CC charset.o
> GEN ../../etc/charsets/KA-PS.map
> GEN ../../etc/charsets/KA-ACADEMY.map
> GEN ../../etc/charsets/HP-ROMAN8.map
> GEN ../../etc/charsets/NEXTSTEP.map
> GEN ../../etc/charsets/MACINTOSH.map
> GEN ../../etc/charsets/EBCDICUK.map
> GEN ../../etc/charsets/EBCDICUS.map
> GEN ../../etc/charsets/stdenc.map
> GEN ../../etc/charsets/symbol.map
> GEN ../../etc/charsets/CP949-2BYTE.map
> GEN ../../etc/charsets/BIG5-1.map
> GEN ../../etc/charsets/BIG5-2.map
> GEN ../../etc/charsets/MULE-ethiopic.map
> GEN ../../etc/charsets/MULE-ipa.map
> GEN ../../etc/charsets/MULE-is13194.map
> GEN ../../etc/charsets/MULE-sisheng.map
> GEN ../../etc/charsets/MULE-tibetan.map
> GEN ../../etc/charsets/MULE-lviscii.map
> GEN ../../etc/charsets/MULE-uviscii.map
> GEN ../../etc/charsets/GB180304.map
> GEN ../../etc/charsets/JISX2131.map
> CC coding.o
> GEN charsets.stamp
> make[3]: Leaving directory '/home/User/src/emacs/admin/charsets'
> 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
> CCLD temacs.exe
> GEN ../etc/DOC
> /usr/bin/mkdir -p ../etc
> make -C ../lisp update-subdirs
> make[3]: Entering directory '/home/User/src/emacs/lisp'
> make[3]: 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 /mingw64/bin/ --eln-dest /mingw64/lib/emacs/30.0.50/
> make[2]: *** [Makefile:915: bootstrap-emacs.pdmp] Error 127
> make[2]: Leaving directory '/home/User/src/emacs/src'
> make[1]: *** [Makefile:544: src] Error 2
> make[1]: Leaving directory '/home/User/src/emacs'
> make[1]: Entering directory '/home/User/src/emacs'
> ***
> *** "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:414: advice-on-failure] Error 2
> make[1]: Leaving directory '/home/User/src/emacs'
> make: *** [Makefile:370: all] Error 2
On 12.12.2022 16:40, Eli Zaretskii wrote:
>> From: Loreno Heer <helohe@bluewin.ch>
>> Date: Mon, 12 Dec 2022 16:26:44 +0100
>>
>> MinGW build on master fails with Error 127:
>>
>>> make[3]: Leaving directory '/home/User/src/emacs/admin/charsets'
>>> 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[2]: *** [Makefile:915: bootstrap-emacs.pdmp] Error 127
>
> AFAIK, "error 127" means "command not found". Do you have temacs.exe
> in the src directory? Did you see any other warnings or errors during
> the build?
>
> Anyway, it doesn't fail here.
>
> When was the last time the build fro master worked for you, and what
> changed on your system since then? Some libraries or the compiler got
> updated, perhaps?
- MinGW build on master fails with Error 127, Loreno Heer, 2022/12/12
- Re: MinGW build on master fails with Error 127, Eli Zaretskii, 2022/12/12
- Re: MinGW build on master fails with Error 127,
Loreno Heer <=
- Re: MinGW build on master fails with Error 127, Eli Zaretskii, 2022/12/12
- Re: MinGW build on master fails with Error 127, Loreno Heer, 2022/12/12
- Re: MinGW build on master fails with Error 127, Eli Zaretskii, 2022/12/12
- Re: MinGW build on master fails with Error 127, Loreno Heer, 2022/12/12
- Re: MinGW build on master fails with Error 127, Loreno Heer, 2022/12/24
- Re: MinGW build on master fails with Error 127, Eli Zaretskii, 2022/12/24
- Re: MinGW build on master fails with Error 127, Loreno Heer, 2022/12/24
- Re: MinGW build on master fails with Error 127, Eli Zaretskii, 2022/12/24
- Re: MinGW build on master fails with Error 127, Óscar Fuentes, 2022/12/24
- Re: MinGW build on master fails with Error 127, Eli Zaretskii, 2022/12/24