Error compiling for board Arduino/Genuino Uno

Hey Guys!!

I am still learning how to use Arduino and I recently started learning again after a few months of radio silence. My Arduino Uno board is a standard original one and not of any third party company. The board has been lying unused for about 6 months (Not sure whether this is relevant).

Anyway, today I tried a simple blink program from one of the examples and when I try to verify the code an error message at the bottom reads:

“Error compiling for board Arduino/Genuino Uno”

Followed by a whole bunch of incomprehensible error code (included in the inserted screenshot). The code, I repeat, is example code and therefore has no errors. I have also quadruple-checked both the board type and port. I have never ever come across this trouble before and I don’t exactly know what the problem is.

It would be a great help if y’all could please help me overcome this troubleshooting. I’m pretty sure the problem is obvious but I just don’t know about it (Being a noobie :smiley: ). Thanks in advance.

Edit: The error occurs even when the board isn’t connected so I guess the board has nothing to do with the problem.

Don’t post screenshots of text! That is very unhelpful. When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar). It is almost never appropriate to post screenshots but in some cases it is helpful to post images. You should attach and embed the image following these instructions:

pert:
Don’t post screenshots of text! That is very unhelpful. When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar). It is almost never appropriate to post screenshots but in some cases it is helpful to post images. You should attach and embed the image following these instructions:
http://forum.arduino.cc/index.php?topic=364156

Sorry, I am new to the forum and I’m still finding my way around. Thanks for the feedback though. It was pretty informative and helpful.

This is my code (from the ‘examples’ tab in the Arduino coding software):

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

And this is the error message shown below, headed by the words “Error compiling for board Arduino/Genuino Uno”:

Arduino: 1.6.11 (Mac OS X), Board: "Arduino/Genuino Uno"

failed MSpanList_Insert 0x310000 0x9ba89c8315be 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.throw(0x2b050b)
	/usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbff440 sp=0x7ffeefbff410
runtime.MSpanList_Insert(0x2ce168, 0x310000)
	/usr/local/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbff468 sp=0x7ffeefbff440
MHeap_FreeSpanLocked(0x2cad60, 0x310000, 0x100)
	/usr/local/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbff4a8 sp=0x7ffeefbff468
MHeap_Grow(0x2cad60, 0x8, 0x0)
	/usr/local/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbff4e8 sp=0x7ffeefbff4a8
MHeap_AllocSpanLocked(0x2cad60, 0x1, 0x0)
	/usr/local/go/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbff528 sp=0x7ffeefbff4e8
mheap_alloc(0x2cad60, 0x1, 0x12, 0x0)
	/usr/local/go/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbff550 sp=0x7ffeefbff528
runtime.MHeap_Alloc(0x2cad60, 0x1, 0x10000000012, 0xf989)
	/usr/local/go/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbff588 sp=0x7ffeefbff550
MCentral_Grow(0x2d2ad8, 0x0)
	/usr/local/go/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbff5f0 sp=0x7ffeefbff588
runtime.MCentral_CacheSpan(0x2d2ad8, 0x0)
	/usr/local/go/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbff628 sp=0x7ffeefbff5f0
runtime.MCache_Refill(0x30c000, 0x12, 0x0)
	/usr/local/go/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbff650 sp=0x7ffeefbff628
runtime.mcacheRefill_m()
	/usr/local/go/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbff670 sp=0x7ffeefbff650
runtime.onM(0x226eb0)
	/usr/local/go/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbff678 sp=0x7ffeefbff670
runtime.mallocgc(0x120, 0x1c0720, 0x0, 0x0)
	/usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbff728 sp=0x7ffeefbff678
runtime.newobject(0x1c0720, 0x30c000)
	/usr/local/go/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbff750 sp=0x7ffeefbff728
runtime.newG(0x276ba)
	/usr/local/go/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbff768 sp=0x7ffeefbff750
allocg(0x2bd660)
	/usr/local/go/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbff778 sp=0x7ffeefbff768
runtime.malg(0x8000, 0x2bd700)
	/usr/local/go/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbff7a8 sp=0x7ffeefbff778
runtime.mpreinit(0x2bdac0)
	/usr/local/go/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbff7c0 sp=0x7ffeefbff7a8
mcommoninit(0x2bdac0)
	/usr/local/go/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbff7e8 sp=0x7ffeefbff7c0
runtime.schedinit()
	/usr/local/go/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbff810 sp=0x7ffeefbff7e8
runtime.rt0_go(0x7ffeefbff848, 0x16, 0x7ffeefbff848, 0x0, 0x0, 0x16, 0x7ffeefbff9f8, 0x7ffeefbffa30, 0x7ffeefbffa3c, 0x7ffeefbffa4c, ...)
	/usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbff818 sp=0x7ffeefbff810
/Applications/Arduino.app/Contents/Java/arduino-builder returned 2

Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Looks like it's: https://github.com/arduino/Arduino/issues/5360

The solution is simply to update to the latest version of the Arduino IDE, which you can download from: http://www.arduino.cc/en/Main/Software