Pages: [1]   Go Down
Author Topic: Compiler error when try to upload Arduino examples  (Read 1189 times)
0 Members and 1 Guest are viewing this topic.
netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino and Linux rock
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, everbody I am new at this forum. Today I received a Arduino Uno. I use Lubuntu Linux. I tried to upload  both my own program and the LED blink example. Both times I get this error:
Quote
In file included from /home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_pulse.c:25:
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_private.h:28:20: error: avr/io.h: No such file or directory
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_private.h:29:27: error: avr/interrupt.h: No such file or directory
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_private.h:30:23: error: avr/delay.h: No such file or directory
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_private.h:31:19: error: stdio.h: No such file or directory
In file included from /home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_private.h:34,
 from /home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_pulse.c:25:
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:29:20: error: stdlib.h: No such file or directory
In file included from /home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_private.h:34,
from /home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_pulse.c:25:
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:103: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'boolean'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'byte'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:112: error: expected ')' before 'mode'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:113: error: expected ')' before 'int'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:119: error: expected ')' before 'pin'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:121: error: expected ')' before 'dataPin'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:122: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'shiftIn'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring.h:124: error: expected ')' before 'void'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:28:26: error: avr/pgmspace.h: No such file or directory
In file included from /home/superpelican/Desktop/arduino-0021/hardware/arduino/l:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SS'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MOSI'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MISO'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SCK'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:66: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
/home/superpelican/Desktop/arduino-/hardware/arduino/cores/arduino/pins_arduino.h:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
/home/superpelican/Desktop/arduino-0021/hardware/arduino/cores/arduino/wiring_pulse.c:32: error: expected ')' before 'pin'

I don't have any experience with Arduino or electronics. Is this just a IDE error?

Thanks, for any help,

Superpelican smiley-sad
Logged

superpelican-online.tk

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
error: avr/io.h: No such file or directory
The GCC-AVR compiler is either not installed or is not correctly installed.
Logged

netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino and Linux rock
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, I thought I had AVR GCC installed. I'm gone a try to install AVR GCC again.

Thanks, for the help,

Superpelican smiley

[edit]I checked AVR GCC = installed. It has to be an other problem...
 smiley-sad
[/edit][edit]I reinstalled the AVR GCC, the situation don't changes. The error shows some files in the Arduino IDE software folder. I found the files in the software folder. That means that al those"expected:...." are not in the examples or my programs, but in the Arduino IDE files!
Hope that people now have more info about my problem,

Superpelican
[/edit]
« Last Edit: October 30, 2010, 04:12:44 am by superpelican » Logged

superpelican-online.tk

Pages: [1]   Go Up
Jump to: