Sonntag, Januar 8, 2012

Problem compiling Firmware for RepRapPro Huxley

wanted to compile the firmware on Ubuntu 11.10, but had following problem:

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 /home/thomas/bin/arduino-0023/hardware/Sanguino/cores/arduino/wiring_private.h:30,
                 from /home/thomas/bin/arduino-0023/hardware/Sanguino/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

The solution was to comment out the line #include <avr/delay.h> in the file arduino-0023/hardware/Sanguino/cores/arduino/wiring_private.h 

After that I was able to compile and upload the firmware.