How to compile firmware in OSX (MacOS) ?

Topics around mechanical design, controller and electronics. Mods & hacks welcome.
Posts: 52
Joined: Mon Aug 29, 2016 6:21 pm

How to compile firmware in OSX (MacOS) ?

Postby flexrc » Thu Dec 22, 2016 6:07 am

I wanted to try to compile Raise3D firmware for N2 but it seems to fail. It seems to look for something in User folder jenkins which is not my user folder. I'm not yet very familiar with Arduino environment and hope that it is ok to ask here for a little bit of guidance of How to start with it.

I've used firmware from here:

Here are the errors I'm receiving.

Code: Select all

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

failed MSpanList_Insert 0x31c290 0x26c21140fa27 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x2c6c90, 0x31c290)
   /usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Alloc(0x2c6c20, 0x1, 0x10000000010, 0x10359)
   /usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x2ce758, 0x2d21b8)
   /usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x307000, 0xc200000010, 0xc208079680)
   /usr/local/go/src/runtime/mcache.c:90 +0xa0

goroutine 1 [running]:
   /usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc2084a9238 sp=0xc2084a9230
runtime.mallocgc(0xf0, 0x151420, 0x0, 0xc2084a9348)
   /usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0xc2084a92e8 sp=0xc2084a9238
runtime.newarray(0x151420, 0xa, 0x2c0908)
   /usr/local/go/src/runtime/malloc.go:365 +0xc1 fp=0xc2084a9320 sp=0xc2084a92e8
runtime.makeslice(0x1500a0, 0x0, 0xa, 0x0, 0x0, 0x0)
   /usr/local/go/src/runtime/slice.go:32 +0x15c fp=0xc2084a9368 sp=0xc2084a9320
regexp.(*Regexp).FindAllStringSubmatch(0xc20803a460, 0x2c0908, 0x0, 0x1, 0x0, 0x0, 0x0)
   /usr/local/go/src/regexp/regexp.go:1038 +0x81 fp=0xc2084a93e0 sp=0xc2084a9368*IncludesFinderWithRegExp).Run(0xc20851b560, 0xc20803c510, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/ +0xf2 fp=0xc2084a9560 sp=0xc2084a93e0, 0x31e0f0, 0xc20851b560, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/ +0x6c fp=0xc2084a9598 sp=0xc2084a9560, 0xc2084d4600, 0x75, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/ +0x3c2 fp=0xc2084a9740 sp=0xc2084a9598*ContainerFindIncludes).Run(0x2c0908, 0xc20803c510, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/ +0xa5e fp=0xc2084a9978 sp=0xc2084a9740, 0xc2084a9b90, 0x1d, 0x1d, 0x19501, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/ +0x139 fp=0xc2084a9a08 sp=0xc2084a9978*Builder).Run(0xc2084a9d88, 0xc20803c510, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/ +0xef7 fp=0xc2084a9d68 sp=0xc2084a9a08, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/ +0x49 fp=0xc2084a9d90 sp=0xc2084a9d68
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/main.go:320 +0x1eb2 fp=0xc2084a9f98 sp=0xc2084a9d90
   /usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc2084a9fe0 sp=0xc2084a9f98
   /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc2084a9fe8 sp=0xc2084a9fe0
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.

Return to “Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest