Something had gone wrong with my gentoo portage update of gcc. running gcc-config gave the message: Active gcc profile is invalid!