From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs on WSL Date: Wed, 21 Dec 2016 10:00:31 +0100 Message-ID: <86d8a6c3-801c-bda2-4479-bd246f8fdd46@alice.it> References: <4829e397-ac70-ab22-9c01-848ae876db46@alice.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1482310909 14857 195.159.176.226 (21 Dec 2016 09:01:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2016 09:01:49 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 Cc: Emacs developers To: Fabrice Popineau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 21 10:01:36 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJcmF-0002P0-AG for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2016 10:01:35 +0100 Original-Received: from localhost ([::1]:55869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJcmJ-0000OG-PF for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2016 04:01:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJclc-0000LP-T3 for emacs-devel@gnu.org; Wed, 21 Dec 2016 04:01:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJclU-0007Qu-HJ for emacs-devel@gnu.org; Wed, 21 Dec 2016 04:00:56 -0500 Original-Received: from smtp201.alice.it ([82.57.200.97]:21766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJclT-0007P2-P7 for emacs-devel@gnu.org; Wed, 21 Dec 2016 04:00:48 -0500 Original-Received: from [192.168.1.101] (95.235.230.214) by smtp201.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 585912F80062DC93; Wed, 21 Dec 2016 10:00:43 +0100 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.97 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210686 Archived-At: Il 20/12/2016 13:40, Fabrice Popineau ha scritto: > 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. Yes, Emacs master builds and works in console (same issue for packages manager, bug #25221) but I have to echo 0 | sudo tee /proc/sys/kernel/randomize_va_space before the build starts otherwise it fails. Angelo