and to add becides the above
did you add "fenv.h" and "features.h"
in an include ?
there are a BUNCH of programs that do not yet build in gcc 4.6 or 4.7 ( or for that matter 4.5 )
the name of these
make to compile something...
if they are over a year old they might need to be updated to build in gcc4.6