From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Petr Hracek Newsgroups: gmane.emacs.bugs Subject: bug#20614: Segmentation fault when building on Power8 Little Endian Date: Wed, 30 Sep 2015 12:39:47 +0200 Message-ID: <560BBBF3.6000407@redhat.com> References: <555C3E3C.4090700@redhat.com> <1gpp5vi5xn.fsf@fencepost.gnu.org> <555DD5D3.3020207@redhat.com> <55A3A08A.9060905@redhat.com> <55A4BFB7.3010208@redhat.com> <55F95275.4040209@redhat.com> <56012AA6.7010702@redhat.com> <56025D9A.9080608@redhat.com> <838u7xlbsn.fsf@gnu.org> <56028633.3000303@redhat.com> <83zj0djskx.fsf@gnu.org> <56029707.9040100@redhat.com> <83wpvhjpdd.fsf@gnu.org> <5603D8BE.10300@redhat.com> <834mijkf36.fsf@gnu.org> <56043950.7040108@redhat.com> <83k2rdhaso.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080002040005010602030708" X-Trace: ger.gmane.org 1443681361 3098 80.91.229.3 (1 Oct 2015 06:36:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 06:36:01 +0000 (UTC) Cc: 20614@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 08:35:53 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZhXT4-0004pk-Gq for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 08:35:50 +0200 Original-Received: from localhost ([::1]:38642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhXT3-0000vs-9o for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 02:35:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhEnv-0000YF-SG for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 06:40:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhEnr-0001hS-Od for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 06:40:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhEnr-0001hC-Ja for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 06:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZhEnr-0005F6-1d for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 06:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Petr Hracek Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2015 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20614 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20614-submit@debbugs.gnu.org id=B20614.144360959420133 (code B ref 20614); Wed, 30 Sep 2015 10:40:02 +0000 Original-Received: (at 20614) by debbugs.gnu.org; 30 Sep 2015 10:39:54 +0000 Original-Received: from localhost ([127.0.0.1]:48720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhEnh-0005Ef-MC for submit@debbugs.gnu.org; Wed, 30 Sep 2015 06:39:54 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:40635) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhEne-0005EV-Fy for 20614@debbugs.gnu.org; Wed, 30 Sep 2015 06:39:52 -0400 Original-Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 98DE68C1B8 for <20614@debbugs.gnu.org>; Wed, 30 Sep 2015 10:39:49 +0000 (UTC) Original-Received: from [10.34.4.133] (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8UAdmNI007032 for <20614@debbugs.gnu.org>; Wed, 30 Sep 2015 06:39:48 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <83k2rdhaso.fsf@gnu.org> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107097 Archived-At: This is a multi-part message in MIME format. --------------080002040005010602030708 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 09/26/2015 09:58 AM, Eli Zaretskii wrote: >> Cc: 20614@debbugs.gnu.org >> From: Petr Hracek >> Date: Thu, 24 Sep 2015 19:56:32 +0200 >> >> On 09/24/2015 05:32 PM, Eli Zaretskii wrote: >>>> From: Petr Hracek >>>> Date: Thu, 24 Sep 2015 13:04:30 +0200 >>>> >>>> emacs: Program segment above .bss in >>> I'm confused: earlier you said that you've commented out this error, >>> and you still couldn't build Emacs with the latest Binutils. What is >>> the problem in that case? >> Good point. >> I didn't use a workaround in the latest mail. I use the clear emacs >> tarball and added some >> debug information so that we are able to detect and hopefully correct >> the problem. >> I would like to solve the problem. Not to use workaround :) >> >> The message emacs: Program segment above .bss causes fails >> and emacs is not buildable still. > Can you show the same series of messages emitted when Emacs is built > with an older version of Binutils? My deep observation with emacs package and binutils: 1) binutils-2.23.52.0.1-30.el7_1.2.ppc64le.rpm works completely. 2) binutils-2.23.52.0.1-40.el7.ppc64le.rpm works if row http://git.savannah.gnu.org/cgit/emacs.git/tree/src/unexelf.c?h=emacs-24#n869 is suppressed. With newer version of binutils I can see the same series:( like: Dumping under the name emacs emacs: Program segment above .bss in /builddir/build/BUILD/emacs-24.3/src/temacs make[2]: Leaving directory `/builddir/build/BUILD/emacs-24.3/src' make[2]: *** [bootstrap-emacs] Error 1 I have collected list of commits and messages against upstream: #1200138 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=43a8475ca01b676fb764aaed0c4ed1cc16fc3c87 #1200138 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eec2f3ed9f053653ed5d629eb50e08e3ee61e9bd #1203449 https://bugzilla.redhat.com/attachment.cgi?id=1003499 # 1175624 .opd https://sourceware.org/ml/binutils/2015-01/msg00227.html # 1175624 .got which implies .sdata, .sbss, .plt .iplt and .branch_lt also have to move: https://sourceware.org/ml/binutils/2015-01/msg00228.html # 1175624 And .toc1: https://sourceware.org/ml/binutils/2015-01/msg00232.html #1194164 func@localentry expressions, which was added to FSF binutils with git commit 45965137 #1183838 https://bugzilla.redhat.com/attachment.cgi?id=986213 # 1172766 https://bugzilla.redhat.com/attachment.cgi?id=989450 I hope it helps you a bit. -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: phracek@redhat.com --------------080002040005010602030708 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit
On 09/26/2015 09:58 AM, Eli Zaretskii wrote:
Cc: 20614@debbugs.gnu.org
From: Petr Hracek <phracek@redhat.com>
Date: Thu, 24 Sep 2015 19:56:32 +0200

On 09/24/2015 05:32 PM, Eli Zaretskii wrote:
From: Petr Hracek <phracek@redhat.com>
Date: Thu, 24 Sep 2015 13:04:30 +0200

emacs: Program segment above .bss in
I'm confused: earlier you said that you've commented out this error,
and you still couldn't build Emacs with the latest Binutils.  What is
the problem in that case?
Good point.
I didn't use a workaround in the latest mail. I use the clear emacs 
tarball and added some
debug information so that we are able to detect and hopefully correct 
the problem.
I would like to solve the problem. Not to use workaround :)

The message emacs: Program segment above .bss causes fails
and emacs is not buildable still.
Can you show the same series of messages emitted when Emacs is built
with an older version of Binutils?
My deep observation with emacs package and binutils:
1) binutils-2.23.52.0.1-30.el7_1.2.ppc64le.rpm works completely.
2) binutils-2.23.52.0.1-40.el7.ppc64le.rpm works if row http://git.savannah.gnu.org/cgit/emacs.git/tree/src/unexelf.c?h=emacs-24#n869
is suppressed.

With newer version of binutils I can see the same series:(
like:
Dumping under the name emacs
emacs: Program segment above .bss in /builddir/build/BUILD/emacs-24.3/src/temacs
make[2]: Leaving directory `/builddir/build/BUILD/emacs-24.3/src'
make[2]: *** [bootstrap-emacs] Error 1

I have collected list of commits and messages against upstream:
#1200138 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=43a8475ca01b676fb764aaed0c4ed1cc16fc3c87 #1200138 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eec2f3ed9f053653ed5d629eb50e08e3ee61e9bd #1203449 https://bugzilla.redhat.com/attachment.cgi?id=1003499 # 1175624 .opd https://sourceware.org/ml/binutils/2015-01/msg00227.html
# 1175624 .got which implies .sdata, .sbss, .plt .iplt and .branch_lt also have to move: https://sourceware.org/ml/binutils/2015-01/msg00228.html
# 1175624 And .toc1: https://sourceware.org/ml/binutils/2015-01/msg00232.html
#1194164 func@localentry expressions, which was added to FSF binutils with git commit 45965137
#1183838 https://bugzilla.redhat.com/attachment.cgi?id=986213
# 1172766 https://bugzilla.redhat.com/attachment.cgi?id=989450 I hope it helps you a bit.
-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek@redhat.com
--------------080002040005010602030708--