https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67094
--- Comment #3 from Jeffrey Walton <noloader at gmail dot com> --- (In reply to Andrew Pinski from comment #2) > That -x c++ with .o files are being treated as c++ source and being compiled > and that is what is the error message is saying. The .o file is a binary > file. Oh, thanks Andrew. That explains it. Sorry about that.