Arduino 1.6.12 and Mac Sierra

Status
Not open for further replies.

PaulStoffregen

Well-known member
Looks like Arduino is getting ready to release 1.6.12, which addresses problems with the upcoming Macintosh OS-X Sierra.

Is anyone running the Sierra beta? I don't have it. Sounds like it's going to break a lot of existing software...
 
I'm switching back and forth between Sierra and El Capitan and haven't found anything seriously broken.

Anything in particular you'd like me to try?
 
Does the 1.30 installer work? Sounds like Sierra runs programs inside a sandbox. After the installer modifies 1.6.11, do the changes appear on the next run of Arduino?
 
Well, I can’t get the pristine Arduino app (1.6.11 or 1.6.12 Hourly Build) to build and upload firmware reliably to an Arduino Leonardo under Sierra. :(

Installing Teensyduino 1.30 to Arduino 1.6.11 appears to succeed. I can select the boards, open the examples. Building fails with this hot mess:
Code:
Arduino: 1.6.11 (Mac OS X), TD: 1.30, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz optimize speed (overclock), US English"

/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware -tools /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/tools-builder -tools /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/tools/avr -built-in-libraries /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/libraries -libraries /Users/dean/Documents/Arduino/libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96opt,keys=en-us -ide-version=10611 -build-path /var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp -warnings=none -verbose /var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/untitled791152988.tmp/sketch_sep18a/sketch_sep18a.ino
/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware -tools /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/tools-builder -tools /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/tools/avr -built-in-libraries /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/libraries -libraries /Users/dean/Documents/Arduino/libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=96opt,keys=en-us -ide-version=10611 -build-path /var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp -warnings=none -verbose /var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/untitled791152988.tmp/sketch_sep18a/sketch_sep18a.ino
Using board 'teensy31' from platform in folder: /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/avr
Using core 'teensy3' from platform in folder: /private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/avr
Detecting libraries used...
"/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w  -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/avr/cores/teensy3" "/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp/sketch/sketch_sep18a.ino.cpp" -o "/dev/null"
"/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w  -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/avr/cores/teensy3" "/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp/sketch/sketch_sep18a.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w  -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/avr/cores/teensy3" "/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp/sketch/sketch_sep18a.ino.cpp" -o "/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/avr/cores/teensy3" "/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp/sketch/sketch_sep18a.ino.cpp" -o "/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp/sketch/sketch_sep18a.ino.cpp.o"
Compiling libraries...
Compiling core...
"/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-gcc" -c -O -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -x assembler-with-cpp -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-I/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/avr/cores/teensy3" "/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/hardware/teensy/avr/cores/teensy3/memcpy-armv7m.S" -o "/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/buildf5ef3cb51e7f9b1337211a353cc29e3c.tmp/core/memcpy-armv7m.S.o"
failed MSpanList_Insert 0x3120e8 0x2fbcf2b7ba0 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x2cadd0, 0x3120e8)
	/usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Free(0x2cad60, 0x3120e8, 0xc200000000)
	/usr/local/go/src/runtime/mheap.c:500 +0x5b
runtime.MCentral_FreeSpan(0x2d3df8, 0x3120e8, 0x1, 0xc208122000, 0xc208122000, 0xf900, 0x64)
	/usr/local/go/src/runtime/mcentral.c:181 +0x1bb
runtime.MSpan_Sweep(0x3120e8, 0x4900000000, 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(0x0)
	/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 [syscall]:
syscall.Syscall6(0x7, 0xd34, 0xc208178e64, 0x0, 0xc208191440, 0x0, 0x0, 0x30c000, 0x6aa1, 0xc2081940e0)
	/usr/local/go/src/syscall/asm_darwin_amd64.s:44 +0x5
syscall.wait4(0xd34, 0xc208178e64, 0x0, 0xc208191440, 0x90, 0x0, 0x0)
	/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:32 +0x79
syscall.Wait4(0xd34, 0xc208178eac, 0x0, 0xc208191440, 0x0, 0x0, 0x0)
	/usr/local/go/src/syscall/syscall_bsd.go:162 +0x60
os.(*Process).wait(0xc20808f8c0, 0x0, 0x0, 0x0)
	/usr/local/go/src/os/exec_unix.go:22 +0x103
os.(*Process).Wait(0xc20808f8c0, 0xc20811c600, 0x0, 0x0)
	/usr/local/go/src/os/doc.go:45 +0x3a
os/exec.(*Cmd).Wait(0xc20800b040, 0x0, 0x0)
	/usr/local/go/src/os/exec/exec.go:364 +0x23c
os/exec.(*Cmd).Run(0xc20800b040, 0x0, 0x0)
	/usr/local/go/src/os/exec/exec.go:246 +0x71
arduino.cc/builder/builder_utils.ExecRecipe(0xc2082f22d0, 0x1f2550, 0x12, 0x10100, 0x31dd90, 0x2c49b0, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder_utils/utils.go:298 +0x1f7
arduino.cc/builder/builder_utils.compileFileWithRecipe(0xc20813e540, 0xb8, 0xc208155110, 0xc8, 0xc2080381e0, 0x5f, 0xc2081065d0, 0xc2082ea200, 0x1, 0x1, ...)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder_utils/utils.go:153 +0x86c
arduino.cc/builder/builder_utils.compileFilesWithRecipe(0xc208179610, 0x0, 0x0, 0xc20813e540, 0xb8, 0xc2082e82e0, 0x2, 0x2, 0xc2080381e0, 0x5f, ...)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder_utils/utils.go:121 +0x1c3
arduino.cc/builder/builder_utils.compileFilesWithExtensionWithRecipe(0xc208179610, 0x0, 0x0, 0xc20813e540, 0xb8, 0xc2082fc001, 0xc2080381e0, 0x5f, 0xc2081065d0, 0xc2082ea200, ...)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder_utils/utils.go:88 +0x248
arduino.cc/builder/builder_utils.CompileFiles(0xc208179610, 0x0, 0x0, 0xc20813e540, 0xb8, 0x1, 0xc2080381e0, 0x5f, 0xc2081065d0, 0xc2082ea200, ...)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder_utils/utils.go:68 +0x175
arduino.cc/builder/phases.compileCore(0xc2080381e0, 0x5f, 0xc2081065d0, 0x1, 0x7fff5fbffd1f, 0x4, 0x31dd90, 0x2c49b0, 0x0, 0x0, ...)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/phases/core_builder.go:87 +0x66a
arduino.cc/builder/phases.(*CoreBuilder).Run(0x2c49b0, 0xc208066000, 0x0, 0x0)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/phases/core_builder.go:55 +0x20f
arduino.cc/builder.runCommands(0xc208066000, 0xc208179a98, 0x22, 0x22, 0x1, 0x0, 0x0)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:189 +0x139
arduino.cc/builder.(*Builder).Run(0xc208179ce0, 0xc208066000, 0x0, 0x0)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:124 +0x1227
arduino.cc/builder.RunBuilder(0xc208066000, 0x0, 0x0)
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:220 +0x49
main.main()
	/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/arduino-builder/main.go:316 +0x171b
/private/var/folders/0q/431m749x0gs0_tgtq15rjxl80000gn/T/AppTranslocation/484F4DA0-B613-4EB5-8014-FEBEB492D12F/d/Arduino with TD1.30.app/Contents/Java/arduino-builder returned 2
Error compiling for board Teensy 3.2 / 3.1.
 
FWIW: Platform 3.0.1 w/ Teensyduino 1.30 seems to work just fine with a Teensy 3.2 under Sierra.

For some reason it's using Teensy Loader.app instead of the teensy loader CLI with a Teensy 3.6. I'll open a bug. (Not sure if this is Sierra related.)
 
Last edited:
Status
Not open for further replies.
Back
Top