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, 16 Sep 2015 13:28:53 +0200 Message-ID: <55F95275.4040209@redhat.com> References: <555C3E3C.4090700@redhat.com> <1gpp5vi5xn.fsf@fencepost.gnu.org> <555DD5D3.3020207@redhat.com> <55A3A08A.9060905@redhat.com> <55A4BFB7.3010208@redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080209020003040704000004" X-Trace: ger.gmane.org 1442403029 27852 80.91.229.3 (16 Sep 2015 11:30:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2015 11:30:29 +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 16 13:30:18 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 1ZcAum-0000OK-9V for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Sep 2015 13:30:16 +0200 Original-Received: from localhost ([::1]:49344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcAul-0005u0-Kq for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Sep 2015 07:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcAuf-0005tB-R7 for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2015 07:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcAub-0006yD-GX for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2015 07:30:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcAub-0006y3-E5 for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2015 07:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZcAua-0000Rl-Q4 for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2015 07:30:04 -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, 16 Sep 2015 11:30:04 +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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14424029541634 (code B ref -1); Wed, 16 Sep 2015 11:30:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2015 11:29:14 +0000 Original-Received: from localhost ([127.0.0.1]:34127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcAtk-0000QG-CP for submit@debbugs.gnu.org; Wed, 16 Sep 2015 07:29:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55826) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcAth-0000Q7-0j for submit@debbugs.gnu.org; Wed, 16 Sep 2015 07:29:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcAte-0006dL-33 for submit@debbugs.gnu.org; Wed, 16 Sep 2015 07:29:08 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcAte-0006dH-0C for submit@debbugs.gnu.org; Wed, 16 Sep 2015 07:29:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcAtY-0005gL-KO for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2015 07:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcAtU-0006ar-HU for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2015 07:29:00 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:54804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcAtU-0006aZ-6o for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2015 07:28:56 -0400 Original-Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 62B44C0B9191 for ; Wed, 16 Sep 2015 11:28:55 +0000 (UTC) Original-Received: from [10.34.4.133] (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8GBSrox027301 for ; Wed, 16 Sep 2015 07:28:54 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <55A4BFB7.3010208@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:106638 Archived-At: This is a multi-part message in MIME format. --------------080209020003040704000004 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 --------------080209020003040704000004 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
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.opens= use.org/package/binaries/openSUSE:13.2/emacs?repository=3Dports
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=3Dpowerpc64le-redhat-linux-gnu --host=3Dpowerpc64le-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/= lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno build_alias=3Dpowerpc64le-redhat-linux-gnu host_alias=3Dpowerpc64le-redhat-linux-gnu CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches=A0=A0 -m64 -mcpu=3Dpower7 -mtune=3Dpower8 LDFLAGS=3D-Wl,-z,relro=A0 --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=3Dppc64le-redha=
t-linux-gnu --host=3Dppc64le-redhat-linux-gnu --program-prefix=3D --disab=
le-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/u=
sr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share -=
-includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libe=
xec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/sh=
are/man --infodir=3D/usr/share/info --enable-link-time-optimization --wit=
h-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-x=
ft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno

+ LDFLAGS=3D-Wl,-z,relro
+ export LDFLAGS
+ CFLAGS=3D'-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2=
 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=3D4 -gre=
cord-gcc-switches   -m64 -mcpu=3Dpower7 -mtune=3Dpower8'
+ export CFLAGS
+ CXXFLAGS=3D'-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -=
fstack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switch=
es   -m64 -mcpu=3Dpower7 -mtune=3Dpower8'
+ export CXXFLAGS
+ FFLAGS=3D'-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fs=
tack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches=
   -m64 -mcpu=3Dpower7 -mtune=3Dpower8 -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS=3D'-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -f=
stack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switche=
s   -m64 -mcpu=3Dpower7 -mtune=3Dpower8 -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS=3D-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=3D'gcc -std=3Dgnu99' CFLAGS=3D'-=
DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions=
 -fstack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-swit=
ches   -m64 -mcpu=3Dpower7 -mtune=3Dpower8 -flto=3D32' CPPFLAGS=3D'' \
  LDFLAGS=3D'-Wl,-z,relro -Wl,-znocombreloc ' MAKE=3D'make'
gcc -std=3Dgnu99 -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_S=
OURCE=3D2 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=
=3D4 -grecord-gcc-switches   -m64 -mcpu=3Dpower7 -mtune=3Dpower8 -flto=3D=
32 -c /builddir/build/BUILD/emacs-24.3/lib/allocator.c
linker has a settings like:
gcc -std=3Dgnu99     -I. -I../src -=
I../lib -I/builddir/build/BUILD/emacs-24.3/lib-src -I/builddir/build/BUIL=
D/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 -Wal=
l -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --param=
=3Dssp-buffer-size=3D4 -grecord-gcc-switches   -m64 -mcpu=3Dpower7 -mtune=
=3Dpower8 -flto=3D32 -DEMACS_NAME=3D"\"GNU Emacs\"" \
  -DVERSION=3D"\"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" =3D "yes"; then \
  rm -f bootstrap-emacs; \
  ln temacs bootstrap-emacs; \
else \
  `/bin/pwd`/temacs --batch --load loadup bootstrap || exit 1; \
  test "X" =3D 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/BU=
ILD/emacs-24.3/lisp/emacs-lisp /builddir/build/BUILD/emacs-24.3/lisp/lang=
uage /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/bui=
ld-gtk/src/temacs
make[2]: *** [bootstrap-emacs] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/emacs-24.3/build-gtk/sr=
c'
make[1]: *** [src] Error 2

Part of code which is relevant is from src/unexelf.c: =A0 for (n =3D new_file_h->e_phnum; --n >=3D 0; ) =A0=A0=A0 { =A0=A0=A0=A0=A0 /* Compute maximum of all requirements for alignment of s= ection.=A0 */ =A0=A0=A0=A0=A0 ElfW (Word) alignment =3D (NEW_PROGRAM_H (n)).p_align; =A0=A0=A0=A0=A0 if ((OLD_SECTION_H (old_bss_index)).sh_addralign > ali= gnment) =A0=A0=A0 alignment =3D OLD_SECTION_H (old_bss_index).sh_addralign; #ifdef __sgi =A0=A0=A0 =A0 /* According to r02kar@x4u2.desy.de (Karsten Kuenne) =A0=A0=A0 =A0=A0=A0=A0 and oliva@gnu.org (Alexandre Oliva), on IRIX 5.2, w= e =A0=A0=A0 =A0=A0=A0=A0 always get "Program segment above .bss" when dumpi= ng =A0=A0=A0 =A0=A0=A0=A0 when the executable doesn't have an sbss section.=A0= */ =A0=A0=A0=A0=A0 if (old_sbss_index !=3D -1) #endif /* __sgi */ =A0=A0=A0=A0=A0 if (NEW_PROGRAM_H (n).p_vaddr + NEW_PROGRAM_H (n).p_files= z =A0=A0=A0 =A0 > (old_sbss_index =3D=3D -1 =A0=A0=A0 =A0=A0=A0=A0 ? old_bss_addr =A0=A0=A0 =A0=A0=A0=A0 : round_up (old_bss_addr, alignment))) =A0=A0=A0 =A0 fatal ("Program segment above .bss in %s", old_name); =A0=A0=A0=A0=A0 if (NEW_PROGRAM_H (n).p_type =3D=3D PT_LOAD If I understand there shouldn't be a problem on ppc64le. But I don't understand a code at all.
--=20
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek@redhat.com
--------------080209020003040704000004--