x86_64-pc-linux-gnu-gcc -nostdlib `./prefix-args -Xlinker -z nocombreloc` -Wl,-O1 -Wl,--as-needed -Wl,-znocombreloc -o temacs pre-crt0.o /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/crti.o dispnew.o frame.o scroll.o xdisp.o menu.o xmenu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o dbusbind.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o process.o callproc.o region-cache.o sound.o atimer.o doprnt.o strftime.o intervals.o textprop.o composite.o md5.o xfont.o ftfont.o xftfont.o ftxfont.o terminfo.o lastfile.o gmalloc.o ralloc.o vm-limit.o widget.o ../lwlib/liblw.a -lXaw3d -lXmu -lXt -lSM -lICE -lXext -ltiff -ljpeg -lpng -lz -lm -lgif -lXpm -lX11 -lXrender -lXft -lasound -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -ldbus-1 -lgpm -lncurses -lfreetype -lfontconfig -lfreetype -lotf -lfreetype -lm17n-core -lm17n-flt -lm17n-core -lm -lgcc -lc -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/crtn.o /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/crt1.o: relocation R_X86_64_32S against symbol `__libc_csu_fini' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status make[1]: *** [Makefile:144: temacs] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-editors/emacs-23.4-r16/work/emacs-23.4/src' make: *** [Makefile:339: src] Error 2 * ERROR: app-editors/emacs-23.4-r16::gentoo failed (compile phase): * emake failed See attachment 507814 [details] for emerge --info.
Created attachment 507822 [details] build.log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b54f926721074aced28664f5d8080dbc3a1d674 commit 7b54f926721074aced28664f5d8080dbc3a1d674 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2017-12-10 23:42:43 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2017-12-10 23:56:49 +0000 app-editors/emacs: Fix build failure with 17.0 profiles. The following comment from upstream is in configure.ac of emacs-25.3: "-no-pie or -nopie fixes a temacs segfault on Gentoo, OpenBSD, Ubuntu, and other systems with "hardened" GCC configurations for some reason (Bug#18784). We don't know why this works, but not segfaulting is better than segfaulting." Adding -no-pie to 23.4 and 24.5 appears to make them build, too. Note that only append-ldflags fixes the build failure, while append-flags does not (at least not for 23.4). Thanks to Mats Lidell for pointing me to the above upstream comment. Closes: https://bugs.gentoo.org/639568 Closes: https://bugs.gentoo.org/639570 Package-Manager: Portage-2.3.17, Repoman-2.3.6 app-editors/emacs/emacs-23.4-r16.ebuild | 1 + app-editors/emacs/emacs-24.5-r4.ebuild | 1 + 2 files changed, 2 insertions(+)