cannot access device-specs for 'atmega32u4' expected at 'device-specs/specs-atme

I have tried several times and several methods too fix this issue on my Arduino Software
please help?

The issued is every tie when i try to build my software these messages are coming up
[

avr-g++: error: cannot access device-specs for 'atmega32u4' expected at 'device-specs/specs-atmega32u4'

avr-g++: note: devices natively supported: ata5272 ata5505 ata5702m322 ata5782 ata5790 ata5790n ata5791 ata5795 ata5831 ata6285 ata6286 ata6289 ata6612c ata6613c ata6614q ata6616c ata6617c ata664251 ata8210 ata8510 atmega103 atmega128 atmega128a atmega128rfa1 atmega128rfr2 atmega1280 atmega1281 atmega1284 atmega1284p atmega1284rfr2 atmega16 atmega16a atmega16hva atmega16hva2 atmega16hvb atmega16hvbrevb atmega16m1 atmega16u2 atmega16u4 atmega161 atmega162 atmega163 atmega164a atmega164p atmega164pa atmega165 atmega165a atmega165p atmega165pa atmega168 atmega168a atmega168p atmega168pa atmega168pb atmega169 atmega169a atmega169p atmega169pa atmega256rfr2 atmega2560 atmega2561 atmega2564rfr2 atmega32 atmega32a atmega32c1 atmega32hvb atmega32hvbrevb atmega32m1 atmega32u2 atmega32u4 atmega32u6 atmega323 atmega324a atmega324p atmega324pa atmega325 atmega325a atmega325p atmega325pa atmega3250 atmega3250a atmega3250p atmega3250pa atmega328 atmega328p atmega328pb atmega329 atmega329a atmega329p atmega329pa atmega3290 atmega3290a atmega3290p atmega3290pa atmega406 atmega48 atmega48a atmega48p atmega48pa atmega48pb atmega64 atmega64a atmega64c1 atmega64hve atmega64hve2 atmega64m1 atmega64rfr2 atmega640 atmega644 atmega644a atmega644p atmega644pa atmega644rfr2 atmega645 atmega645a atmega645p atmega6450 atmega6450a atmega6450p atmega649 atmega649a atmega649p atmega6490 atmega6490a atmega6490p atmega8 atmega8a atmega8hva atmega8u2 atmega8515 atmega8535 atmega88 atmega88a atmega88p atmega88pa atmega88pb attiny10 attiny11 attiny12 attiny13 attiny13a attiny15 attiny1634 attiny167 attiny20 attiny22 attiny2313 attiny2313a attiny24 attiny24a attiny25 attiny26 attiny261 attiny261a attiny28 attiny4 attiny40 attiny43u attiny4313 attiny44 attiny44a attiny441 attiny45 attiny461 attiny461a attiny48 attiny5 attiny828 attiny84 attiny84a attiny841 attiny85 attiny861 attiny861a attiny87 attiny88 attiny9 atxmega128a1 atxmega128a1u atxmega128a3 atxmega128a3u atxmega128a4u atxmega128b1 atxmega128b3 atxmega128c3 atxmega128d3 atxmega128d4 atxmega16a4 atxmega16a4u atxmega16c4 atxmega16d4 atxmega16e5 atxmega192a3 atxmega192a3u atxmega192c3 atxmega192d3 atxmega256a3 atxmega256a3b atxmega256a3bu atxmega256a3u atxmega256c3 atxmega256d3 atxmega32a4 atxmega32a4u atxmega32c3 atxmega32c4 atxmega32d3 atxmega32d4 atxmega32e5 atxmega384c3 atxmega384d3 atxmega64a1 atxmega64a1u atxmega64a3 atxmega64a3u atxmega64a4u atxmega64b1 atxmega64b3 atxmega64c3 atxmega64d3 atxmega64d4 atxmega8e5 at43usb320 at43usb355 at76c711 at86rf401 at90can128 at90can32 at90can64 at90c8534 at90pwm1 at90pwm161 at90pwm2 at90pwm2b at90pwm216 at90pwm3 at90pwm3b at90pwm316 at90pwm81 at90scr100 at90s1200 at90s2313 at90s2323 at90s2333 at90s2343 at90s4414 at90s4433 at90s4434 at90s8515 at90s8535 at90usb1286 at90usb1287 at90usb162 at90usb646 at90usb647 at90usb82 at94k m3000

avr-g++: note: supported core architectures: avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega2 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny avr1

avr-g++: note: you can provide your own specs files, see http://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html for details

exit status 1
Error compiling for board Arduino/Genuino Micro.

]
Again Please help?

What IDE and version? That error sounds unfamiliar, so I wonder if it's from one of the new incarnations of the IDE.

Arduio IDE Version 1.8.4

Eew. Looks like something awful happened to the compiler and/or libraries.

Uninstall IDE.

Delete C:/users/(your username)/AppData/Arduino15 (note that appdata is a hidden folder) - obv. the arduino15 folder is in a different location on mac/linux; google will tell you where if you're on those.

Reinstall IDE.

Hello-
I have the exact same problem ("error: cannot access device-specs for..."), and no threads on this issue appear to provide a resolution. A little background:

  1. I am running Windows 10
  2. I have been using Arduino 1.6.10 forever with no problems.
  3. I recently installed wxWidgets and mingw. I could not compile wxW and got "g++: error: CreateProcess: No such file or directory" error. The wxW forum seemed to point to possible PATH problems, but this problem was never resolved for me.
  4. I mention this because I went BACK to Arduino to compile existing code that worked fine with the unaltered Arduino install, and I suddenly got the SAME "CreateProcess" error in Arduino. Gee, maybe something in Win10 is messing up both?
  5. Following guidance in this and related threads, I interchangeably and repeatedly either backed up or removed the Arduino15 directory in Users\Glen\AppData\Local (does not exist in Roaming directory), and removed 1.6.10 and reinstalled a fresh 1.8.5 (after each attempt).
  6. I now get the "error: cannot access device-specs for..." error, regardless of which board is selected. All boards have proper specs in device-specs directory. I am just trying to compile the default Blink program in the examples/01.Basics directory of 1.8.5.
  7. A related thread on this subject suggested that the guy reporting this problem found a worm on his computer. I therefore scanned my computer with both Avast and TotalAV, and I have no viruses, worms, etc.
  8. Therefore, this is NOT a problem with the IDE install. This is NOT a problem with the Arduino15 directory. This is NOT a problem with whatever board is selected, since they are all in device-specs.
    Several years ago, I had a different computer with Win7, with both Arduino and wxW/mingw, and had no problems with either Arduino or mingw/wxW. This points to something in Win10 that is messing up both.
  9. Do I need an environment variable for Arduino that is somehow not getting set? Do I need something in (or removed from) PATH that is wrong?

PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Pololu\Maestro\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\IronCAD\2016\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\TDM-GCC-32\bin;C:\TDM-GCC-64\bin;C:\Users\Glen\AppData\Local\Microsoft\WindowsApps;

  1. Do I need to register something in some registry somewhere? Do I need to set permissions on something somewhere?
  2. Could this have to do with the fact that BOTH programs use g++, and they are somehow stepping on each other?
  3. exact verbose error message:

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Glen\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path C:\Users\Glen\AppData\Local\Temp\arduino_build_231726 -warnings=none -build-cache C:\Users\Glen\AppData\Local\Temp\arduino_cache_738028 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Glen\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path C:\Users\Glen\AppData\Local\Temp\arduino_build_231726 -warnings=none -build-cache C:\Users\Glen\AppData\Local\Temp\arduino_cache_738028 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'uno' 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:\Program Files (x86)\Arduino\hardware\tools\avr/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_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Glen\AppData\Local\Temp\arduino_build_231726\sketch\Blink.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/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_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Glen\AppData\Local\Temp\arduino_build_231726\sketch\Blink.ino.cpp" -o "C:\Users\Glen\AppData\Local\Temp\arduino_build_231726\preproc\ctags_target_for_gcc_minus_e.cpp"
avr-g++: error: cannot access device-specs for 'atmega328p' expected at 'device-specs/specs-atmega328p'

avr-g++: note: devices natively supported: ata5272 ...... at90usb82 at94k m3000

avr-g++: note: supported core architectures: avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega2 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny avr1

avr-g++: note: you can provide your own specs files, see http://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html for details

exit status 1
Error compiling for board Arduino/Genuino Uno.

Hi,
Have you updated your boards in the Library Manager in the IDE?

Tom... :slight_smile:

The problem in the origional post was that the wrong type of Arduino was selected in the IDE.
This can happen if you are using rip off clones and you don’t know what type of real Arduino it is ripped off from.

Grumpy_Mike:
The problem in the origional post was that the wrong type of Arduino was selected in the IDE.
This can happen if you are using rip off clones and you don’t know what type of real Arduino it is ripped off from.

Or just (like me) you did buy a genuine product but it’s not clear which settings to use!

I have a genuine Arduino Mega (easy), an Adafruit 5v Pro Trinket (not so easy) and a stand-alone ATTiny chip programmer (works completely different to how the website (and Customer support emails) says it does and I have to refer to the notes I made every flippin’ time...

Plz disregard my post as follows due to I will submit an issue on the appropriate github site.
I'm joining in on this thread - I get the same Arduino-builder error trying to compile for the uno board:

avr-g++: error: cannot access device-specs for ‘atmega328p’ expected at ‘device-specs/specs-atmega328p’

Compiled sketch is to be loaded into the uno by arduino-builder, not the IDE b/c I'm not using a GUI, this machine being a headless server hosting the Arduino for purposes of home automation. At one time, prior to breakage (suspected from package updates), I was using Arduino-Makefile (GitHub - sudar/Arduino-Makefile: Makefile for Arduino sketches. It defines the workflows for compiling code, flashing it to Arduino and even communicating through Serial.), but that project under the present state of the packages now evidently has irreconcilable path/environment problems in my configuration. In my efforts to regain my system's ability to up/download arduino sketches, I'm hoping to get success by switching from Arduino-Makefile to Arduino-builder (GitHub - arduino/arduino-builder: A command line tool for compiling Arduino sketches). Arduino-builder success has been hampered by the error msg shown above. I've already tried to get past this error msg by placing links in various directories for both the device-specs directory as well as the .a files associated with the spec files.

System:

Ubuntu 1604 CLI (no gui, but in hopes of getting past this error I did install Arduino IDE 1.8.5 from https://github.com/arduino/Arduino/releases/download/1.8.5/Arduino-1.8.5.tar.xz)

Arduino-builder was installed using the "go" script for that purpose.

Any thoughts from you Linux CLI users? Thank you!