Trying to update my Mendel 90s' Melzi board firmware and the Arduino IDE gives

Trying to update my Mendel 90s’ Melzi board firmware and the Arduino IDE gives me this :
In file included from /usr/lib/gcc/avr/4.5.3/…/…/…/avr/include/util/delay.h:44:0,
from /usr/lib/gcc/avr/4.5.3/…/…/…/avr/include/avr/delay.h:37,
from /usr/share/arduino/hardware/Melzi/cores/arduino/wiring_private.h:30,
from /usr/share/arduino/hardware/Melzi/cores/arduino/WInterrupts.c:34:
/usr/lib/gcc/avr/4.5.3/…/…/…/avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’
/usr/lib/gcc/avr/4.5.3/…/…/…/avr/include/math.h:426:15: error: expected ‘)’ before ‘>=’ token

I can’t find any file or tab called ‘math.h’

Anyone have an idea where to look for this or help for this ?

Sounds like potentially a corrupt file? I’d reinstall gcc-avr.

@ThantiK I’ll give that a try right now as I have no clue as to what I’m doing… thanx !

I’m using Arduino from the Ubuntu respositories. just reinstalled with the same result. Will try the latest from Arduino.cc next.

Got the latest Arduino IDE 1.0.5 and solved it !

I was about to say, looks like you’re using an older Arduino environment, but you figured it out. I had a similar issue when switching from sprinter to repeteir or marlin. Glad you figured it out, it drove me crazy

Wish they would just say what version to use with the firmware, would save frustration…

This has come up on the http://reprap.org Mendel90 forum a couple of times and there are solutions posted. It is well worth visiting that forum for Mendel90-specific issues.