Go Down

Topic: IDE 1.6.0 Error Compiling (Read 393 times) previous topic - next topic

I just upgraded to the 1.6.0 IDE from 0021 and have a very basic error when trying to compile anything.

Anyone seen this?  It appears to be unique to this laptop as I tried it on another and it compiled OK.

Here is the output from "blink".


Arduino: 1.6.0 (Windows 7), Board: "Arduino Micro"

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Micro" -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro C:\Users\Rob\AppData\Local\Temp\build1987345327900460104.tmp\Blink.cpp -o C:\Users\Rob\AppData\Local\Temp\build1987345327900460104.tmp\Blink.cpp.o

Error compiling.

ArneP

I just observed the same problem on my system upgrading from version 1.0.6 to 1.6.0. The new version shows the same problem as described. I'm running Windows 7, 32 bit, and I tried to install using both the zip version and the installer version, but both ends up with the same problem. Version 1.0.6 works still perfect.

C:\Arduino.160/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=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Arduino.160\hardware\arduino\avr\cores\arduino -IC:\Arduino.160\hardware\arduino\avr\variants\standard C:\Users\Arne\AppData\Local\Temp\build34513421954879069.tmp\sketch_feb17a.cpp -o C:\Users\Arne\AppData\Local\Temp\build34513421954879069.tmp\sketch_feb17a.cpp.o
Error compiling.

lee_si

#2
Feb 20, 2015, 12:07 pm Last Edit: Feb 23, 2015, 03:07 am by lee_si
Arduino: 1.6.0 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Blink.ino:18:21: fatal error: Arduino.h: No such file or directory
compilation terminated.
Error compiling.


I've been given this error notice even when I try to compile basic program.


Vicne

#3
Feb 20, 2015, 06:18 pm Last Edit: Feb 20, 2015, 06:18 pm by Vicne
Hi,

Could you try to select an Arduino Uno board and see if it compiles (just compile, no upload of course) ?

If it works, that would be a very similar problem to mine: code that worked on previous versions of IDE now complains that a standard include file is missing - http://forum.arduino.cc/index.php?topic=302080.0

Just my 2 cents

Vicne

lee_si

Hi,

Could you try to select an Arduino Uno board and see if it compiles (just compile, no upload of course) ?

If it works, that would be a very similar problem to mine: code that worked on previous versions of IDE now complains that a standard include file is missing - http://forum.arduino.cc/index.php?topic=302080.0

Just my 2 cents

Vicne
Mine had compile error and Arduino.h missing. Even if I tried to compile arduino given example file I only get the same error result.

snusmumriken

I have a different compilation error (below).  The sketch copiled and ran correctly before downloading the new IDE.  The error seems to relate to a call made from within the SD library, because there is no line in my code that explicitly calls #include <SPI.h>.


Arduino: 1.6.0 (Windows 7), Board: "Arduino Uno"

Build options changed, rebuilding all

Using library SD in folder: C:\Program Files (x86)\Arduino\libraries\SD

Using library Wire in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire



C:\Program Files (x86)\Arduino/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=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\libraries\SD\src -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire C:\Users\JREYNO~1\AppData\Local\Temp\build9217287351094844719.tmp\Ardulog_RTC_JCR_test_program.cpp -o C:\Users\JREYNO~1\AppData\Local\Temp\build9217287351094844719.tmp\Ardulog_RTC_JCR_test_program.cpp.o

C:\Program Files (x86)\Arduino/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=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\libraries\SD\src -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire C:\Program Files (x86)\Arduino\libraries\SD\src\File.cpp -o C:\Users\JREYNO~1\AppData\Local\Temp\build9217287351094844719.tmp\SD\File.cpp.o

C:\Program Files (x86)\Arduino/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=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\libraries\SD\src -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire C:\Program Files (x86)\Arduino\libraries\SD\src\SD.cpp -o C:\Users\JREYNO~1\AppData\Local\Temp\build9217287351094844719.tmp\SD\SD.cpp.o

C:\Program Files (x86)\Arduino/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=10600 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\libraries\SD\src -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire C:\Program Files (x86)\Arduino\libraries\SD\src\utility\Sd2Card.cpp -o C:\Users\JREYNO~1\AppData\Local\Temp\build9217287351094844719.tmp\SD\utility\Sd2Card.cpp.o

C:\Program Files (x86)\Arduino\libraries\SD\src\utility\Sd2Card.cpp:26:17: fatal error: SPI.h: No such file or directory
 #include <SPI.h>

                 ^
compilation terminated.
Error compiling.

snusmumriken

Well I have solved my own issue, anyway.  Seems I now need to explicitly include the SPI library if I'm using the SD library.  Then it compiles without errors.




Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy