Internal compiler error

Hello, i'm a newbie of Arduino and i have my first problem: whatever i can write on compiler (a working program or just all empty) when i try to veirify it comes the message of errore: "internal compiler error: segmentation fault". How i can resolve it?

What system are you on? I think you need to re-install the software.

I have windows 8. And i try to reinstall the compiler, but nothing is changed... What i can do?

Show us the code. It is possible, but unlikely!, that you have found a bug in gcc.

Can you compile the "Hello World" example?

Do you have Cygwin installed?

I tried "Hello World" code as i tried a completely work code, and the problem is that also with empy code (without completely nothing write) it give me the same error.

In file included from sketch_nov07a.cpp:1:
sketch_nov07a.cpp:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

What i can do?

No, i never tried Cygwin, you advise me to install and use it?

Vladmyr: No, i never tried Cygwin, you advise me to install and use it?

No. It conflicts with the Arduino compiler.

Turn on verbose output for the compile and post the result. Please use [code]

[/code] tags.

It was already turned on but don't change nothing, the only result i have is on the under bar with:

In file included from sketch_nov07a.cpp:1:
sketch_nov07a.cpp:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

Even when the compiler crashes (like it is in your case) the Arduino IDE outputs things like this...

C:\Arduino\arduino-1.0.5\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Arduino\arduino-1.0.5\hardware\arduino\cores\arduino -IC:\Arduino\arduino-1.0.5\hardware\arduino\variants\standard C:\Users\User1\AppData\Local\Temp\build4117553023381183202.tmp\sketch_nov08a.cpp -o C:\Users\User1\AppData\Local\Temp\build4117553023381183202.tmp\sketch_nov08a.cpp.o

Which means this...

Vladmyr: It was already turned on but don't change nothing, the only result i have is on the under bar with:

...is not true.

Turn on verbose output for the compile and post the result. Please use [code]

[/code] tags.

Which version of the IDE are you using?

You have still not...

KeithRB: Show us the code.

Sorry, i forgot to copy also the part written in white... so:

C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DARDUINO=105 -IC:\Program Files\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\variants\leonardo C:\Users\VLADIM~1\AppData\Local\Temp\build3743376478496177801.tmp\sketch_nov08a.cpp -o C:\Users\VLADIM~1\AppData\Local\Temp\build3743376478496177801.tmp\sketch_nov08a.cpp.o 
In file included from sketch_nov08a.cpp:1:
sketch_nov08a.cpp:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

I'm using the Arduino 1.0.5 integrated development environment software.

And actually, i repeat, i'm trying with completely white screen(with no code), without write nothing on compiler.

If you need the code (that anyway i'm NOT using now) is:

#include  

Servo miservoX;               
Servo miservoY;                 
 int vel = 3000;              


void setup() 
{ 
  miservoX.attach(9);  
  miservoY.attach(8);

} 


void loop() {
  
  delay(9000);
  {miservoX.write(170 ),miservoY.write(180),delay(vel);} 
  {miservoX.write(180 ),miservoY.write(180 ),delay(vel);} 
  {miservoX.write(180 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(170 ),miservoY.write(0 ),delay(vel);}  
  {miservoX.write(165 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(165 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(165 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(160 ),miservoY.write(0 ),delay(vel);}
  {miservoX.write(160 ),miservoY.write(180 ),delay(vel);} 
  {miservoX.write(150 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(150 ),miservoY.write(125 ),delay(vel);} 
  {miservoX.write(160 ),miservoY.write(125 ),delay(vel);}
  {miservoX.write(150 ),miservoY.write(125 ),delay(vel);} 
  {miservoX.write(150 ),miservoY.write(0 ),delay(vel);}
  {miservoX.write(145 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(145 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(135 ),miservoY.write(180 ),delay(vel);} 
  {miservoX.write(135 ),miservoY.write(0 ),delay(vel);}
  {miservoX.write(125 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(125 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(124 ),miservoY.write(170 ),delay(vel);} 
  {miservoX.write(123 ),miservoY.write(160 ),delay(vel);}
  {miservoX.write(122 ),miservoY.write(150 ),delay(vel);} 
  {miservoX.write(121 ),miservoY.write(140 ),delay(vel);}
  {miservoX.write(120 ),miservoY.write(130 ),delay(vel);} 
  {miservoX.write(119 ),miservoY.write(140 ),delay(vel);}
  {miservoX.write(118 ),miservoY.write(150 ),delay(vel);} 
  {miservoX.write(117 ),miservoY.write(160 ),delay(vel);}
  {miservoX.write(116 ),miservoY.write(170 ),delay(vel);} 
  {miservoX.write(114 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(114 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(110 ),miservoY.write(0 ),delay(vel);}
  {miservoX.write(110 ),miservoY.write(180 ),delay(vel);} 
  {miservoX.write(100 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(100 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(100 ),miservoY.write(0 ),delay(vel);}
  {miservoX.write(90 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(90 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(89 ),miservoY.write(170 ),delay(vel);} 
  {miservoX.write(88 ),miservoY.write(160 ),delay(vel);}
  {miservoX.write(87 ),miservoY.write(150 ),delay(vel);} 
  {miservoX.write(86 ),miservoY.write(130 ),delay(vel);}
  {miservoX.write(85 ),miservoY.write(120 ),delay(vel);} 
  {miservoX.write(84 ),miservoY.write(130 ),delay(vel);}
  {miservoX.write(84 ),miservoY.write(180 ),delay(vel);} 
  {miservoX.write(84 ),miservoY.write(0 ),delay(vel);}
  {miservoX.write(80 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(80 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(75 ),miservoY.write(180 ),delay(vel);} 
  {miservoX.write(74 ),miservoY.write(170 ),delay(vel);}
  {miservoX.write(73 ),miservoY.write(160 ),delay(vel);} 
  {miservoX.write(72 ),miservoY.write(150 ),delay(vel);}
  {miservoX.write(71 ),miservoY.write(140 ),delay(vel);} 
  {miservoX.write(70 ),miservoY.write(130 ),delay(vel);}
  {miservoX.write(70 ),miservoY.write(50 ),delay(vel);} 
  {miservoX.write(71 ),miservoY.write(40 ),delay(vel);}
  {miservoX.write(72 ),miservoY.write(30 ),delay(vel);} 
  {miservoX.write(73 ),miservoY.write(20 ),delay(vel);}
  {miservoX.write(74 ),miservoY.write(10 ),delay(vel);} 
  {miservoX.write(75 ),miservoY.write(0 ),delay(vel);}
  {miservoX.write(80 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(60 ),miservoY.write(0 ),delay(vel);}
  {miservoX.write(60 ),miservoY.write(180 ),delay(vel);} 
  {miservoX.write(50 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(50 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(60 ),miservoY.write(180 ),delay(vel);}
  {miservoX.write(0 ),miservoY.write(0 ),delay(vel);} 
  {miservoX.write(0 ),miservoY.write(180 ),delay(vel);}
  
   delay (3000);
 }

and it say almost the same error:

C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DARDUINO=105 -IC:\Program Files\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\variants\leonardo -IC:\Program Files\Arduino\libraries\Servo C:\Users\VLADIM~1\AppData\Local\Temp\build4151297493675394872.tmp\ciao_mondo.cpp -o C:\Users\VLADIM~1\AppData\Local\Temp\build4151297493675394872.tmp\ciao_mondo.cpp.o 
In file included from ciao_mondo.cpp:1:
ciao_mondo.cpp:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

Which Arduino board are you using?

Leonardo

I cannot reproduce the problem.

I have two suggestions... 1. For the Arduino IDE, set the operating system compatibility to an earlier operating system. 2. Upgrade the AVR-GCC toolset to the latest version.