Is this an error in compilation or is it trying to use the real genesis block but it doesn't exist yet?
It happens when using git HEAD without any blocks downloaded yet. As a workaround I went back to commit c81732, downloaded the existing block chain, then went back to HEAD and it worked.