From: Fabrice Popineau <fabrice.popineau@centralesupelec.fr>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Building Emacs on WSL
Date: Tue, 20 Dec 2016 13:40:37 +0100 [thread overview]
Message-ID: <CAFgFV9PN6VB73tkFaQfQRBEEKwR3VGeCrXs2d3nnn85Zpe_GvQ@mail.gmail.com> (raw)
In-Reply-To: <CAFgFV9O3-YHGSNe1wVQ5nEwDMVApLyLS63408fpemT7wFePCSw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2026 bytes --]
>
>
> Emacs master fails with the same configuration. It fails bootstrapping:
>
> (gdb) run --batch --load loadup bootstrap
> Starting program: /mnt/d/Source/emacs/build-emacs-ubuntu/src/temacs
> --batch --load loadup bootstrap
> warning: Error disabling address space randomization: Succès
> warning: linux_ptrace_test_ret_to_nx: PTRACE_KILL waitpid returned -1:
> Appel système interrompu
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> process 17622 is executing new program: /mnt/d/Source/emacs/build-
> emacs-ubuntu/src/temacs
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> process 17622 is executing new program: /mnt/d/Source/emacs/build-
> emacs-ubuntu/src/temacs
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> process 17622 is executing new program: /mnt/d/Source/emacs/build-
> emacs-ubuntu/src/temacs
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> process 17622 is executing new program: /mnt/d/Source/emacs/build-
> emacs-ubuntu/src/temacs
>
> I must admit that I don't know how to read what gdb is reporting.
>
>
However, there is a simple fix:
diff --git a/src/emacs.c b/src/emacs.c
index dc13b15..46a0593 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -699,6 +699,7 @@ main (int argc, char **argv)
bool disable_aslr = dumping;
# endif
+#if 0
if (disable_aslr && disable_address_randomization ())
{
/* Set this so the personality will be reverted before execs
@@ -712,6 +713,7 @@ main (int argc, char **argv)
/* If the exec fails, warn and then try anyway. */
perror (argv[0]);
}
+#endif
#ifndef CANNOT_DUMP
might_dump = !initialized;
Now, Spacemacs loads as well with master.
Fabrice
[-- Attachment #2: Type: text/html, Size: 2823 bytes --]
next prev parent reply other threads:[~2016-12-20 12:40 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-11 17:42 Building Emacs on WSL Angelo Graziosi
2016-12-16 15:05 ` Angelo Graziosi
2016-12-16 15:30 ` Eli Zaretskii
2016-12-16 17:48 ` Paul Eggert
2016-12-16 21:05 ` Eli Zaretskii
2016-12-17 1:00 ` Angelo Graziosi
2016-12-17 8:02 ` Eli Zaretskii
2016-12-17 8:33 ` Angelo Graziosi
2016-12-17 10:55 ` Eli Zaretskii
2016-12-17 14:25 ` Eli Zaretskii
2016-12-17 15:46 ` Angelo Graziosi
2016-12-20 12:20 ` Fabrice Popineau
2016-12-20 12:40 ` Fabrice Popineau [this message]
2016-12-20 19:35 ` Paul Eggert
2016-12-20 20:03 ` Fabrice Popineau
2016-12-20 23:59 ` Angelo Graziosi
2016-12-21 3:20 ` Paul Eggert
2016-12-21 8:54 ` Angelo Graziosi
2016-12-21 18:00 ` Paul Eggert
2016-12-21 20:50 ` Angelo Graziosi
2016-12-20 20:57 ` Angelo Graziosi
2016-12-21 9:00 ` Angelo Graziosi
2016-12-21 10:29 ` Fabrice Popineau
2016-12-20 21:19 ` Angelo Graziosi
2016-12-20 22:01 ` Fabrice Popineau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFgFV9PN6VB73tkFaQfQRBEEKwR3VGeCrXs2d3nnn85Zpe_GvQ@mail.gmail.com \
--to=fabrice.popineau@centralesupelec.fr \
--cc=angelo.graziosi@alice.it \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.