Bash seems to break in configure while cross compiling. It seems that AC_FUNC_SETVBUF_REVERSED is executed but shouldn't with cross-compiling. If somebody gives me some hint, how to add patches locally (something working like overlays), I would fix this and many others by my own and post it here.
export bash_cv_have_mbstate_t=yes bash has more fundamental cross-compiling issues (proper signal generation) that upstream is aware of ... if you want to be sane, you need to build bash on the target hardware
and export ac_cv_func_setvbuf_reversed=no
But how can I handle it correctly by ROOT="/somewhat" PORTAGE_CONFIGROOT="/somewhat" emerge bash If I put it in /somewhat/etc/make.conf everything works fine for cross-compiling it on my machine, but is it the best way to do so? Compiling it on the target is not possible for production use, because it is a small embedded system with ppc405 and about 32MB Ram. There are other packages that doesn't compile without interruption and I hope, that this will be as easy as this solution. But thanks for your reply.
e-mail the gentoo-embedded mailing list