0

Script error on tutorial #1 How Blink Works
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Script error on tutorial #1 How Blink Works

by adajeffd2015 on Thu Dec 17, 2015 3:25 pm

Hi,

I am a starter, just trying to go through the initial arduino tutorial. I am using mac to run the software. My problem is when I use the script on this page:

https://learn.adafruit.com/adafruit-ard ... link-works

I clicked on 'verify' and it gives me error. How can that be? it is a tutorial script!

Please help, I have no idea why a simple script like this gives me error. I am using Arduino 1.6.7

thanks ,Jeff




This is the error message i get:
Arduino: 1.6.7 (Mac OS X), Board: "Arduino/Genuino Uno"

fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)

runtime stack:
runtime.throw(0x2a5775)
/usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff8c0 sp=0x7fff5fbff890
runtime.goenvs()
/usr/local/go/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff8d8 sp=0x7fff5fbff8c0
runtime.schedinit()
/usr/local/go/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff900 sp=0x7fff5fbff8d8
runtime.rt0_go(0x7fff5fbff938, 0x15, 0x7fff5fbff938, 0x0, 0x0, 0x15, 0x7fff5fbffac0, 0x7fff5fbffaf8, 0x7fff5fbffb04, 0x7fff5fbffb14, ...)
/usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff908 sp=0x7fff5fbff900
arduino-builder returned 2

Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

adajeffd2015
 
Posts: 7
Joined: Thu Dec 03, 2015 3:52 pm

Re: Script error on tutorial #1 How Blink Works

by franklin97355 on Thu Dec 17, 2015 4:01 pm

That looks more like a compiler error rather than a sketch error. You might try using a previous version of the IDE to see if that helps. I know 1.6.6 had problems so 1.6.7 may also (I haven't tried it.

franklin97355
 
Posts: 21087
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Script error on tutorial #1 How Blink Works

by mauimacman on Fri Oct 21, 2016 11:13 pm

Aloha,

Anxious to try my Circuit Playground, which is grounded and glowy with factory sketch showing colors with LED #0 steady RED. What does the following error message mean and how do I fix it? It's very similar to the one above in this thread...

I too am getting a similar error on Macbook Pro; circa 2012. sys 10.9.6 . I've installed the Circuit Playground libraries, the SleepyDog libraries and am seeing the board and USB connections just fine...however when trying to run ANY sketch, I keep getting blocked by this error message:

fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)

runtime stack:
runtime.throw(0x2ac775)
/usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff640 sp=0x7fff5fbff610
runtime.goenvs()
/usr/local/go/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff658 sp=0x7fff5fbff640
runtime.schedinit()
/usr/local/go/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff680 sp=0x7fff5fbff658
runtime.rt0_go(0x7fff5fbff6b8, 0x1d, 0x7fff5fbff6b8, 0x0, 0x0, 0x1d, 0x7fff5fbff898, 0x7fff5fbff8e5, 0x7fff5fbff8f1, 0x7fff5fbff901, ...)
/usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff688 sp=0x7fff5fbff680
/Users/peterhrosen/Downloads/Arduino1.6.11.app/Contents/Java/arduino-builder returned 2

Error compiling for board Adafruit Circuit Playground.

-------- end fwd -------------

ANYONE HAVE A CLUE. I've also tried with the latest version of Arduino IDE to no avail.

mauimacman
 
Posts: 33
Joined: Thu Jan 24, 2013 11:00 pm

Re: Script error on tutorial #1 How Blink Works

by adafruit_support_mike on Sat Oct 22, 2016 12:47 am

Try dropping back to version 1.6.9 of the Arduino IDE and see if that works for you. The most recent versions have made changes to run with OS X 10.12, and there are some compatibility problems.

adafruit_support_mike
 
Posts: 58852
Joined: Thu Feb 11, 2010 2:51 pm

Re: Script error on tutorial #1 How Blink Works

by DaveGadgeteer on Sat Nov 26, 2016 7:11 pm

I'm having similar Java/arduino-builder returned 2
errors, but they are intermittent.
I now get the error about 1/3 of the time I verify, with no changes to my program.
Previously I'd get it 3/4 of the time, and I got a theory that the compiler sees a minor programming error that it doesn't clear out properly after compiling.
I added semicolons after some compound statements that ended with }, and the frequency of the error report went way down. But I don't see any suspicious code left to change, and I still get 1/3 errors.
Formatting with cmd-T doesn't seem to make a difference. Anyone else see a candidate for causing this?

Code: Select all | TOGGLE FULL SIZE
/* Simplest motor test

*/
#include <Encoder.h>;

int ENA = 10; //connected to Arduino's port (output pwm)
int IN1 = 11; //connected to Arduino's port
int IN2 = 12; //connected to Arduino's port
int ENB = 9; //connected to Arduino's port (output pwm)
int IN3 = 7; //connected to Arduino's port
int IN4 = 8; //connected to Arduino's port
int sensorPin = A0;    // select the input pin for the potentiometer
int ledPin = 13;      // select the pin for the LED
int Enc1A = 2; // interrupt pin for encoder 1
int Enc1B = 4;

int sensorValue = 0;  // variable to store the value coming from the sensor
int useValue = 0;
Encoder wheelNo1(Enc1A, Enc1B);

void setup() {
  // put your setup code here, to run once:
  Serial.begin(57600);           // set up Serial library at 9600 bps
  TCCR1B = (TCCR1B & 0b11111000) | 0X01;  // 0x01:31372.55Hz; 0x02:3891.5Hz; 0x03:980.39 PWM rate, default
  pinMode(ENA, OUTPUT); //output
  pinMode(ENB, OUTPUT);
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);
  pinMode(ledPin, OUTPUT);

  digitalWrite(ENA, LOW);
  digitalWrite(ENB, LOW); //stop driving
  digitalWrite(IN1, LOW);
  digitalWrite(IN2, HIGH); //setting motorA's directon
  digitalWrite(IN3, HIGH);
  digitalWrite(IN4, LOW); //setting motorB's directon

};
void loop() {
  long posWheel1, posWheel2;
  // put your main code here, to run repeatedly:
  sensorValue = analogRead(sensorPin);
  useValue = map(sensorValue, 0, 920, 0, 511) - 255;
  if (useValue < 0) {
    digitalWrite(IN1, LOW);
    digitalWrite(IN2, HIGH);
  }
  else {
    digitalWrite(IN1, HIGH);
    digitalWrite(IN2, LOW);
  };
  posWheel1 = wheelNo1.read();
  Serial.print("Wheel1="); Serial.print(posWheel1);
  Serial.print("Pot= "); Serial.print(sensorValue); Serial.print(" use= "); Serial.println(useValue);

  analogWrite(ENA, abs(useValue)); //start driving motorA
  analogWrite(ENB, 255); //start driving motorB

  // if a character is sent from the serial monitor,
  // reset both back to zero.
  if (Serial.available()) {
    Serial.read();
    Serial.println("Reset encoders to zero");
    wheelNo1.write(0);
  }
};

DaveGadgeteer
 
Posts: 7
Joined: Thu Jan 07, 2016 8:07 pm

Re: Script error on tutorial #1 How Blink Works

by franklin97355 on Sun Nov 27, 2016 1:43 am

Set the compiler to verbose in the preferences and post the output.

franklin97355
 
Posts: 21087
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Script error on tutorial #1 How Blink Works

by DaveGadgeteer on Sun Nov 27, 2016 3:26 am

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.6.11 (Mac OS X), Board: "Arduino Nano, ATmega328"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/dbg/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/dbg/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/dbg/Dropbox/Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10611 -build-path /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/dbg/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino6 -prefs=runtime.tools.avr-gcc.path=/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2 -verbose /Users/dbg/Dropbox/Arduino/Motor speed control tests/Simplest_motor_test/Simplest_motor_test.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/dbg/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/dbg/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/dbg/Dropbox/Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10611 -build-path /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/dbg/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino6 -prefs=runtime.tools.avr-gcc.path=/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2 -verbose /Users/dbg/Dropbox/Arduino/Motor speed control tests/Simplest_motor_test/Simplest_motor_test.ino
Using board 'nano' from platform in folder: /Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15
Using core 'arduino' from platform in folder: /Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15
Detecting libraries used...
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/cores/arduino" "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/variants/eightanaloginputs" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/sketch/Simplest_motor_test.ino.cpp" -o "/dev/null"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/cores/arduino" "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/variants/eightanaloginputs" "-I/Users/dbg/Dropbox/Arduino/libraries/Encoder" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/sketch/Simplest_motor_test.ino.cpp" -o "/dev/null"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/cores/arduino" "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/variants/eightanaloginputs" "-I/Users/dbg/Dropbox/Arduino/libraries/Encoder" "/Users/dbg/Dropbox/Arduino/libraries/Encoder/Encoder.cpp" -o "/dev/null"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/cores/arduino" "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/variants/eightanaloginputs" "-I/Users/dbg/Dropbox/Arduino/libraries/Encoder" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/sketch/Simplest_motor_test.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/cores/arduino" "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/variants/eightanaloginputs" "-I/Users/dbg/Dropbox/Arduino/libraries/Encoder" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/sketch/Simplest_motor_test.ino.cpp" -o "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/cores/arduino" "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/variants/eightanaloginputs" "-I/Users/dbg/Dropbox/Arduino/libraries/Encoder" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/sketch/Simplest_motor_test.ino.cpp" -o "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/sketch/Simplest_motor_test.ino.cpp.o"
Compiling libraries...
Compiling library "Encoder"
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/libraries/Encoder/Encoder.cpp.o
Compiling core...
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/cores/arduino" "-I/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/variants/eightanaloginputs" "/Users/dbg/Library/Arduino15/packages/arduino/hardware/avr/1.6.15/cores/arduino/wiring_pulse.S" -o "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_pulse.S.o"
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/WInterrupts.c.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/hooks.c.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring.c.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_analog.c.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_digital.c.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_pulse.c.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_shift.c.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/CDC.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial0.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial1.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial2.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial3.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/IPAddress.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/PluggableUSB.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/Print.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/Stream.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/Tone.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/USBCore.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/WMath.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/WString.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/abi.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/main.cpp.o
Using previously compiled file: /var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/new.cpp.o
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_pulse.S.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/WInterrupts.c.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/hooks.c.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring.c.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_analog.c.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_digital.c.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_pulse.c.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/wiring_shift.c.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/CDC.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial0.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial1.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial2.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/HardwareSerial3.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/IPAddress.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/PluggableUSB.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/Print.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/Stream.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/Tone.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/USBCore.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/WMath.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/WString.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/abi.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/main.cpp.o"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc-ar" rcs  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/new.cpp.o"
Linking everything together...
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/Simplest_motor_test.ino.elf" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/sketch/Simplest_motor_test.ino.cpp.o" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/libraries/Encoder/Encoder.cpp.o" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/core/core.a" "-L/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp" -lm
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/Simplest_motor_test.ino.elf" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/Simplest_motor_test.ino.eep"
"/Users/dbg/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-objcopy" -O ihex -R .eeprom  "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/Simplest_motor_test.ino.elf" "/var/folders/tf/vvl9lyw55958d6_0pf3vxkjh0000gn/T/buildd34172068223fd23302fda977d362028.tmp/Simplest_motor_test.ino.hex"
failed MSpanList_Insert 0x312908 0x5ee24294f109 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x2cb1e0, 0x312908)
   /usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Alloc(0x2cad60, 0x4, 0x10000000036, 0xf989)
   /usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x2d5358, 0xc208131348)
   /usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x30c000, 0x36, 0x1808126400)
   /usr/local/go/src/runtime/mcache.c:90 +0xa0

goroutine 1 [running]:
runtime.switchtoM()
   /usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc208131178 sp=0xc208131170
runtime.mallocgc(0x2900, 0x158fe0, 0x1, 0x32950)
   /usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0xc208131228 sp=0xc208131178
runtime.newarray(0x158fe0, 0x28be, 0x1af160)
   /usr/local/go/src/runtime/malloc.go:365 +0xc1 fp=0xc208131260 sp=0xc208131228
runtime.makeslice(0x150be0, 0x0, 0x28be, 0x0, 0x0, 0x0)
   /usr/local/go/src/runtime/slice.go:32 +0x15c fp=0xc2081312a8 sp=0xc208131260
io/ioutil.readAll(0x31e3a0, 0xc20803e088, 0x28be, 0x0, 0x0, 0x0, 0x0, 0x0)
   /usr/local/go/src/io/ioutil/ioutil.go:19 +0xc0 fp=0xc208131348 sp=0xc2081312a8
io/ioutil.ReadFile(0xc2081fe880, 0x76, 0x0, 0x0, 0x0, 0x0, 0x0)
   /usr/local/go/src/io/ioutil/ioutil.go:70 +0x1b5 fp=0xc208131410 sp=0xc208131348
arduino.cc/builder/utils.ReadFileToRows(0xc2081fe880, 0x76, 0x0, 0x0, 0x0, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/utils/utils.go:272 +0x77 fp=0xc208131498 sp=0xc208131410
arduino.cc/builder.merge(0xc2081fe880, 0x76, 0xc2081feb00, 0x71, 0xc20809a480, 0x86, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/merge_sketch_with_bootloader.go:131 +0x58 fp=0xc2081315a0 sp=0xc208131498
arduino.cc/builder.(*MergeSketchWithBootloader).Run(0x2c49b0, 0xc208068000, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/merge_sketch_with_bootloader.go:83 +0xac6 fp=0xc208131800 sp=0xc2081315a0
arduino.cc/builder.runCommands(0xc208068000, 0xc208131a98, 0x22, 0x22, 0x1, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:189 +0x139 fp=0xc208131890 sp=0xc208131800
arduino.cc/builder.(*Builder).Run(0xc208131ce0, 0xc208068000, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:124 +0x1227 fp=0xc208131cc0 sp=0xc208131890
arduino.cc/builder.RunBuilder(0xc208068000, 0x0, 0x0)
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:220 +0x49 fp=0xc208131ce8 sp=0xc208131cc0
main.main()
   /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/arduino-builder/main.go:316 +0x171b fp=0xc208131f98 sp=0xc208131ce8
runtime.main()
   /usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc208131fe0 sp=0xc208131f98
runtime.goexit()
   /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc208131fe8 sp=0xc208131fe0
/Applications/Arduino.app/Contents/Java/arduino-builder returned 2
Error compiling for board Arduino Nano.

DaveGadgeteer
 
Posts: 7
Joined: Thu Jan 07, 2016 8:07 pm

Re: Script error on tutorial #1 How Blink Works

by franklin97355 on Sun Nov 27, 2016 2:06 pm

Dave, not sure what is going on but I just compiled the code
Code: Select all | TOGGLE FULL SIZE
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}
and had no errors. If you are using different code please post it.

franklin97355
 
Posts: 21087
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Script error on tutorial #1 How Blink Works

by DaveGadgeteer on Sun Nov 27, 2016 2:48 pm

Nope, same code.
It compiles fine sometimes, but about a third of the time it errors. Seems random, might be ok for 5 verifies in a row, then errors. Might be several errors in a row too, or just one.
Must be an uninitialized variable in the compiler or something. May only happen with certain programs. The frequency decreased when I added semicolons after the final } of an if-else in 2 places

DaveGadgeteer
 
Posts: 7
Joined: Thu Jan 07, 2016 8:07 pm

Re: Script error on tutorial #1 How Blink Works

by franklin97355 on Sun Nov 27, 2016 3:05 pm

Since it happens in the verify the problem is probably the compiler. You might want to try asking in the Arduino.cc forums. Try upgrading to 1.6.12 or downgrading to 1.6.9 as they have proved to be more stable.

franklin97355
 
Posts: 21087
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Script error on tutorial #1 How Blink Works

by DaveGadgeteer on Sun Nov 27, 2016 3:08 pm

Thanks.

DaveGadgeteer
 
Posts: 7
Joined: Thu Jan 07, 2016 8:07 pm

Please be positive and constructive with your questions and comments.