win10 上,安装了所有需要的依赖,前面两步都没有出错,编译时出现以下错误。官方源码和github上的源码都试过了,均出现以下同样的错误。我的编译环境都是按照链接 GccEmacs 在各个平台上的安装 - Eason Huang 中介绍的设置的,python版本为 3.10.5。
# make -j$(nproc) NATIVE_FULL_AOT=1
make -C nt all
make -C lib all
make -C doc/lispref info
make[1]: Entering directory '/d/Cat/emacs-build-windows/emacs-emacs-28/nt'
make -C doc/lispintro info
make -C doc/emacs info
make[1]: Entering directory '/d/Cat/emacs-build-windows/emacs-emacs-28/doc/lispref'
make[1]: Nothing to be done for 'info'.
make[1]: Leaving directory '/d/Cat/emacs-build-windows/emacs-emacs-28/doc/lispref'
make[1]: Entering directory '/d/Cat/emacs-build-windows/emacs-emacs-28/doc/lispintro'
make[1]: Nothing to be done for 'info'.
make[1]: Leaving directory '/d/Cat/emacs-build-windows/emacs-emacs-28/doc/lispintro'
RC emacs.res
make[1]: Entering directory '/d/Cat/emacs-build-windows/emacs-emacs-28/doc/emacs'
make[1]: Nothing to be done for 'info'.
make[1]: Leaving directory '/d/Cat/emacs-build-windows/emacs-emacs-28/doc/emacs'
CCLD addpm.exe
CCLD cmdproxy.exe
CCLD ddeclient.exe
make[1]: Entering directory '/d/Cat/emacs-build-windows/emacs-emacs-28/lib'
GEN alloca.h
GEN byteswap.h
GEN errno.h
GEN execinfo.h
GEN getopt.h
CCLD runemacs.exe
GEN getopt-cdefs.h
GEN ieee754.h
GEN limits.h
GEN string.h
GEN stdint.h
GEN time.h
GEN sys/random.h
CC fingerprint.o
CC acl_entries.o
CC execinfo.o
CC fpending.o
CC getopt1.o
CC getopt.o
CC getrandom.o
CC gettimeofday.o
CC memmem.o
CC memrchr.o
CC mkostemp.o
CC mktime.o
CC regex.o
CC sig2str.o
CC sigdescr_np.o
CC stpcpy.o
CC time_r.o
CC time_rz.o
CC timegm.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 sha256.o
CC dtoastr.o
CC md5.o
CC sha512.o
CC sha1.o
D CC dtotimespec.o
:/msys64/mingw64/bin/../lib/gcc/ CC malloc/dynarray_at_failure.o
x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe
: D:\msys64\tmp\ccQwloJt.o: in function `main':
D:\Cat\emacs-build-windows\emacs-emacs-28\nt/cmdproxy.c:871: undefined reference to `_snprintf'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe
: D:\Cat\emacs-build-windows\emacs-emacs-28\nt/cmdproxy.c:878: undefined reference to `_snprintf'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe
: D:\Cat\emacs-build-windows\emacs-emacs-28\nt/cmdproxy.c:889: undefined reference to `_snprintf'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe
: D:\Cat\emacs-build-windows\emacs-emacs-28\nt/cmdproxy.c:916: undefined reference to `_snprintf'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe
: D:\Cat\emacs-build-windows\emacs-emacs-28\nt/cmdproxy.c:923: undefined reference to `_snprintf'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe
: D:\msys64\tmp\ccQwloJt.o:D:\Cat\emacs-build-windows\emacs-emacs-28\nt/cmdproxy.c:928: more undefin
ed references to `_snprintf' follow
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:231: cmdproxy.exe] Error 1
make[1]: *** Waiting for unfinished jobs....
CC malloc/dynarray_emplace_enlarge.o
CC malloc/dynarray_finalize.o
CC malloc/dynarray_resize.o
CC malloc/dynarray_resize_clear.o
CC filemode.o
CC filevercmp.o
CC gettime.o
CC nstrftime.o
CC qcopy-acl.o
CC stat-time.o
CC tempname.o
CC timespec.o
CC timespec-add.o
CC timespec-sub.o
CC u64.o
make[1]: Leaving directory '/d/Cat/emacs-build-windows/emacs-emacs-28/nt'
make: *** [Makefile:436: nt] Error 2
make: *** Waiting for unfinished jobs....
AR libgnu.a
make[1]: Leaving directory '/d/Cat/emacs-build-windows/emacs-emacs-28/lib'
现在卡到这里了!请大佬有空的时候帮忙解惑!