Hey everyone, trying to build the ArduinoISP circuit to build some breadboard arduino's and the code wont compile. Made sure I had the right board selected and such. No luck.
Getting the following error codes:
Arduino: 1.6.5 (Mac OS X), Board: "Arduino Uno"
Build options changed, rebuilding all
Using library default in folder: /Users/Landon/Documents/Arduino/libraries/default (legacy)
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build351163043973098251.tmp/ArduinoISP.cpp -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build351163043973098251.tmp/ArduinoISP.cpp.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/pins_arduino.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build351163043973098251.tmp/default/pins_arduino.c.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/WInterrupts.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build351163043973098251.tmp/default/WInterrupts.c.o
In file included from /Users/Landon/Documents/Arduino/libraries/default/WConstants.h:1:0,
from /Users/Landon/Documents/Arduino/libraries/default/WInterrupts.c:32:
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/avr/include/math.h:426:15: error: expected identifier or '(' before 'double'
extern double round (double __x) __ATTR_CONST__;
^
/Users/Landon/Documents/Arduino/libraries/default/wiring.h:73:26: error: expected ')' before '>=' token
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Error compiling.
All help greatly appreciated!
Open this file using a text editor...
/Users/Landon/Documents/Arduino/libraries/default/wiring.h
Locate this line...
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
Change it to this...
// #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
Try again.
Now I am getting this:
/Users/Landon/Documents/Arduino/libraries/default/Tone.cpp: In function 'int8_t toneBegin(uint8_t)':
/Users/Landon/Documents/Arduino/libraries/default/Tone.cpp:143:67: error: 'digitalPinToPort' was not declared in this scope
timer0_pin_port = portOutputRegister(digitalPinToPort(_pin));
^
/Users/Landon/Documents/Arduino/libraries/default/Tone.cpp:143:68: error: 'portOutputRegister' was not declared in this scope
timer0_pin_port = portOutputRegister(digitalPinToPort(_pin));
^
/Users/Landon/Documents/Arduino/libraries/default/Tone.cpp:144:51: error: 'digitalPinToBitMask' was not declared in this scope
timer0_pin_mask = digitalPinToBitMask(_pin);
I suspect there is a more significant error (file not found) earlier in the list.
Ah sorry had to shorten it due to character limit. Here's the top half:
Arduino: 1.6.5 (Mac OS X), Board: "Arduino Uno"
Using library default in folder: /Users/Landon/Documents/Arduino/libraries/default (legacy)
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/ArduinoISP.cpp -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/ArduinoISP.cpp.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/pins_arduino.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/pins_arduino.c.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/WInterrupts.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/WInterrupts.c.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/wiring.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/wiring.c.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/wiring_analog.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/wiring_analog.c.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/wiring_digital.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/wiring_digital.c.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/wiring_pulse.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/wiring_pulse.c.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/wiring_shift.c -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/wiring_shift.c.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/HardwareSerial.cpp -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/HardwareSerial.cpp.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/main.cpp -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/main.cpp.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/Print.cpp -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/Print.cpp.o
/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/Landon/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Landon/Documents/Arduino/libraries/default -I/Users/Landon/Documents/Arduino/libraries/default/utility /Users/Landon/Documents/Arduino/libraries/default/Tone.cpp -o /var/folders/02/183zpy314ll06v2krpwphqcw0000gn/T/build5476470920754296582.tmp/default/Tone.cpp.o
/Users/Landon/Documents/Arduino/libraries/default/Tone.cpp: In function 'int8_t toneBegin(uint8_t)':
I'm going with "corrupt installation" as the explanation.