Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: Vladmyr on Nov 06, 2013, 05:16 pm

Title: Internal compiler error
Post by: Vladmyr on Nov 06, 2013, 05:16 pm
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?
Title: Re: Internal compiler error
Post by: KeithRB on Nov 06, 2013, 05:31 pm
What system are you on?
I think you need to re-install the software.
Title: Re: Internal compiler error
Post by: Vladmyr on Nov 06, 2013, 09:55 pm
I have windows 8.
And i try to reinstall the compiler, but nothing is changed... What i can do?
Title: Re: Internal compiler error
Post by: KeithRB on Nov 06, 2013, 10:09 pm
Show us the code. It is possible, but unlikely!, that you have found a bug in gcc.

Can you compile the "Hello World" example?
Title: Re: Internal compiler error
Post by: Coding Badly on Nov 07, 2013, 03:13 am

Do you have Cygwin installed?
Title: Re: Internal compiler error
Post by: Vladmyr on Nov 07, 2013, 07:47 am
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.
Code: [Select]

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 <URL:http://sourceforge.net/tracker/?atid=520074&group_id=68108&func=browse> for instructions.

What i can do?

No, i never tried Cygwin, you advise me to install and use it?
Title: Re: Internal compiler error
Post by: Coding Badly on Nov 07, 2013, 07:54 am
No, i never tried Cygwin, you advise me to install and use it?


No.  It conflicts with the Arduino compiler.
Title: Re: Internal compiler error
Post by: Coding Badly on Nov 07, 2013, 07:58 am

Turn on verbose output for the compile and post the result.  Please use [code] [/code] tags.
Title: Re: Internal compiler error
Post by: Vladmyr on Nov 08, 2013, 06:41 am
It was already turned on but don't change nothing, the only result i have is on the under bar with:
Code: [Select]
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 <URL:http://sourceforge.net/tracker/?atid=520074&group_id=68108&func=browse> for instructions.
Title: Re: Internal compiler error
Post by: Coding Badly on Nov 08, 2013, 09:27 am

Even when the compiler crashes (like it is in your case) the Arduino IDE outputs things like this...
Code: [Select]
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...
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...
Show us the code.

Title: Re: Internal compiler error
Post by: Vladmyr on Nov 08, 2013, 03:42 pm
Sorry, i forgot to copy also the part written in white... so:
Code: [Select]

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 <URL:http://sourceforge.net/tracker/?atid=520074&group_id=68108&func=browse> 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:
Code: [Select]
#include <Servo.h>

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:
Code: [Select]

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 <URL:http://sourceforge.net/tracker/?atid=520074&group_id=68108&func=browse> for instructions.
Title: Re: Internal compiler error
Post by: Coding Badly on Nov 08, 2013, 08:02 pm

Which Arduino board are you using?
Title: Re: Internal compiler error
Post by: Vladmyr on Nov 09, 2013, 05:48 pm
Leonardo
Title: Re: Internal compiler error
Post by: Coding Badly on Nov 10, 2013, 09:56 am

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.