Closed rei-vilo closed 7 years ago
Note that the arduino builder included in Energia is slightly modified. Please see http://forum.43oh.com/topic/9911-energia-ide-1610e18-crashes-on-macos-sierra/?p=74625 for details. It has a new build of arduino-builder attached which is the same version included in Arduino 1.6.12. The original arduino builder included in the Arduino IDE will not be able to compile EMT targets.
Please use the file provided by Robert. This was a very temporary solution!
http://forum.43oh.com/index.php?app=core&module=attach§ion=attach&attach_id=9229
Did that arduino-builder work for you for both EMT and none-EMT targets?
Compiling the MultiBlink
example against the MSP432 with the arduino-builder
from Arduino 1.6.12 failed...
ino2cpp: error: sketch directory '{build.project_path}' doesn't exist or isn't a directory. exit status 1 Error compiling for board LaunchPad w/ msp432 EMT (48MHz).
...but succeeded with the file you provided on the 43oh forum.
Sketch uses 23,944 bytes (9%) of program storage space. Maximum is 262,144 bytes.
Thank you!
Perfect. Thanks for reporting back! Unfortunately arduino-builder can not be updated outside the IDE using the board manager so I will have to create a new release of Energia. Will do so in the next couple of days.
@robertinant I tried this quick hoping that it might work, but it is broken for me. After I clicked Upload, the arduino-builder process began consuming my CPU resources and hovered at around 60%. I have verbose debug on, and the upload debugging messages froze. Even after closing Energia, I had to manually terminate the rogue arduino-builder process. I have repeated this multiple times. I understand that you are working on a new release, but if you have any other temporary fix I would be extremely grateful.
Thanks, Cameron
I'm also facing the issue with arduino-builder
.
It takes 60% of CPU and I have no alternative but to kill it.
Again.
@rei-vilo You mentioned that the file in the forums is a
very temporary solution
Is there a permanent solution or a timeline on when there will be one?
@rei-vilo @MatthewWest @robertinant I also am still searching for a solution to this problem. Can you confirm that it will be in the next release or that there is another solution in the works?
Still the same issue. Here the statistics of the arduino-builder
freezing.
Sampling process 14614 for 3 seconds with 1 millisecond of run time between samples Couldn't find _sigtramp symbol in expected dylibs Sampling completed, processing symbols... Analysis of sampling arduino-builder (pid 14614) every 1 millisecond Process: arduino-builder [14614] Path: /Applications/IDE/Energia.app/Contents/Java/arduino-builder Load Address: 0x1000 Identifier: arduino-builder Version: ??? Code Type: X86-64 Parent Process: Energia [13564]
Date/Time: 2017-02-12 12:10:35.851 +0100 Launch Time: 2017-02-12 12:10:20.910 +0100 OS Version: Mac OS X 10.12.3 (16D32) Report Version: 7 Analysis Tool: /usr/bin/sample
Call graph: 2855 Thread879404: Main Thread DispatchQueue
- 2855 runtime.sigtrampgo (in arduino-builder) + 204 [0x3ed5c] signal_darwin.go:68 2855 Thread_879407
- 2851 runtime.usleep (in arduino-builder) + 44 [0x5af9c] sys_darwin_amd64.s:294
- 1 ??? (in
) [0x7469622d343620] - ! 1 nanotime (in arduino-builder) + 18 [0x5ad32] sys_darwin_amd64.s:126
- 1 runtime.netpoll (in arduino-builder) + 40 [0x29e38] netpoll_kqueue.go:65
- 1 runtime.retake (in arduino-builder) + 541 [0x38a0d] proc.go:3590
- 1 runtime.retake (in arduino-builder) + 623 [0x38a5f] proc.go:3598 2855 Thread_879408
- 2855 runtime.semasleep1 (in arduino-builder) + 223 [0x2ad1f] os1_darwin.go:423
- 2855 runtime.mach_semaphore_wait (in arduino-builder) + 11 [0x5b0cb] sys_darwin_amd64.s:416 2855 Thread_879409
- 2855 runtime.semasleep1 (in arduino-builder) + 223 [0x2ad1f] os1_darwin.go:423
- 2855 runtime.mach_semaphore_wait (in arduino-builder) + 11 [0x5b0cb] sys_darwin_amd64.s:416 2855 Thread_879410
- 2855 runtime.semasleep1 (in arduino-builder) + 223 [0x2ad1f] os1_darwin.go:423
- 2855 runtime.mach_semaphore_wait (in arduino-builder) + 11 [0x5b0cb] sys_darwin_amd64.s:416 2855 Thread_879411
- 2855 runtime.semasleep1 (in arduino-builder) + 223 [0x2ad1f] os1_darwin.go:423
- 2855 runtime.mach_semaphore_wait (in arduino-builder) + 11 [0x5b0cb] sys_darwin_amd64.s:416 2855 Thread_879412
- 2855 runtime.semasleep1 (in arduino-builder) + 223 [0x2ad1f] os1_darwin.go:423
- 2855 runtime.mach_semaphore_wait (in arduino-builder) + 11 [0x5b0cb] sys_darwin_amd64.s:416 2855 Thread_879413
- 2855 runtime.semasleep1 (in arduino-builder) + 223 [0x2ad1f] os1_darwin.go:423
- 2855 runtime.mach_semaphore_wait (in arduino-builder) + 11 [0x5b0cb] sys_darwin_amd64.s:416 2855 Thread_879414
- 2855 runtime.semasleep1 (in arduino-builder) + 223 [0x2ad1f] os1_darwin.go:423
- 2855 runtime.mach_semaphore_wait (in arduino-builder) + 11 [0x5b0cb] sys_darwin_amd64.s:416 2855 Thread_879427 2855 runtime.semasleep1 (in arduino-builder) + 126 [0x2acbe] os1_darwin.go:412 2855 runtime.mach_semaphore_timedwait (in arduino-builder) + 19 [0x5b0e3] sys_darwin_amd64.s:426
Total number in stack (recursive counted multiple, when >=5): 7 runtime.mach_semaphore_wait (in arduino-builder) + 0 [0x5b0c0] sys_darwin_amd64.s:416 7 runtime.semasleep1 (in arduino-builder) + 223 [0x2ad1f] os1_darwin.go:423
Sort by top of stack, same collapsed (when >= 5): runtime.mach_semaphore_wait (in arduino-builder) 19985 runtime.mach_semaphore_timedwait (in arduino-builder) 2855 runtime.sigtrampgo (in arduino-builder) 2855 runtime.usleep (in arduino-builder) 2851
Binary Images: 0x1000 - 0x2ee8b9 +arduino-builder (???) /Applications/IDE/Energia.app/Contents/Java/arduino-builder 0x5ece000 - 0x5f0b267 dyld (0.0 - ???) <947FC440-80F9-32F7-A773-6FC418FE1AB7> /usr/lib/dyld Sample analysis of process 14614 written to file /dev/stdout
Building a second time often ends in a panic runtime error
.
Detecting libraries used... "/Users/ReiVilo/Library/Energia15/packages/energia/tools/arm-none-eabi-gcc/4.8.4-20140725/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -g -Dxdc_target_types=gnu/targets/arm/std.h -Dxdc_target_name=M4F -Dxdc_cfgxheader="configPkg/package/cfg/energia_pm4fg.h" -DTARGET_IS_MSP432P4XX -DBOARD_MSP_EXP432P401R -Dxdcnolocalstring=1 -DMSP432P401R__ -DCORE_VERSION=380 -c -g -Os -w -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m4 -mthumb -DF_CPU=48000000L -DARDUINO=10610 -DENERGIA=10610 -DENERGIA_MSP_EXP432P401R -DENERGIA_ARCH_MSP432 "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432/ti/runtime/wiring/" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432/ti/runtime/wiring/msp432" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system/driverlib/MSP432P4xx" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system/driverlib" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system/inc" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system/inc/CMSIS/" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432/ti/runtime/wiring/" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432/ti/runtime/wiring/msp432" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system/driverlib/MSP432P4xx" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system/driverlib" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system/inc" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system/inc/CMSIS/" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/system" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432" "-I/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/3.8.0/variants/MSP_EXP432P401R" "/var/folders/px/cyfvtr757lqg0yp_cv9j79jh0000gn/T/build3907647dabd102eb118910a458cffd53.tmp/sketch/Test.ino.cpp" -o "/dev/null" Using cached library dependencies for file: /var/folders/px/cyfvtr757lqg0yp_cv9j79jh0000gn/T/build3907647dabd102eb118910a458cffd53.tmp/sketch/LocalLibrary.cpp Using cached library dependencies for file: /var/folders/px/cyfvtr757lqg0yp_cv9j79jh0000gn/T/build3907647dabd102eb118910a458cffd53.tmp/sketch/Timer.cpp panic: runtime error: index out of range
goroutine 1 [running]: panic(0x1c8940, 0xc820014050) /usr/local/go/src/runtime/panic.go:481 +0x3e6 arduino.cc/builder.findIncludesUntilDone(0xc82007d180, 0xc82047be60, 0x16e4c0, 0xc820167ef0, 0xc820192682, 0x8, 0x0, 0x0) /Users/robertinant/github/arduino-builder/src/arduino.cc/builder/container_find_includes.go:321 +0x13f1 arduino.cc/builder.(ContainerFindIncludes).Run(0x31d740, 0xc82007d180, 0x0, 0x0) /Users/robertinant/github/arduino-builder/src/arduino.cc/builder/container_find_includes.go:149 +0x7e8 arduino.cc/builder.runCommands(0xc82007d180, 0xc8200ad998, 0x22, 0x22, 0x1, 0x0, 0x0) /Users/robertinant/github/arduino-builder/src/arduino.cc/builder/builder.go:189 +0x12b arduino.cc/builder.(Builder).Run(0xc8200adbe0, 0xc82007d180, 0x0, 0x0) /Users/robertinant/github/arduino-builder/src/arduino.cc/builder/builder.go:124 +0x113e arduino.cc/builder.RunBuilder(0xc82007d180, 0x0, 0x0) /Users/robertinant/github/arduino-builder/src/arduino.cc/builder/builder.go:220 +0x39 main.main() /Users/robertinant/github/arduino-builder/src/arduino.cc/arduino-builder/main.go:316 +0x1940 arduino-builder returned 2 Error compiling for board LaunchPad w/ msp432 EMT (48MHz).
Energia IDE 1.6.10E18 crashes on macOS Sierra, for most of the boards.
This issue also occurs with the Arduino 1.6.11 IDE, see https://github.com/arduino/Arduino/issues/5397. However, compilation with embedXcode completes successfully.
Additionally, some paths seem to be hard coded, like
/Users/robertinant/github/arduino-builder/src/arduino.cc/builder/phases/core_builder.go:55 +0x20f fp=0xc208125800 sp=0xc2081256e0
.Please find the error message below.