x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/motif-2.3.8-r1/work/motif-2.3.8/tools/wml -I../../include -I../../lib/Xm -I../../lib -I/var/tmp/portage/x11-libs/motif-2.3.8-r1/work/motif-2.3.8/tools/wml/../../lib -I/var/tmp/portage/x11-libs/motif-2.3.8-r1/work/motif-2.3.8/tools/wml/../../include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=native -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -c -o wmlutils.o /var/tmp/portage/x11-libs/motif-2.3.8-r1/work/motif-2.3.8/tools/wml/wmlutils.c rm -f libwml.a x86_64-pc-linux-gnu-ar cru libwml.a wmlparse.o wml.o wmloutkey.o wmlouth.o wmloutmm.o wmloutp1.o wmlresolve.o wmlsynbld.o wmlutils.o x86_64-pc-linux-gnu-ranlib libwml.a /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wl,-O1 -Wl,--as-needed -o wml wml.o -L. -lwml -lfontconfig -lfreetype -lXft -ljpeg -lpng libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wl,-O1 -o wml wml.o -Wl,--as-needed -L. -lwml -lfontconfig -lfreetype -lXft -ljpeg -lpng rm -f UilConst.h UilKeyTab.h UilSymArTa.h UilSymArTy.h UilSymCSet.h UilSymCtl.h UilSymEnum.h UilSymGen.h UilSymNam.h UilSymRArg.h UilSymReas.h UilTokName.h UilUrmClas.h UilSymChCl.h UilSymChTa.h wml.report wml-uil.mm ./wmluiltok </var/tmp/portage/x11-libs/motif-2.3.8-r1/work/motif-2.3.8/tools/wml/Uil.y >tokens.dat ./wmluiltok: Symbol `exit' causes overflow in R_X86_64_PC32 relocation /bin/sh: line 1: 5579 Segmentation fault ./wmluiltok < /var/tmp/portage/x11-libs/motif-2.3.8-r1/work/motif-2.3.8/tools/wml/Uil.y > tokens.dat make[2]: *** [Makefile:850: wml-uil.mm] Error 139 make[2]: Leaving directory '/var/tmp/portage/x11-libs/motif-2.3.8-r1/work/motif-2.3.8-abi_x86_64.amd64/tools/wml' make[1]: *** [Makefile:394: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-libs/motif-2.3.8-r1/work/motif-2.3.8-abi_x86_64.amd64/tools' make: *** [Makefile:451: all-recursive] Error 1 ==== Portage 2.3.40 (python 3.6.5-final-0, default/linux/amd64/17.0/no-multilib, gcc-7.3.0, glibc-2.27-r4, 4.14.47-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.14.47-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.6 KiB Mem: 8057536 total, 452924 free KiB Swap: 7679996 total, 7311908 free Head commit of repository gentoo: 879fb42cf0830220da9707c004103b920c165763 sh bash 4.4_p23 ld GNU ld (Gentoo 2.30 p3) 2.30.0 ccache version 3.3.4 [enabled] app-shells/bash: 4.4_p23::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.5-r1::gentoo dev-util/ccache: 3.3.4-r1::gentoo dev-util/cmake: 3.11.4::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6::gentoo sys-apps/openrc: 0.37::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.30-r3::gentoo sys-devel/gcc: 6.4.0-r1::gentoo, 7.3.0-r3::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r3::gentoo sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.27-r4::gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe"
Thank you for the report. Please recompile and *attach* the foll logfiles and paste the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket Please reopen this ticket (Status:unconfirmed) afterwards.
Rebuilding sys-devel/flex solved this problem for me.
*** This bug has been marked as a duplicate of bug 583842 ***