unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Error after dump complete when compile on Windows 10
@ 2019-01-31 16:23 Shuguang Sun
  2019-01-31 17:05 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Shuguang Sun @ 2019-01-31 16:23 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,


I'm try to build emacs on Windows 10 using msys2/mingw64, and git emacs source. However, it raises error after dump complete. Does any one compile it successfully on Windows 10?



With configure:
 PKG_CONFIG_PATH=/mingw64/lib/pkgconfig ./configure --host=x86_64-w64-mingw32  --target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32




Below is the error message.



```

Dump complete
Byte counts: header=80 hot=13293288 discardable=127776 cold=9178020
Reloc counts: hot=920625 discardable=4848
make -C ../lisp compile-first EMACS="../src/bootstrap-emacs.exe"
make[2]: Entering directory '/c/Users/username/gitemacs/emacs/lisp'
  ELC      emacs-lisp/macroexp.elc
  ELC      emacs-lisp/cconv.elc
  ELC      emacs-lisp/byte-opt.elc
/bin/sh: line 1: 195564 Segmentation fault      EMACSLOADPATH= '../src/bootstrap-emacs.exe' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/cconv.el
make[2]: *** [Makefile:301: emacs-lisp/cconv.elc] Error 139
make[2]: *** Waiting for unfinished jobs....
/bin/sh: line 1: 102824 Segmentation fault      EMACSLOADPATH= '../src/bootstrap-emacs.exe' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/byte-opt.el
make[2]: *** [Makefile:301: emacs-lisp/byte-opt.elc] Error 139
/bin/sh: line 1: 88864 Segmentation fault      EMACSLOADPATH= '../src/bootstrap-emacs.exe' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el
make[2]: *** [Makefile:301: emacs-lisp/macroexp.elc] Error 139
make[2]: Leaving directory '/c/Users/username/gitemacs/emacs/lisp'
make[1]: *** [Makefile:812: bootstrap-emacs.pdmp] Error 2
make[1]: Leaving directory '/c/Users/username/gitemacs/emacs/src'
make: *** [Makefile:423: src] Error 2
```

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error after dump complete when compile on Windows 10
  2019-01-31 16:23 Error after dump complete when compile on Windows 10 Shuguang Sun
@ 2019-01-31 17:05 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2019-01-31 17:05 UTC (permalink / raw)
  To: help-gnu-emacs

[This is not the right place to report build problems and crashes,
certainly not in the development version.  Please submit a bug report
with all the details instead, using "M-x report-emacs-bug".]

> From: "Shuguang Sun" <shuguang79@qq.com>
> Date: Fri, 1 Feb 2019 00:23:18 +0800
> Feedback-ID: webmail:qq.com:bgweb:bgweb115
> 
> I'm try to build emacs on Windows 10 using msys2/mingw64, and git emacs source. However, it raises error after dump complete. Does any one compile it successfully on Windows 10?

I see no reason why Windows 10 would be special.

> With configure:
>  PKG_CONFIG_PATH=/mingw64/lib/pkgconfig ./configure --host=x86_64-w64-mingw32  --target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32

Why do you specify host, target, and build explicitly?

Also, when did you last check out from Git?  And what are your GCC and
Binutils versions?

> Dump complete
> Byte counts: header=80 hot=13293288 discardable=127776 cold=9178020
> Reloc counts: hot=920625 discardable=4848
> make -C ../lisp compile-first EMACS="../src/bootstrap-emacs.exe"
> make[2]: Entering directory '/c/Users/username/gitemacs/emacs/lisp'
>   ELC      emacs-lisp/macroexp.elc
>   ELC      emacs-lisp/cconv.elc
>   ELC      emacs-lisp/byte-opt.elc
> /bin/sh: line 1: 195564 Segmentation fault      EMACSLOADPATH= '../src/bootstrap-emacs.exe' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/cconv.el
> make[2]: *** [Makefile:301: emacs-lisp/cconv.elc] Error 139

What happens if you configure with --with-dumping=unexec option, does
it succeed to build then?



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-31 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-31 16:23 Error after dump complete when compile on Windows 10 Shuguang Sun
2019-01-31 17:05 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).