Problems compiling Marlin for Arduino Mega 2560 on Mac Pro

I keep having intermittent problems uploading precompiled files onto my controller board on newest Arduino platform and latest version of Marlin. here is the error message. Can anyone here help?

/**
 * Marlin 3D Printer Firmware
 * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
 *
 * Based on Sprinter and grbl.
 * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

/**
 * About Marlin
 *
 * This firmware is a mashup between Sprinter and grbl.
 *  - https://github.com/kliment/Sprinter
 *  - https://github.com/simen/grbl/tree
 */

#include "MarlinConfig.h"

#if ENABLED(ULTRA_LCD)
  #if ENABLED(LCD_I2C_TYPE_PCF8575)
    #include <Wire.h>
    #include <LiquidCrystal_I2C.h>
  #elif ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)
    #include <Wire.h>
    #include <LiquidTWI2.h>
  #elif ENABLED(LCM1602)
    #include <Wire.h>
    #include <LCD.h>
    #include <LiquidCrystal_I2C.h>
  #elif ENABLED(DOGLCD)
    #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)
  #else
    #include <LiquidCrystal.h> // library for character LCD
  #endif
#endif

#if HAS_DIGIPOTSS
  #include <SPI.h>
#endif

#if ENABLED(DIGIPOT_I2C)
  #include <Wire.h>
#endif

#if ENABLED(HAVE_TMCDRIVER)
  #include <SPI.h>
  #include <TMC26XStepper.h>
#endif

#if ENABLED(HAVE_TMC2130)
  #include <SPI.h>
  #include <TMC2130Stepper.h>
#endif

#if ENABLED(HAVE_L6470DRIVER)
  #include <SPI.h>
  #include <L6470.h>
#endif

That's not an error message, it's a snippet of code.

Sorry about that. I tried to cut/paste it and it pasted the wrong info for some reason.

Arduino: 1.6.9 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

failed MSpanList_Insert 0x30c000 0x167d9e05d6e5 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.throw(0x2ac50b)
/usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbff3d0 sp=0x7ffeefbff3a0
runtime.MSpanList_Insert(0x2ca128, 0x30c000)
/usr/local/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbff3f8 sp=0x7ffeefbff3d0
MHeap_FreeSpanLocked(0x2c6d20, 0x30c000, 0x100)
/usr/local/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbff438 sp=0x7ffeefbff3f8
MHeap_Grow(0x2c6d20, 0x8, 0x0)
/usr/local/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbff478 sp=0x7ffeefbff438
MHeap_AllocSpanLocked(0x2c6d20, 0x1, 0x0)
/usr/local/go/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbff4b8 sp=0x7ffeefbff478
mheap_alloc(0x2c6d20, 0x1, 0x12, 0x0)
/usr/local/go/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbff4e0 sp=0x7ffeefbff4b8
runtime.MHeap_Alloc(0x2c6d20, 0x1, 0x10000000012, 0xf989)
/usr/local/go/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbff518 sp=0x7ffeefbff4e0
MCentral_Grow(0x2cea98, 0x0)
/usr/local/go/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbff580 sp=0x7ffeefbff518
runtime.MCentral_CacheSpan(0x2cea98, 0x0)
/usr/local/go/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbff5b8 sp=0x7ffeefbff580
runtime.MCache_Refill(0x308000, 0x12, 0x0)
/usr/local/go/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbff5e0 sp=0x7ffeefbff5b8
runtime.mcacheRefill_m()
/usr/local/go/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbff600 sp=0x7ffeefbff5e0
runtime.onM(0x223ad0)
/usr/local/go/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbff608 sp=0x7ffeefbff600
runtime.mallocgc(0x120, 0x1bde40, 0x0, 0x0)
/usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbff6b8 sp=0x7ffeefbff608
runtime.newobject(0x1bde40, 0x308000)
/usr/local/go/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbff6e0 sp=0x7ffeefbff6b8
runtime.newG(0x276ba)
/usr/local/go/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbff6f8 sp=0x7ffeefbff6e0
allocg(0x2b9660)
/usr/local/go/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbff708 sp=0x7ffeefbff6f8
runtime.malg(0x8000, 0x2b9700)
/usr/local/go/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbff738 sp=0x7ffeefbff708
runtime.mpreinit(0x2b9ac0)
/usr/local/go/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbff750 sp=0x7ffeefbff738
mcommoninit(0x2b9ac0)
/usr/local/go/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbff778 sp=0x7ffeefbff750
runtime.schedinit()
/usr/local/go/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbff7a0 sp=0x7ffeefbff778
runtime.rt0_go(0x7ffeefbff7d8, 0x18, 0x7ffeefbff7d8, 0x0, 0x0, 0x18, 0x7ffeefbff9a8, 0x7ffeefbff9e0, 0x7ffeefbff9ec, 0x7ffeefbff9fc, ...)
/usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbff7a8 sp=0x7ffeefbff7a0
arduino-builder returned 2

Error compiling for board Arduino/Genuino Mega or Mega 2560.

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

I believe this bug has already been fixed. Please update to the latest IDE version (1.8.5) downloaded from: