Compilation Error; Exit Status 2

Hello Everyone, Im currently using the CTC 101 kit for my class and when setting up blink to make sure my boards are working, i keep getting compilation error; Exit Status 2.
Im using the prebuilt code for blink and I have the IDE reading my arduino 101 correctly as well as the port.

Here's my error;
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x1122f8, 0x21)
/ssd/go/src/runtime/panic.go:566 +0x95 fp=0x7ff7bfeff6d0 sp=0x7ff7bfeff6b0
runtime.goenvs()
/ssd/go/src/runtime/os_darwin.go:88 +0xa0 fp=0x7ff7bfeff700 sp=0x7ff7bfeff6d0
runtime.schedinit()
/ssd/go/src/runtime/proc.go:450 +0x9c fp=0x7ff7bfeff740 sp=0x7ff7bfeff700
runtime.rt0_go(0x7ff7bfeff778, 0x4, 0x7ff7bfeff778, 0x0, 0x1000, 0x4, 0x7ff7bfeff928, 0x7ff7bfeff985, 0x7ff7bfeff988, 0x7ff7bfeffa07, ...)
/ssd/go/src/runtime/asm_amd64.s:145 +0x14f fp=0x7ff7bfeff748 sp=0x7ff7bfeff740

exit status 2

Compilation error: exit status 2

I have macOS Monterey 12.6.2 and Arduino 2.0.4(nightly)

You have a compiler error, not an upload error. Your topic has been moved to the dedicated IDE 2.0 section of the forum.

Hi @srhinehart. The cause of this error is the arduino101load tool used to upload sketches to the Arduino 101 of the CTC 101 kit was built using a very outdated version of the Go compiler. This causes it to be incompatible with all modern versions of macOS:

As explained at the link above, the solution would be to build the tool again using a recent version of the Go programming language.

I am able to reproduce the bug on my macOS Ventura machine and was able to fix it by rebuilding arduino101load.

If you are comfortable with giving that "DIY" solution a try, I would be happy to provide instructions.

I'm going to raise this issue internally today with the team responsible for maintaining the arduino101load tool to see if there is anything we can do to provide a more convenient resolution.

An alternative solution might be for you to contact Arduino Support and see if it would be possible for you to return or exchange your unusable CTC 101 kit. You can contact them via this form:

https://www.arduino.cc/en/contact-us/

I have now submitted a formal bug report to the issue tracker for the problematic arduino101load tool dependency:

I didn't submit a report to the "Intel Curie Boards" platform because I saw there was an existing report:

But I did add a comment there with more details about the problem.

If anyone else is experiencing this problem, my offer above still stands:

I have good news to share. This bug has been fixed in the latest 2.0.6 release of the "Intel Curie Boards" platform. The error should no longer occur after you use the Arduino IDE Boards Manager to install or update the platform to version 2.0.6.

Please let me know if you have any questions or problems when updating or using "Intel Curie Boards" 2.0.6.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.