Arduino Duemilanove can't build .hex file on Linux

Hi,

I am using Ubuntu Linux on my PC to compile/upload software on my Arduino Duemilanove. I use the last version of Arduino software (0016), with the version 4.3.2 of avr-gcc as recommanded.

When I Compile/Upload an example from the sketchbook, I got an Avrdude's error : it seems not able to make the .hex file

I will post later my error message (I am not using now my own PC) if you want.

I guessed that there is a major bug with the compilation tools for this Arduino, but is there any correction or tricks?

Thanks for your help.

Here the error log with the 015 version. It's the same with the 016. I suspect an error with the library link. My libc is up to date, I don't understand. Any idea?

LiquidCrystal.cpp:27: error: expected `)' before â??rsâ??
LiquidCrystal.cpp:54: error: expected `)' before â??rsâ??
LiquidCrystal.cpp:94: error: variable or field â??commandâ?? declared void
LiquidCrystal.cpp:94: error: â??uint8_tâ?? was not declared in this scope
LiquidCrystal.cpp:98: error: variable or field â??writeâ?? declared void
LiquidCrystal.cpp:98: error: â??uint8_tâ?? was not declared in this scope
LiquidCrystal.cpp:102: error: variable or field â??sendâ?? declared void
LiquidCrystal.cpp:102: error: â??uint8_tâ?? was not declared in this scope
LiquidCrystal.cpp:102: error: â??uint8_tâ?? was not declared in this scope
In file included from /home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:25:

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_private.h:28:20: error: avr/io.h: Aucun fichier ou dossier de ce type

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_private.h:29:27: error: avr/interrupt.h: Aucun fichier ou dossier de ce type

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_private.h:30:23: error: avr/delay.h: Aucun fichier ou dossier de ce type

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_private.h:31:19: error: stdio.h: Aucun fichier ou dossier de ce type

In file included from /home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_private.h:34,

                 from /home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:25:

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring.h:97: error: expected â??=â??, â??,â??, â??;â??, â??asmâ?? or â??__attribute__â?? before â??booleanâ??

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring.h:98: error: expected â??=â??, â??,â??, â??;â??, â??asmâ?? or â??__attribute__â?? before â??byteâ??

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring.h:106: error: expected â??)â?? before â??modeâ??

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring.h:107: error: expected â??)â?? before â??intâ??

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring.h:119: error: expected â??)â?? before â??pinâ??

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring.h:121: error: expected â??)â?? before â??dataPinâ??

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring.h:123: error: expected â??)â?? before â??voidâ??

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c: In function â??beginSerialâ??:

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:51: error: â??UBRR0Hâ?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:51: error: (Each undeclared identifier is reported only once

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:51: error: for each function it appears in.)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:52: error: â??UBRR0Lâ?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:55: error: â??UCSR0Bâ?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:55: error: â??RXEN0â?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:55: error: lvalue required as left operand of assignment

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:56: error: â??TXEN0â?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:56: error: lvalue required as left operand of assignment

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:59: error: â??RXCIE0â?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:59: error: lvalue required as left operand of assignment

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c: In function â??serialWriteâ??:

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:73: error: â??UCSR0Aâ?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:73: error: â??UDRE0â?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:76: error: â??UDR0â?? undeclared (first use in this function)

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c: In function â??SIGNALâ??:

/home/ryo-saeba/Documents/arduino-0015/hardware/cores/arduino/wiring_serial.c:116: error: â??UDR0â?? undeclared (first use in this function)

Couldn't determine program size: avr-size: '/home/ryo-saeba/sketchbook/Blink2/applet/Blink2.hex': No such file

avrdude: can't open input file /home/ryo-saeba/sketchbook/Blink2/applet/Blink2.hex: No such file or directory
avrdude: write to file '/home/ryo-saeba/sketchbook/Blink2/applet/Blink2.hex' failed

[Solved] The update of avr-libc correct the issue.