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, 23 Sep 2015 10:06:50 +0200 Message-ID: <56025D9A.9080608@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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------050708010808090604080409" X-Trace: ger.gmane.org 1442995644 12503 80.91.229.3 (23 Sep 2015 08:07:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Sep 2015 08:07:24 +0000 (UTC) To: 20614@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 23 10:07:14 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 1Zef57-0005GV-15 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Sep 2015 10:07:13 +0200 Original-Received: from localhost ([::1]:46102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zef56-0004RI-ID for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Sep 2015 04:07:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zef50-0004Q3-Ob for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2015 04:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zef4x-0001Zd-E4 for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2015 04:07:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zef4x-0001ZZ-9P for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2015 04:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zef4w-0003RD-Py for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2015 04:07:02 -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, 23 Sep 2015 08:07: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.144299562013207 (code B ref 20614); Wed, 23 Sep 2015 08:07:02 +0000 Original-Received: (at 20614) by debbugs.gnu.org; 23 Sep 2015 08:07:00 +0000 Original-Received: from localhost ([127.0.0.1]:42292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zef4s-0003Qv-Lr for submit@debbugs.gnu.org; Wed, 23 Sep 2015 04:07:00 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:39038) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zef4o-0003Qk-Nm for 20614@debbugs.gnu.org; Wed, 23 Sep 2015 04:06:56 -0400 Original-Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 0AEE1C0A149A for <20614@debbugs.gnu.org>; Wed, 23 Sep 2015 08:06:53 +0000 (UTC) Original-Received: from [10.34.4.133] (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8N86o7G015008 for <20614@debbugs.gnu.org>; Wed, 23 Sep 2015 04:06:52 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <56012AA6.7010702@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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:106818 Archived-At: This is a multi-part message in MIME format. --------------050708010808090604080409 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Is there any possibility how to suppress dumping emacs? Shall I add something to ./configure script or even to make? Greetings On 09/22/2015 12:17 PM, Petr Hracek wrote: > I have a question: > > would it be possible to remove unexelf.c code and replace them with a > "just map a file with pre-compiled byte code" as advice me a > colleagues in Red Hat? > > It seems that this code is also incompatible with PIE. > > Together with our binutils-2.23.52.0.1-54 > (https://bugzilla.redhat.com/show_bug.cgi?id=1247126) > it segfaults each time. Now. > What do you think about it? > > Nowadays I have commented out the code mentioned on line > http://git.savannah.gnu.org/cgit/emacs.git/tree/src/unexelf.c?h=emacs-24#n869 > and afterwards is fails with > Finding pointers to doc strings... > Finding pointers to doc strings...done > Dumping under the name emacs > /bin/sh: line 7: 15764 Segmentation fault `/bin/pwd`/temacs --batch --load loadup bootstrap > make[2]: *** [bootstrap-emacs] Error 1 > make[2]: Leaving directory `/builddir/build/BUILD/emacs-24.3/build-gtk/src' > > > Important version of packages: > glibc-2.17-103.el7.ppc64le > gcc-4.8.5-4.el7.ppc64le > binutils-2.23.52.0.1-54.el7.ppc64le > Greetings Petr On 09/16/2015 01:28 PM, Petr Hracek wrote: >> On 07/14/2015 09:52 AM, Petr Hracek wrote: >>> On 07/13/2015 03:16 PM, Andreas Schwab wrote: >>>> Petr Hracek writes: >>>>> Does emacs-24.3 support ppc64le? >>>> https://build.opensuse.org/package/binaries/openSUSE:13.2/emacs?repository=ports >>>> http://download.opensuse.org/ports/ppc/distribution/13.2/repo/oss/suse/ppc64le/emacs-x11-24.3-17.2.2.ppc64le.rpm >>>> Andreas. >>> I have find out that the error message Loading >>> /home/phracek/rpmbuild/BUILD/emacs-24.3/lisp/tooltip.el (source)... >>> Finding pointers to doc strings... Finding pointers to doc >>> strings...done Dumping under the name emacs emacs: Program segment >>> above .bss in >>> /home/phracek/rpmbuild/BUILD/emacs-24.3/build-gtk/src/temacs >>> make[2]: *** [bootstrap-emacs] Error 1 comes from file src/unexelf.c >>> line 860 (emacs-24.3) What this function does? I saw in openSUSE >>> SRPM that option --with-wide-int is used. In Fedora or RHEL we are >>> not using it. Options which are used for compiling are: ./configure >>> --build=powerpc64le-redhat-linux-gnu >>> --host=powerpc64le-redhat-linux-gnu --program-prefix= >>> --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr >>> --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc >>> --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 >>> --libexecdir=/usr/libexec --localstatedir=/var >>> --sharedstatedir=/var/lib --mandir=/usr/share/man >>> --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg >>> --with-png --with-rsvg --with-tiff --with-xft --with-xpm >>> --with-x-toolkit=gtk3 --with-gpm=no >>> build_alias=powerpc64le-redhat-linux-gnu >>> host_alias=powerpc64le-redhat-linux-gnu CFLAGS=-DMAIL_USE_LOCKF -O2 >>> -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >>> -fstack-protector-strong --param=ssp-buffer-size=4 >>> -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8 >>> LDFLAGS=-Wl,-z,relro --no-create --no-recursion >> Building emacs package on Fedora or even on OpenSuse works fine. But >> under RHEL-7 still fails. Emacs is build up with full RELRO, though. >> Version of packages which are used for compilation are: gcc-4.8.3 >> automake-1.13.4 autoconf-2.69 Compilation flags are: >> ./configure --build=ppc64le-redhat-linux-gnu --host=ppc64le-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-link-time-optimization --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no >> + LDFLAGS=-Wl,-z,relro >> + export LDFLAGS >> + CFLAGS='-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8' >> + export CFLAGS >> + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8' >> + export CXXFLAGS >> + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8 -I/usr/lib64/gfortran/modules' >> + export FFLAGS >> + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8 -I/usr/lib64/gfortran/modules' >> + export FCFLAGS >> + LDFLAGS=-Wl,-z,relro >> + export LDFLAGS >> emacs is SPEC file is compiled so that in %prep section is: - setup - >> patching some files - ./autogen.sh %build section for emacs-gtk: - >> ./configure is called. - make bootstrap - make %build section for >> emacs-nox is: - ./configure is called. - make Is this correct? >> Compilator has settings like: >> CC='gcc -std=gnu99' CFLAGS='-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8 -flto=32' CPPFLAGS='' \ >> LDFLAGS='-Wl,-z,relro -Wl,-znocombreloc ' MAKE='make' >> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/builddir/build/BUILD/emacs-24.3/lib -I../src -I/builddir/build/BUILD/emacs-24.3/src -DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8 -flto=32 -c /builddir/build/BUILD/emacs-24.3/lib/allocator.c >> linker has a settings like: >> gcc -std=gnu99 -I. -I../src -I../lib -I/builddir/build/BUILD/emacs-24.3/lib-src -I/builddir/build/BUILD/emacs-24.3/lib-src/../src -I/builddir/build/BUILD/emacs-24.3/lib-src/../lib -Wl,-z,relro -Wl,-znocombreloc -DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8 -flto=32 -DEMACS_NAME="\"GNU Emacs\"" \ >> -DVERSION="\"24.3\"" /builddir/build/BUILD/emacs-24.3/lib-src/etags.c \ >> regex.o ../lib/libgnu.a -o etags >> >> Before segmentation fault build log is: >> if test "no" = "yes"; then \ >> rm -f bootstrap-emacs; \ >> ln temacs bootstrap-emacs; \ >> else \ >> `/bin/pwd`/temacs --batch --load loadup bootstrap || exit 1; \ >> test "X" = X || -zex emacs; \ >> mv -f emacs bootstrap-emacs; \ >> fi >> Loading loadup.el (source)... >> Using load-path (/builddir/build/BUILD/emacs-24.3/lisp /builddir/build/BUILD/emacs-24.3/lisp/emacs-lisp /builddir/build/BUILD/emacs-24.3/lisp/language /builddir/build/BUILD/emacs-24.3/lisp/international /builddir/build/BUILD/emacs-24.3/lisp/textmodes) >> Loading emacs-lisp/byte-run (source)... >> Loading emacs-lisp/backquote (source)... >> [ .. snip ...]dir/build/BUILD/emacs-24.3/lisp/vc/vc-hooks.el (source)... >> Loading /builddir/build/BUILD/emacs-24.3/lisp/vc/ediff-hook.el (source)... >> Loading /builddir/build/BUILD/emacs-24.3/lisp/tooltip.el (source)... >> Finding pointers to doc strings... >> Finding pointers to doc strings...done >> Dumping under the name emacs >> emacs: Program segment above .bss in /builddir/build/BUILD/emacs-24.3/build-gtk/src/temacs >> make[2]: *** [bootstrap-emacs] Error 1 >> make[2]: Leaving directory `/builddir/build/BUILD/emacs-24.3/build-gtk/src' >> make[1]: *** [src] Error 2 >> Part of code which is relevant is from src/unexelf.c: for (n = >> new_file_h->e_phnum; --n >= 0; ) { /* Compute maximum of >> all requirements for alignment of section. */ ElfW (Word) >> alignment = (NEW_PROGRAM_H (n)).p_align; if ((OLD_SECTION_H >> (old_bss_index)).sh_addralign > alignment) alignment = >> OLD_SECTION_H (old_bss_index).sh_addralign; #ifdef __sgi /* >> According to r02kar@x4u2.desy.de (Karsten Kuenne) and >> oliva@gnu.org (Alexandre Oliva), on IRIX 5.2, we always get >> "Program segment above .bss" when dumping when the >> executable doesn't have an sbss section. */ if (old_sbss_index >> != -1) #endif /* __sgi */ if (NEW_PROGRAM_H (n).p_vaddr + >> NEW_PROGRAM_H (n).p_filesz > (old_sbss_index == -1 ? >> old_bss_addr : round_up (old_bss_addr, alignment))) *fatal >> ("Program segment above .bss in %s", old_name);* if >> (NEW_PROGRAM_H (n).p_type == PT_LOAD If I understand there shouldn't >> be a problem on ppc64le. But I don't understand a code at all. >> -- >> Petr Hracek >> Software Engineer >> Developer Experience >> Red Hat, Inc >> Mob: +420777056169 >> email:phracek@redhat.com > -- > Petr Hracek > Software Engineer > Developer Experience > Red Hat, Inc > Mob: +420777056169 > email:phracek@redhat.com -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: phracek@redhat.com --------------050708010808090604080409 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
Is there any possibility how to suppress dumping emacs?
Shall I add something to ./configure script or even to make?

Greetings

On 09/22/2015 12:17 PM, Petr Hracek wrote:
I have a question:

would it be possible to remove unexelf.c code and replace them with a
"just map a file with pre-compiled byte code" as advice me a colleagues in Red Hat?

It seems that this code is also incompatible with PIE.

Together with our binutils-2.23.52.0.1-54 (https://bugzilla.redhat.com/show_bug.cgi?id=1247126)
it segfaults each time. Now.
What do you think about it?

Nowadays I have commented out the code mentioned on line
http://git.savannah.gnu.org/cgit/emacs.git/tree/src/unexelf.c?h=emacs-24#n869
and afterwards is fails with
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
/bin/sh: line 7: 15764 Segmentation fault      `/bin/pwd`/temacs --batch --load loadup bootstrap
make[2]: *** [bootstrap-emacs] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/emacs-24.3/build-gtk/src'


Important version of packages:
glibc-2.17-103.el7.ppc64le
gcc-4.8.5-4.el7.ppc64le
binutils-2.23.52.0.1-54.el7.ppc64le
Greetings Petr On 09/16/2015 01:28 PM, Petr Hracek wrote:
On 07/14/2015 09:52 AM, Petr Hracek wrote:
On 07/13/2015 03:16 PM, Andreas Schwab wrote:
Petr Hracek <phracek@redhat.com> writes:
Does emacs-24.3 support ppc64le?
https://build.opensuse.org/package/binaries/openSUSE:13.2/emacs?repository=ports http://download.opensuse.org/ports/ppc/distribution/13.2/repo/oss/suse/ppc64le/emacs-x11-24.3-17.2.2.ppc64le.rpm Andreas.
I have find out that the error message Loading /home/phracek/rpmbuild/BUILD/emacs-24.3/lisp/tooltip.el (source)... Finding pointers to doc strings... Finding pointers to doc strings...done Dumping under the name emacs emacs: Program segment above .bss in /home/phracek/rpmbuild/BUILD/emacs-24.3/build-gtk/src/temacs make[2]: *** [bootstrap-emacs] Error 1 comes from file src/unexelf.c line 860 (emacs-24.3) What this function does? I saw in openSUSE SRPM that option --with-wide-int is used. In Fedora or RHEL we are not using it. Options which are used for compiling are: ./configure --build=powerpc64le-redhat-linux-gnu --host=powerpc64le-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=powerpc64le-redhat-linux-gnu host_alias=powerpc64le-redhat-linux-gnu CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power8 LDFLAGS=-Wl,-z,relro  --no-create --no-recursion
Building emacs package on Fedora or even on OpenSuse works fine. But under RHEL-7 still fails. Emacs is build up with full RELRO, though. Version of packages which are used for compilation are: gcc-4.8.3 automake-1.13.4 autoconf-2.69 Compilation flags are:
./configure --build=ppc64le-redhat-linux-gnu --host=ppc64le-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-link-time-optimization --with-dbus --with-gif --with-jpeg -
 -with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no
+ LDFLAGS=-Wl,-z,relro
+ export LDFLAGS
+ CFLAGS='-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power8'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power8'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power8 -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power8 -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS=-Wl,-z,relro
+ export LDFLAGS
emacs is SPEC file is compiled so that in %prep section is: - setup - patching some files - ./autogen.sh %build section for emacs-gtk: - ./configure is called. - make bootstrap - make %build section for emacs-nox is: - ./configure is called. - make Is this correct? Compilator has settings like:
CC='gcc -std=gnu99' CFLAGS='-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power8 -flto=32' CPPFLAGS='' \
  LDFLAGS='-Wl,-z,relro -Wl,-znocombreloc ' MAKE='make'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/builddir/build/BUILD/emacs-24.3/lib -I../src -I/builddir/build/BUILD/emacs-24.3/src      -DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power8 -flto=32 -c /builddir/build/BUILD/emacs-24.3/lib/allocator.c
linker has a settings like:
gcc -std=gnu99     -I. -I../src -I../lib -I/builddir/build/BUILD/emacs-24.3/lib-src -I/builddir/build/BUILD/emacs-24.3/lib-src/../src -I/builddir/build/BUILD/emacs-24.3/lib-src/../lib  -Wl,-z,relro -Wl,-znocombreloc   -DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power8 -flto=32 -DEMACS_NAME="\"GNU Emacs\"" \
  -DVERSION="\"24.3\"" /builddir/build/BUILD/emacs-24.3/lib-src/etags.c \
  regex.o ../lib/libgnu.a  -o etags

Before segmentation fault build log is:
if test "no" = "yes"; then \
  rm -f bootstrap-emacs; \
  ln temacs bootstrap-emacs; \
else \
  `/bin/pwd`/temacs --batch --load loadup bootstrap || exit 1; \
  test "X" = X ||  -zex emacs; \
  mv -f emacs bootstrap-emacs; \
fi
Loading loadup.el (source)...
Using load-path (/builddir/build/BUILD/emacs-24.3/lisp /builddir/build/BUILD/emacs-24.3/lisp/emacs-lisp /builddir/build/BUILD/emacs-24.3/lisp/language /builddir/build/BUILD/emacs-24.3/lisp/international /builddir/build/BUILD/emacs-24.3/lisp/textmodes)
Loading emacs-lisp/byte-run (source)...
Loading emacs-lisp/backquote (source)...
[ .. snip ...]dir/build/BUILD/emacs-24.3/lisp/vc/vc-hooks.el (source)...
Loading /builddir/build/BUILD/emacs-24.3/lisp/vc/ediff-hook.el (source)...
Loading /builddir/build/BUILD/emacs-24.3/lisp/tooltip.el (source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
emacs: Program segment above .bss in /builddir/build/BUILD/emacs-24.3/build-gtk/src/temacs
make[2]: *** [bootstrap-emacs] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/emacs-24.3/build-gtk/src'
make[1]: *** [src] Error 2
Part of code which is relevant is from src/unexelf.c:   for (n = new_file_h->e_phnum; --n >= 0; )     {       /* Compute maximum of all requirements for alignment of section.  */       ElfW (Word) alignment = (NEW_PROGRAM_H (n)).p_align;       if ((OLD_SECTION_H (old_bss_index)).sh_addralign > alignment)     alignment = OLD_SECTION_H (old_bss_index).sh_addralign; #ifdef __sgi       /* According to r02kar@x4u2.desy.de (Karsten Kuenne)          and oliva@gnu.org (Alexandre Oliva), on IRIX 5.2, we          always get "Program segment above .bss" when dumping          when the executable doesn't have an sbss section.  */       if (old_sbss_index != -1) #endif /* __sgi */       if (NEW_PROGRAM_H (n).p_vaddr + NEW_PROGRAM_H (n).p_filesz       > (old_sbss_index == -1          ? old_bss_addr          : round_up (old_bss_addr, alignment)))       fatal ("Program segment above .bss in %s", old_name);       if (NEW_PROGRAM_H (n).p_type == PT_LOAD If I understand there shouldn't be a problem on ppc64le. But I don't understand a code at all.
-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek@redhat.com
-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek@redhat.com
-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek@redhat.com
--------------050708010808090604080409--