Compiling openpbs uses a script in ${S}/buildutils/makedepend-sh which needs the ed utility. It exits silently without it. This doesn't seem to be part of a fresh Gentoo install (I used 2005.1-r1). Please make sys-cluster/openpbs depend on sys-apps/ed.
Will fix this within the next week.
Fixed in CVS, sorry for the delay.