From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Cesar Quiroz Newsgroups: gmane.emacs.devel Subject: Re: Emacs 25 from GIT build issue under Ubuntu 16.10 Date: Fri, 14 Oct 2016 23:32:22 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113efe2c9219f7053ee182c8 X-Trace: blaine.gmane.org 1476513225 17697 195.159.176.226 (15 Oct 2016 06:33:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2016 06:33:45 +0000 (UTC) To: eliz@gnu.org, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 15 08:33:40 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 1bvIX9-0002ZN-Ne for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2016 08:33:27 +0200 Original-Received: from localhost ([::1]:50655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvIX8-00049u-9O for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2016 02:33:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvIWY-00049n-RT for emacs-devel@gnu.org; Sat, 15 Oct 2016 02:32:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvIWX-0003kB-Kl for emacs-devel@gnu.org; Sat, 15 Oct 2016 02:32:50 -0400 Original-Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:35046) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bvIWT-0003j1-Ca; Sat, 15 Oct 2016 02:32:45 -0400 Original-Received: by mail-io0-x230.google.com with SMTP id i202so141682334ioi.2; Fri, 14 Oct 2016 23:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ycZ8UPGmnrkcbLTj1wuJkXZABeTJM951RJul/zimnzk=; b=euQkemNMFz4VeUZsLU4rP45lScAWdIviE+tJPwb/uXuJiH9PZkQDwFbr6oYQB3YzSJ Z5AJ7hqQbpC4yz3uU6jpydfvbM23xrAiJuHCqf52p/9LWp6wE5gVCW2e4tjD7pHgujCK ZrFjn0x5CzXbuDYjvC8no0qXl8BO14mq7aJ5F1LB7aoAwYoiVjSoMUSQPgwon3J/9UMh LnJSK0rDrNWZWQiQl0pDr/aPSe0mZSxTIJIyIAt02ryMwa/Hph+RfQeI8Py4n7ahexiR kF9aGFZCsh7P5JJyqaaQGpxw89UXT3Bo8ZAdsdxIHeM89+sdgEdA7ul7YlSkAcWFGnZt Bmdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ycZ8UPGmnrkcbLTj1wuJkXZABeTJM951RJul/zimnzk=; b=FpLGhA/efeq4B4oL5//+FIw5p6tbL728ap5g1tiX9wfWre7oaDVysen1NEH9e8hreb lE+vPJtKoHxNMDq2RXL6pgrzp+VHjlC1JJdBdR9Jhs+JWW9NR/alMqXU/5MrNoo2dX3O 5oDB47rOdF4HRVerkse7/w18QPL1KStbFRkVVU5HHFiFqHbti3Ubj1GlSaCSXo5qKB55 KpRzIAw6Y8O7966PPBor+tipHbwV3vV9SqQihTnMcektkh88xhtJSNrOZzR/NRLbp61/ OQd/y8WiMAQ1OLITKd61NtPNPtovjNau6u32HTXPuiWHnz0mdUeJKmNQ58lRXtcx794k 6dRg== X-Gm-Message-State: AA6/9RmHTop2PCh1KA3jdnYNdElTLZLNg0oSppornpQjZDemSQS1+Ziw/6Za2EQlP8lr+QqpK0CrUsQ2qY9wnA== X-Received: by 10.107.5.72 with SMTP id 69mr14385294iof.132.1476513162728; Fri, 14 Oct 2016 23:32:42 -0700 (PDT) Original-Received: by 10.79.1.149 with HTTP; Fri, 14 Oct 2016 23:32:22 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c06::230 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:208281 Archived-At: --001a113efe2c9219f7053ee182c8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 16.10 has modified gcc to compile with -pie by default. That just must get in the way of unexec. Search "gcc" in https://wiki.ubuntu.com/YakketyYak/ReleaseNotes, I have tried this successfully (both emacs-25 and master): 1. in the git workdir: $ ./autogen.sh 2. in the build directory: $ ...../configure CFLAGS=3D-no-pie and the binaries built fine. On topic, it would be nice if there was a string in the binary that told one how the $(config.status --config), so one could (more) easily rebuild a binary. Something like a function (emacs-configure-options). This has worked with ASLR on (echo 2 > /proc/sys/kernel/randomize_va_space) and with ASLR off (echo 0 > /proc/sys/kernel/randomize_va_space). I hope this helps all to work with the new Ubuntu. --C=C3=A9sar --001a113efe2c9219f7053ee182c8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
16.10 has modified gcc to compile with -pie by default.=C2= =A0 That just must get in the way of unexec.

Search &quo= t;gcc" in=C2=A0https://wiki.ubuntu.com/YakketyYak/ReleaseNotes,=C2=A0
I have tried this successfully (both emacs-25 and master):

1. in the git workdir:

$ ./au= togen.sh

2. in the build directory:

=
$ ...../configure CFLAGS=3D-no-pie <other configure options&g= t;

and the binaries built fine.

On topic, it would be nice if there was a string in the binary that = told one how the $(config.status --config), so one could (more) easily rebu= ild a binary.=C2=A0 Something like a function (emacs-configure-options).

This has worked with ASLR on (echo 2 > /proc/sys/= kernel/randomize_va_space)=C2=A0
and with ASLR off (echo 0 > /= proc/sys/kernel/randomize_va_space).

I hope this h= elps all to work with the new Ubuntu.

--C=C3=A9sar
--001a113efe2c9219f7053ee182c8--