I have not been able to compile on my mac for a long time and it is bugging me. I always get an exception having to do something with /usr/bin/go. Now since loading v1.6.11 it will not start (I get com.apple.xpc.launchd[1] (cc.arduino.Arduino.37960[90424]): Service exited with abnormal code: 255) and the Nightly does the same thing. Any thoughts? Here is the compile error on previous versions (v 1.6.10 is the last one that loads):
failed MSpanList_Insert 0x312d18 0x12a1bcdc45fa 0x0
fatal error: MSpanList_Insert
runtime stack:
runtime.MSpanList_Insert(0x2cadd0, 0x312d18)
/usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Free(0x2cad60, 0x312d18, 0x0)
/usr/local/go/src/runtime/mheap.c:500 +0x5b
runtime.MCentral_FreeSpan(0x2d46f8, 0x312d18, 0x2, 0xc208132000, 0xc208133000, 0x0, 0x64)
/usr/local/go/src/runtime/mcentral.c:181 +0x1bb
runtime.MSpan_Sweep(0x312d18, 0x9f00000000, 0xc200000001)
/usr/local/go/src/runtime/mgc0.c:1099 +0x477
goroutine 3 [running]:
runtime.switchtoM()
/usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc20801dfa8 sp=0xc20801dfa0
runtime.gosweepone(0x1)
/usr/local/go/src/runtime/mgc0.c:1168 +0x1e fp=0xc20801dfc0 sp=0xc20801dfa8
runtime.bgsweep()
/usr/local/go/src/runtime/mgc0.go:85 +0x36 fp=0xc20801dfe0 sp=0xc20801dfc0
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20801dfe8 sp=0xc20801dfe0
created by gc
/usr/local/go/src/runtime/mgc0.c:1386
goroutine 1 [runnable]:
syscall.Syscall(0x152, 0xc208010620, 0xc2082045a0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/asm_darwin_amd64.s:20 +0x5
syscall.Stat(0xc2080105b0, 0x68, 0xc2082045a0, 0x0, 0x0)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1221 +0x92
os.Stat(0xc2080105b0, 0x68, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/os/file_unix.go:134 +0x75
mperdue
September 10, 2016, 10:43pm
2
1.6.11 loads for me but I get the same error when trying to compile marlin or repetier firmware. I'm in the middle of a 3D printer upgrade so getting this working would be a good thing.
mperdue
September 11, 2016, 11:05am
3
I started a topic in their support forum as well.
opened 11:02AM - 11 Sep 16 UTC
closed 07:59AM - 22 Sep 16 UTC
OS: OSX
I cannot compile the larger projects that I have on macOS Sierra but smaller ske… tches compile without problems. Two projects I've worked with that show the problem are Marlin and Repetier 3D printer firmware.
https://github.com/MarlinFirmware/Marlin
https://github.com/repetier/Repetier-Firmware
I've tried every IDE version from 1.6.9 to the 1.6.11 with no difference in results.
=====Error dump======
Arduino: 1.6.11 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
failed MSpanList_Insert 0x3205e0 0xfff2626f82e 0x0
fatal error: MSpanList_Insert
runtime stack:
runtime.MSpanList_Insert(0x2cadd0, 0x3205e0)
/usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Alloc(0x2cad60, 0x3, 0x1000000003f, 0xf989)
/usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x2d5d78, 0xc2083854c0)
/usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x30c000, 0x3f, 0x1808012000)
/usr/local/go/src/runtime/mcache.c:90 +0xa0
goroutine 1 [running]:
runtime.switchtoM()
/usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc2083852f0 sp=0xc2083852e8
runtime.mallocgc(0x6000, 0x158fe0, 0xc200000001, 0x32950)
/usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0xc2083853a0 sp=0xc2083852f0
runtime.newarray(0x158fe0, 0x5de1, 0x1af160)
/usr/local/go/src/runtime/malloc.go:365 +0xc1 fp=0xc2083853d8 sp=0xc2083853a0
runtime.makeslice(0x150be0, 0x0, 0x5de1, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/slice.go:32 +0x15c fp=0xc208385420 sp=0xc2083853d8
io/ioutil.readAll(0x31e3a0, 0xc208040428, 0x5de1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/ioutil/ioutil.go:19 +0xc0 fp=0xc2083854c0 sp=0xc208385420
io/ioutil.ReadFile(0xc2080d7e00, 0x4c, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/ioutil/ioutil.go:70 +0x1b5 fp=0xc208385588 sp=0xc2083854c0
arduino.cc/builder.(_AdditionalSketchFilesCopier).Run(0x2c49b0, 0xc208068000, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/additional_sketch_files_copier.go:66 +0x39f fp=0xc208385718 sp=0xc208385588
arduino.cc/builder.(_ContainerMergeCopySketchFiles).Run(0x2c49b0, 0xc208068000, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_merge_copy_sketch_files.go:48 +0x241 fp=0xc208385800 sp=0xc208385718
arduino.cc/builder.runCommands(0xc208068000, 0xc208385a98, 0x22, 0x22, 0x1, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:189 +0x139 fp=0xc208385890 sp=0xc208385800
arduino.cc/builder.(*Builder).Run(0xc208385ce0, 0xc208068000, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:124 +0x1227 fp=0xc208385cc0 sp=0xc208385890
arduino.cc/builder.RunBuilder(0xc208068000, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:220 +0x49 fp=0xc208385ce8 sp=0xc208385cc0
main.main()
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/arduino-builder/main.go:316 +0x171b fp=0xc208385f98 sp=0xc208385ce8
runtime.main()
/usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc208385fe0 sp=0xc208385f98
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc208385fe8 sp=0xc208385fe0
/Applications/Arduino.app/Contents/Java/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.
That might be the better one to keep an eye on.
jamesarm97:
syscall.Syscall(0x152, 0xc208010620, 0xc2082045a0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/asm_darwin_amd64.s:20 +0x5
That's odd. I thought that Macintosh computers used Intel processors, not AMD processors.
binnes
September 15, 2016, 8:37pm
5
This looks like the go language bug that was recently fixed in 1.7 (Go 1.7 Release Notes - The Go Programming Language ). I guess we'll have to wait for a new release of Arduino that includes the updated Go lang support for OS X Sierra?
johnwasser:
That's odd. I thought that Macintosh computers used Intel processors, not AMD processors.
They do use Intel processors, but the name of the 64-bit architecture that modern Intel x64 processors is sometimes called 'amd64'.
See x86-64 - Wikipedia
Basically, modern Intel processors use an architecture pioneered by AMD, and that's where it gets its name. If you run uname
it will return the more generic name x86-64.
pert
September 18, 2016, 4:58pm
7
The Arduino developer has been working on this issue and has a proposed fix. If you want to try it out the test builds are available at
arduino:master
← facchinm:1.6.12_prerelease
:white_check_mark: Build completed.
Please test this code using one of the foll… owing:
:arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-5374-BUILD-600-linux32.tar.xz
:arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-5374-BUILD-600-linux64.tar.xz
:arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-5374-BUILD-600-windows.zip
:arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-5374-BUILD-600-macosx.zip
:arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-5374-BUILD-600-linuxarm.tar.xz
:information_source: The `linuxarm` build is still experimental and may not be always available.
Please report your results.