Unable to compile sketches - previously no problem.

If this is a common problem, please accept my apologies, but I have searched the forum and haven't found any previous posts on the topic.

For the last couple of years I have been successfully compiling both the included examples and my own sketches (eventually), but this morning no sketch will compile, not even 'Blink'. This is the error message:

Arduino: 1.6.6 (Mac OS X), Board: "Arduino/Genuino Uno"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/harrythomas/Library/Arduino15/packages" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools "/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/harrythomas/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/harrythomas/Documents/Arduino/libraries" -fqbn=arduino:avr:uno -ide-version=10606 -build-path "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/build276ae289409593500bc5c9a9c0aef537.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/untitled306380889.tmp/sketch_mar20a/sketch_mar20a.ino"
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/harrythomas/Library/Arduino15/packages" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools "/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/harrythomas/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/harrythomas/Documents/Arduino/libraries" -fqbn=arduino:avr:uno -ide-version=10606 -build-path "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/build276ae289409593500bc5c9a9c0aef537.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/untitled306380889.tmp/sketch_mar20a/sketch_mar20a.ino"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/build276ae289409593500bc5c9a9c0aef537.tmp/sketch/sketch_mar20a.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/build276ae289409593500bc5c9a9c0aef537.tmp/sketch/sketch_mar20a.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/build276ae289409593500bc5c9a9c0aef537.tmp/sketch/sketch_mar20a.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/build276ae289409593500bc5c9a9c0aef537.tmp/sketch/sketch_mar20a.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/build276ae289409593500bc5c9a9c0aef537.tmp/sketch/sketch_mar20a.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/harrythomas/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/dz/wt2wdx0s7wv0jl5q8nx8szlw0000gn/T/build276ae289409593500bc5c9a9c0aef537.tmp/sketch/sketch_mar20a.ino.cpp" -o ""
avr-g++: error: missing filename after '-o'
exit status 1
Error compiling.

The problem will probably seem elementary to anyone well versed in what happens under the bonnet, but I am totally confused, so any help will be gratefully received.

I am running Arduino 1..6.6 on an iMac (mid 2011) OS10.11.3

The problem is caused by using Arduino AVR Boards 1.6.10 with Arduino IDE 1.6.6, they are incompatible. The solution is to either:

  • Use Arduino IDE 1.6.7 or 1.6.8
  • Install Arduino AVR Boards 1.6.8(due to a bug you can't go back to using 1.6.9) by: Tools > Board > Boards Manager... > Arduino AVR Boards(click on it) > Select version > 1.6.8 > Install. After this you will continue to get updatable notifications about the more recent Arduino AVR Boards version so you might want to File > Preferences > Check for updates on startup(uncheck) to disable this notification.

Gosh! That was a quick response. Thank you, Pert.

I tried your second option, and all is well. (After I read your post, I remembered that I had updated the boards yesterday when prompted.)

Thanks again - I'm very grateful!

Bramley

First time I've ever seen a forum member with more karma than posts.....

bramley.JPG

Bramley:
Gosh! That was a quick response. Thank you, Pert.

Glad to hear you're back up and running!

JimboZA:
First time I've ever seen a forum member with more karma than posts.....

Good start Bramley! One of those is from me. I set the Karma bar pretty low for people with only a few posts. It's all too common that they don't even bother to come back to see the responses to their post and Bramley even used code tags for console output and stated what they did to solve the problem so this post might help others. It's nice when I can feel that the effort of responding was worthwhile.