Created attachment 405158 [details]
With /bin/sh -> bash all tests work fine, but with /bin/sh -> dash src_test fails:
/bin/bash /var/tmp/portage/dev-libs/apr-1.5.2/work/apr-1.5.2/libtool --silent --mode=link x86_64-pc-linux-gnu-gcc -pthread -march=corei7-avx -O2 -pipe -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I../include -I./../include -no-install -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -o testshmproducer testshmproducer.lo ../libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
libtool: error: 'sendfile.lo' is not a valid libtool object
Makefile:104: recipe for target 'sendfile' failed
make: *** [sendfile] Error 1
I'm not sure it is related to sh, because with /bin/sh -> bash, i just had the same issue
And as all tests built fine (and passed) with MAKEOPTS="-j1", it really looks like a race.