Created attachment 518306 [details] build.log On some systems (I can reproduce this issue on these systems all of the time), but not on others, I am getting an error of the form: ``` /bin/sh: line 1: * Segmentation fault ./wmluiltok < /var/tmp/portage/x11-libs/motif-2.3.8/work/motif-2.3.8/tools/wml/Uil.y > tokens.dat ``` I have checked the versions of gcc and all of motif's direct deps, and they are all identical between the systems on which I get the segfault, and those on which I do not, and they are identical.
Also, this issue recurs with both `=motif-2.3.8` and `=motif-2.3.7`.
Created attachment 518308 [details] emerge --info
Created attachment 518310 [details] kernel .config
The telltale message occurs earlier in the build log: /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -O2 -pipe -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -Wl,-O1 -Wl,--as-needed -o wmluiltok wmluiltok.o -lfl -lfl libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -fno-strict-aliasing -Wall -fno-strict-aliasing -Wno-unused -Wno-comment -Wl,-O1 -o wmluiltok wmluiltok.o -Wl,--as-needed -lfl /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/libfl.a(libmain.o): warning: relocation against `exit@@GLIBC_2.2.5' in readonly section `.text.startup' /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in a shared object. So, please recompile sys-devel/flex and try again. See also bug 583842 comment #26.
Thank you, Ulrich, that solved it.
*** This bug has been marked as a duplicate of bug 583842 ***