Go Down

Topic: compiling error on promini board (Read 1 time) previous topic - next topic

5546doug

I was able to use the ide 1.8.5 all winter,
now no matter how I change settings, using compile or upload buttons I get the following error code
I have also upgraded to newest board  processor manager 1.6.21.

some file does not exist?

any ideas?

Code: [Select]
Arduino: 1.8.5 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Carolyn & Doug\Documents\Arduino\libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10805 -build-path C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_126183 -warnings=none -build-cache C:\Users\CAROLY~1\AppData\Local\Temp\arduino_cache_706976 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.avrdude.path=C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose C:\Users\Carolyn & Doug\Documents\Arduino\dhw manotick\aug_16_1307_hot_water_timer_may_2018\aug_16_1307_hot_water_timer_may_2018.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Carolyn & Doug\Documents\Arduino\libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10805 -build-path C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_126183 -warnings=none -build-cache C:\Users\CAROLY~1\AppData\Local\Temp\arduino_cache_706976 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.avrdude.path=C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose C:\Users\Carolyn & Doug\Documents\Arduino\dhw manotick\aug_16_1307_hot_water_timer_may_2018\aug_16_1307_hot_water_timer_may_2018.ino
Using board 'pro' from platform in folder: C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
Using core 'arduino' from platform in folder: C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
Detecting libraries used...
"C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-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=10805 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\eightanaloginputs" "C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_126183\sketch\aug_16_1307_hot_water_timer_may_2018.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-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=10805 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\eightanaloginputs" "C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_126183\sketch\aug_16_1307_hot_water_timer_may_2018.ino.cpp" -o "C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_126183\preproc\ctags_target_for_gcc_minus_e.cpp"
exec: "C:\\Users\\Carolyn & Doug\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++": file does not exist
Error compiling for board Arduino Pro or Pro Mini.

DrAzzy

Does this file exist?
C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++

(note that AppData is hidden)


This can indicate a problem with the installation of the avr-gcc package. Maybe also overly aggressive antivirus - but in those cases it generally gets further.

Also, I vaguely recall some issue with weird characters in the path name (the & in your username) causing problems....
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

5546doug

DrAzzy

after  /bin/  there is not avr-g++  file
three others though
/ar
/as
/ld

5546doug


pert

Try doing this:
  • Tools > Board > Boards Manager
  • Wait for downloads to finish
  • Click on "Arduino AVR Boards"
  • From the dropdown menu select "1.6.20"
  • Click "Install"
  • Wait for installation to finish
  • Click "Close"
  • Try compiling again

Although this means downgrading from Arduino AVR Boards 1.6.21 to 1.6.20, the only difference between the two is adding support for the latest official Arduino Nano boards. Since you're using Pro Mini I suspect that won't be a problem.

5546doug


5546doug

Still no luck !

I have re installed 1.8.5 again, and used board avr 1.6.20
following is error code.

I can't find the file avr-g++ on my laptop
where am I going to find this?

Code: [Select]
Arduino: 1.8.5 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Carolyn & Doug\Documents\Arduino\libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10805 -build-path C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_754057 -warnings=none -build-cache C:\Users\CAROLY~1\AppData\Local\Temp\arduino_cache_400450 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Carolyn & Doug\Documents\Arduino\may_1_lake__solar_heater_2018\may_1_lake__solar_heater_2018.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Carolyn & Doug\Documents\Arduino\libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10805 -build-path C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_754057 -warnings=none -build-cache C:\Users\CAROLY~1\AppData\Local\Temp\arduino_cache_400450 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Carolyn & Doug\Documents\Arduino\may_1_lake__solar_heater_2018\may_1_lake__solar_heater_2018.ino
Using board 'pro' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-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=10805 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_754057\sketch\may_1_lake__solar_heater_2018.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\Carolyn & Doug\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-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=10805 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_754057\sketch\may_1_lake__solar_heater_2018.ino.cpp" -o "C:\Users\CAROLY~1\AppData\Local\Temp\arduino_build_754057\preproc\ctags_target_for_gcc_minus_e.cpp"
exec: "C:\\Users\\Carolyn & Doug\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++": file does not exist
Error compiling for board Arduino Pro or Pro Mini.



Should it not be in the download from Arduino.cc ?

pert

This indicates something has gone wrong with your Arduino AVR Boards installation. To make sure it has been fully uninstalled you need to take some drastic action. Be aware this is somewhat advanced and will remove all boards you have installed via Boards Manager:
  • Click the link on the line following File > Preferences > More preferences can be edited directly in the file. This will open the C:\Users\Carolyn & Doug\AppData\Local\Arduino15 folder.
  • Delete all files and folders under the Arduino15 folder except for preferences.txt. Please be very careful when deleting things from your computer. When in doubt, back up!
  • Restart the Arduino IDE

Verify that you can now use your board before reinstalling any packages via Boards Manager.

5546doug

Pert

Just to be clear, after the deleting do I just run the IDE and arduino15 will repopulate,

or

after delete reinstall new copy of 1.8.5 then run

If all the boards are gone how do they get reinstalled?

Thanks

ieee488

If all the boards are gone how do they get reinstalled?

From within the IDE by clicking on Install button.


.

5546doug

missed the last line on your post Pert

Got it, reinstall with board man  using existing copy of 1.8.5

Thanks will try.

pert

If all the boards are gone how do they get reinstalled?
The Arduino IDE comes with a copy of the Arduino AVR Boards hardware package bundled (1.6.20) so you don't actually need to install anything to use your Arduino Pro Mini (which is part of Arduino AVR Boards). There is a newer version of Arduino AVR Boards available (1.6.21) so you will probably get a notification about this. You only need to update to Arduino AVR Boards 1.6.21 if you have a new official Nano board but you should be able to update with no problems. Even so, I recommend at least doing one upload to your Pro Mini before updating just to confirm that at least the bundled version of Arduino AVR Boards works fine.

If you need to install any other hardware packages (Arduino SAMD Boards, which adds support for the Arduino Zero for example) then you do need to reinstall those via Boards Manager (Tools > Board > Boards Manager).

5546doug

So people

I have done the deleting of the files under Arduino15
reinstalled 1.8.5
upgraded to .21
same old error cant fine avr-g++

how do I continue?

pert

Did you test whether it compiled before you installed Arduino AVR Boards 1.6.21?

Go Up