The configure script run when compiling grub does not find usable ncurses library, as it compiles using -m32 gcc flag. The needed library is in /emul/linux/x86/lib, which is apparently not searched by gcc, although gcc -print-search-dirs shows this directory in the libraries list. A simple export LIBRARY_PATH=/emul/linux/x86/lib before emerge grub solves this, and produces a ncurses capable grub. I do not understand why /emul/linux/x86/lib is not searched by gcc... Would someone know ? Fred.
*** Bug 158874 has been marked as a duplicate of this bug. ***
The emul-packages now install to (/usr)/lib32 which is searched by gcc, so this should be fixed.