From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs on WSL Date: Wed, 21 Dec 2016 11:29:48 +0100 Message-ID: References: <4829e397-ac70-ab22-9c01-848ae876db46@alice.it> <86d8a6c3-801c-bda2-4479-bd246f8fdd46@alice.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134c26a0f56b4054428a356 X-Trace: blaine.gmane.org 1482316264 2355 195.159.176.226 (21 Dec 2016 10:31:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2016 10:31:04 +0000 (UTC) Cc: Emacs developers To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 21 11:30:58 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 1cJeAe-0007Yg-V0 for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2016 11:30:53 +0100 Original-Received: from localhost ([::1]:56121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJeAg-0002sC-Cc for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2016 05:30:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJe9z-0002s2-16 for emacs-devel@gnu.org; Wed, 21 Dec 2016 05:30:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJe9x-00081u-Td for emacs-devel@gnu.org; Wed, 21 Dec 2016 05:30:11 -0500 Original-Received: from mail-wj0-x22f.google.com ([2a00:1450:400c:c01::22f]:33802) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJe9x-00081V-Lu for emacs-devel@gnu.org; Wed, 21 Dec 2016 05:30:09 -0500 Original-Received: by mail-wj0-x22f.google.com with SMTP id sd9so13100784wjb.1 for ; Wed, 21 Dec 2016 02:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lXEMjutKDgxsXpDzWUlJLvmVlsmXKRqtwHnyRhjp3H4=; b=UcInF7mp1NUNxTSz5/3c8C/RuGA/1Hwyz2TuXpMvA1cHGsW2LU0I/A167hYCaTvpzg jDaM1Kp7aVUHrt3a/B0gja1L1/rNMejkK6oFrfhmOFexOMxG1u97pSNusOKi3Qh4AZzE Cp4B8cyJqFXrkHZAHtz5gXs4X3S9sPT7WTgwpKrmq0zaSqtOSsPHBe+o1JIgfHTEjNgr h+6Gfx2SF/x9t0Q23xzJVp318X09wAV/6vG53biqFWtsIIEb6P99+fBf9LkHi7i9zJ0j XmqYadt39PW8SvqmGPx065T+Dbocm8puRbAoAAV45WwjV8BsSByuHm8UKePretux6ZPU MWIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lXEMjutKDgxsXpDzWUlJLvmVlsmXKRqtwHnyRhjp3H4=; b=eGwMPLEk8rv11tEuLG3tmQ4iRuZF6wkMO3g0M8NCIpm13HEocUNNgA/elQx8CFFG8q nDnExgCiyXIblxoGkaVwcULyOpg8xAjF6bkCswTrHupQ6eJfqYFZpums2NWo91ACN0vK Kkn+8pHJPJo7jnWNRWbtlJEEI6zohir5YBrKOIPTjsG8wJeWS3krZjD9F+vufSjlVI53 Slq6PwW8DrVgx0cFZiAfn6vcIRFEcDnGTiA0wdSJHD7/7ueIP7iIIxYQkaTXd2AyLqG2 /JLx+YmwYP61XzvGvxU1M3MIpZFl6dy2KyozIZsxjSNGdeUI3LoIHvIS14Uo4suMZl0N h71Q== X-Gm-Message-State: AIkVDXJxwdDHVV2YuSU3fLeEuhyPlFUtv5rSznTDJ/zfgIeg2jeKpW3XoSQvGMlW83UZiH4jMbS3AEIFJDZh4w== X-Received: by 10.195.14.103 with SMTP id ff7mr3517630wjd.126.1482316208623; Wed, 21 Dec 2016 02:30:08 -0800 (PST) Original-Received: by 10.28.153.205 with HTTP; Wed, 21 Dec 2016 02:29:48 -0800 (PST) In-Reply-To: <86d8a6c3-801c-bda2-4479-bd246f8fdd46@alice.it> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c01::22f 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:210687 Archived-At: --001a1134c26a0f56b4054428a356 Content-Type: text/plain; charset=UTF-8 2016-12-21 10:00 GMT+01:00 Angelo Graziosi : > 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. > > Yes, this is needed and that won't change until unexec is removed from emacs (either replace by portable dumper or loading everything at runtime). -- Fabrice --001a1134c26a0f56b4054428a356 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2016-12-21 10:00 GMT+01:00 Angelo Graziosi <angelo.graziosi@ali= ce.it>:
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)
=C2=A0 =C2=A0bool disable_aslr =3D dumping;
=C2=A0# endif

+#if 0
=C2=A0 =C2=A0if (disable_aslr && disable_address_randomization ())<= br> =C2=A0 =C2=A0 =C2=A0{
=C2=A0 =C2=A0 =C2=A0 =C2=A0/* Set this so the personality will be reverted = before execs
@@ -712,6 +713,7 @@ main (int argc, char **argv)
=C2=A0 =C2=A0 =C2=A0 =C2=A0/* If the exec fails, warn and then try anyway.= =C2=A0 */
=C2=A0 =C2=A0 =C2=A0 =C2=A0perror (argv[0]);
=C2=A0 =C2=A0 =C2=A0}
+#endif

=C2=A0#ifndef CANNOT_DUMP
=C2=A0 =C2=A0might_dump =3D !initialized;

Now, Spacemacs loads as well with master.

Yes, Emacs master builds and works in console (same issue for packages mana= ger, bug #25221) but I have to

echo 0 | sudo tee /proc/sys/kernel/randomize_va_space

before the build starts otherwise it fails.


Yes, this is needed and = that won't change until unexec is removed from emacs (either replace by= portable dumper or loading everything at runtime).

--=C2=A0
Fabrice
--001a1134c26a0f56b4054428a356--