http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60100
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >Also, I'm not sure why there is a bogus warning about linking here (and not >when compiling right from the source file, above). Because your command line did not actual compile anything. Use the .i suffix instead of the .e suffix for preprocessed source and try your commands again.