Created attachment 656202 [details] emerge --info When built with USE='libedit -readline -static' I get this segfault at building. Other USE-flag combinations work fine. [...] make[3]: Entering directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc' powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./../h -O2 -mcpu=970 -pipe -Wall -funsigned-char -O2 -mcpu=970 -pipe -Wall -funsigned-char -c -o global.o global.c make[3]: Leaving directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc' powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=970 -pipe -Wall -funsigned-char -O2 -mcpu=970 -pipe -Wall -funsigned-char -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o libmath.h -o fbc main.o bc.o scan.o execute.o load.o storage.o util.o warranty.o global.o ../lib/libbc.a -lfl -ledit ./fbc -c ./libmath.b </dev/null >libmath.h /bin/sh: line 1: 89 Segmentation fault (core dumped) ./fbc -c ./libmath.b < /dev/null > libmath.h make[2]: *** [Makefile:631: libmath.h] Error 139 make[2]: Leaving directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc' make[1]: *** [Makefile:357: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1' make: *** [Makefile:297: all] Error 2 * ERROR: sys-devel/bc-1.07.1-r3::gentoo failed (compile phase): * emake failed From systemd's autogenerated coredump: Stack trace of thread 89: #0 0x00003fffb3fe3b40 __GI___fileno (libc.so.6 + 0xa8b40) #1 0x000000012037eca0 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x6ca0) #2 0x000000012037eca0 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x6ca0) #3 0x000000012037ede4 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x6de4) #4 0x000000012037f340 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x7340) #5 0x000000012037fe64 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x7e64) #6 0x000000012037c954 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x4954) #7 0x000000012037b760 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x3760) #8 0x00003fffb3f83d30 generic_start_main (libc.so.6 + 0x48d30) #9 0x00003fffff1fb14b n/a (n/a + 0x0) #10 0x00003fffff1fb14b n/a (n/a + 0x0) #11 0x5354415455533d31 n/a (n/a + 0x0) Reading symbols from /var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc... [New LWP 89] Core was generated by `./fbc -c ./libmath.b '. Program terminated with signal SIGSEGV, Segmentation fault. #0 __GI___fileno (fp=0x1b7147ac8290) at fileno.c:35 35 if (!(fp->_flags & _IO_IS_FILEBUF) || _IO_fileno (fp) < 0)
Created attachment 656204 [details] build.log