The following message is displayed and fails to compile on Gentoo/FBSD. config.status: build in i686-gentoo-freebsd8.0 (HOST=) config.status: executing depfiles commands config.status: executing libtool commands config.status: executing include commands config.status: executing src commands >>> Source configured. /usr/portage/profiles/default/bsd/profile.bashrc: line 14: 40253 Segmentation fault: 11 (core dumped) grep -q "Assume that mode_t is passed compatibly" ${S} -r --include openat.c /usr/portage/profiles/default/bsd/profile.bashrc: line 14: 40254 Segmentation fault: 11 (core dumped) grep -q "test .*==" "${S}" -r --include configure >>> Compiling source in /var/tmp/portage/dev-libs/libffi-3.0.10_rc8/work/libffi-3.0.10rc8 ... gmake MAKE i386-unknown-freebsd8.0 : 0 * all-all gmake: *** [all-all] Error 1 <snip> Reproducible: Always Steps to Reproduce: 1. emerge dev-libs/libffi 2. 3.
Created attachment 269635 [details, diff] patch for libffi-3.0.10_rc8.ebuild When I confirmed Makefile, it is used if HOST is defined. Because Gentoo/*BSD uses special CHOST, it is necessary to define HOST.
Applied patch for BSD. BTW, I asked upstream about the m4 macro used in this package (and causing this bug). http://lists.gnu.org/archive/html/autoconf-archive-maintainers/2011-05/msg00003.html I think it would be better to have this patch for all archs ...