error trying to compile sketch

Whenever I try to compile a sketch, I get this error message;

cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.

exit status 1
Error compiling for board Arduino Duemilanove or Diecimila.

Does anybody have any idea what is causing this, and what do I do to fix it. Thanks in advance for any help.

Sounds like a 1.6.10IDE/1.6.12AVR board package problem. That's been a disaster of a release.

Downgrade to IDE v 1.6.9 and Arduino AVR boards (via board manager) 1.6.11

What DrAzzy said will fix it. If you do want to stick with Arduino IDE 1.6.10/Arduino AVR Boards 1.6.12 let me know and I can tell you how to solve that issue.

Thank you for the help. 16.9 did the trick. I think for now I will stick with the 16.9 version. I lost a little work but will be easy to recover as I had only started the sketch and was into it about 12 lines. Again...thank you for the help.
Kurt

If you saved the sketch you should be able to just open it in Arduino IDE 1.6.9. It will work with either version.