Error compiling for board Sanguino

Hey Guys & Gals,

I am having problems uploading Marlin software to my printer motherboard. I keep getting "Error compiling for board Sanguino". Can anybody PLEASE help ?

This is the error:

Arduino: 1.6.8 (Mac OS X), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

/private/var/folders/rr/zx4c9ysj2kg9t8fmv537zb4h0000gn/T/AppTranslocation/8908C4BC-4452-4A26-80AD-1F734F1EBA7E/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/private/var/folders/rr/zx4c9ysj2kg9t8fmv537zb4h0000gn/T/AppTranslocation/8908C4BC-4452-4A26-80AD-1F734F1EBA7E/d/Arduino.app/Contents/Java/hardware" -hardware "/Users/adamscott/Library/Arduino15/packages" -tools "/private/var/folders/rr/zx4c9ysj2kg9t8fmv537zb4h0000gn/T/AppTranslocation/8908C4BC-4452-4A26-80AD-1F734F1EBA7E/d/Arduino.app/Contents/Java/tools-builder" -tools "/private/var/folders/rr/zx4c9ysj2kg9t8fmv537zb4h0000gn/T/AppTranslocation/8908C4BC-4452-4A26-80AD-1F734F1EBA7E/d/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/adamscott/Library/Arduino15/packages" -built-in-libraries "/private/var/folders/rr/zx4c9ysj2kg9t8fmv537zb4h0000gn/T/AppTranslocation/8908C4BC-4452-4A26-80AD-1F734F1EBA7E/d/Arduino.app/Contents/Java/libraries" -libraries "/Users/adamscott/Documents/Arduino/libraries" -fqbn=Sanguino:avr:sanguino:cpu=atmega1284p -ide-version=10608 -build-path "/var/folders/rr/zx4c9ysj2kg9t8fmv537zb4h0000gn/T/build284ba42ba0143953303bbdd9eafb7f74.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Users/adamscott/Desktop/TH3D_CR10MARLIN115_091817/Source/CR-10/Stock/Marlin/Marlin.ino"
failed MSpanList_Insert 0x30c6c0 0xf1d09e46dc9 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x2c6c90, 0x30c6c0)
/usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Free(0x2c6c20, 0x30c6c0, 0xc200000000)
/usr/local/go/src/runtime/mheap.c:500 +0x5b
runtime.MCentral_FreeSpan(0x2d05b8, 0x30c6c0, 0x2, 0xc2080b0000, 0xc2080b1000, 0x1000, 0x64)
/usr/local/go/src/runtime/mcentral.c:181 +0x1bb
runtime.MSpan_Sweep(0x30c6c0, 0x2300000000, 0x1)
/usr/local/go/src/runtime/mgc0.c:1099 +0x477
runtime.MHeap_Alloc(0x2c6c20, 0x1, 0x1000000000c, 0x10359)
/usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x2ce2d8, 0x2d21b8)
/usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x307000, 0xc20000000c, 0x30c728)
/usr/local/go/src/runtime/mcache.c:90 +0xa0

goroutine 1 [running]:
runtime.switchtoM()
/usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc208030698 sp=0xc208030690
runtime.mallocgc(0xb0, 0x159ce0, 0xc200000001, 0xc20805def0)
/usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0xc208030748 sp=0xc208030698
runtime.newarray(0x159ce0, 0xaa, 0x0)
/usr/local/go/src/runtime/malloc.go:365 +0xc1 fp=0xc208030780 sp=0xc208030748
runtime.makeslice(0x151960, 0xaa, 0xaa, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/slice.go:32 +0x15c fp=0xc2080307c8 sp=0xc208030780
strings.Join(0xc208030a30, 0x2, 0x2, 0x1ca130, 0x1, 0x0, 0x0)
/usr/local/go/src/strings/strings.go:394 +0xfd fp=0xc208030890 sp=0xc2080307c8
path/filepath.Join(0xc208030a30, 0x2, 0x2, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:202 +0x10d fp=0xc208030920 sp=0xc208030890
arduino.cc/builder/gohasissues.walk(0xc2080a9680, 0x84, 0x318c98, 0xc208036960, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:68 +0x395 fp=0xc208030a58 sp=0xc208030920
arduino.cc/builder/gohasissues.walk(0xc2080b6880, 0x80, 0x318c98, 0xc208036870, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc208030b90 sp=0xc208030a58
arduino.cc/builder/gohasissues.walk(0xc2080aefc0, 0x6b, 0x318c98, 0xc208036aa0, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc208030cc8 sp=0xc208030b90
arduino.cc/builder/gohasissues.walk(0xc2080aee00, 0x62, 0x318c98, 0xc2080369b0, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc208030e00 sp=0xc208030cc8
arduino.cc/builder/gohasissues.walk(0xc2080645a0, 0x5a, 0x318c98, 0xc2080368c0, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc208030f38 sp=0xc208030e00
arduino.cc/builder/gohasissues.walk(0xc208064420, 0x54, 0x318c98, 0xc208036820, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc208031070 sp=0xc208030f38
arduino.cc/builder/gohasissues.walk(0xc2080366e0, 0x4e, 0x318c98, 0xc208036780, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc2080311a8 sp=0xc208031070
arduino.cc/builder/gohasissues.walk(0xc2080d4280, 0x47, 0x318c98, 0xc2080d4460, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc2080312e0 sp=0xc2080311a8
arduino.cc/builder/gohasissues.walk(0xc20805e9c0, 0x40, 0x318c98, 0xc2080d4190, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc208031418 sp=0xc2080312e0
arduino.cc/builder/gohasissues.walk(0xc20805eb40, 0x3c, 0x318c98, 0xc2080d40f0, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc208031550 sp=0xc208031418
arduino.cc/builder/gohasissues.walk(0xc20805e780, 0x33, 0x318c98, 0xc2080d40a0, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc208031688 sp=0xc208031550
arduino.cc/builder/gohasissues.walk(0x7fff5fbffb10, 0x2b, 0x318c98, 0xc2080d42d0, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:75 +0x516 fp=0xc2080317c0 sp=0xc208031688
arduino.cc/builder/gohasissues.Walk(0x7fff5fbffb10, 0x2b, 0xc208031870, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gohasissues/go_has_issues.go:46 +0xf2 fp=0xc208031828 sp=0xc2080317c0
arduino.cc/builder.findBuiltinToolsVersionsFile(0x7fff5fbffb10, 0x2b, 0x0, 0x0, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/tools_loader.go:163 +0xa0 fp=0xc208031888 sp=0xc208031828
arduino.cc/builder.(*ToolsLoader).Run(0x2c0908, 0xc20803c570, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/tools_loader.go:50 +0x1ec fp=0xc208031a20 sp=0xc208031888
arduino.cc/builder.(*ContainerSetupHardwareToolsLibsSketchAndProps).Run(0x2c0908, 0xc20803c570, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_setup.go:59 +0x6b8 fp=0xc208031c10 sp=0xc208031a20
arduino.cc/builder.runCommands(0xc20803c570, 0xc208031d20, 0x4, 0x4, 0xc207ffcd01, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:187 +0x139 fp=0xc208031ca0 sp=0xc208031c10
arduino.cc/builder.(*ParseHardwareAndDumpBuildProperties).Run(0xc208031d88, 0xc20803c570, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:176 +0x204 fp=0xc208031d68 sp=0xc208031ca0
arduino.cc/builder.RunParseHardwareAndDumpBuildProperties(0xc20803c570, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:223 +0x49 fp=0xc208031d90 sp=0xc208031d68
main.main()
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/main.go:310 +0x18b7 fp=0xc208031f98 sp=0xc208031d90
runtime.main()
/usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc208031fe0 sp=0xc208031f98
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc208031fe8 sp=0xc208031fe0
arduino-builder returned 2

Error compiling for board Sanguino.

It looks like it might be a faulty installation of the IDE. I would try installing the latest version (after deleting the 'arduino15' directory) and re-installing the Sanguino support using the boards manager. Instructions here:

See: Cannot compile larger projects on macOS Sierra GM · Issue #5360 · arduino/Arduino · GitHub

Whenever you encounter a strange issue like this it's always a good idea to try the latest version of the Arduino IDE to see if it may have already been fixed.