Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

Error compiling for board Pololu A-Star 32U4

I am a bigginer: what is wrong here? How should I correct the problem?

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Oma\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Oma\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Oma\Arduino\libraries -fqbn=pololu-a-star:avr:a-star32U4 -ide-version=10813 -build-path C:\Users\Oma\AppData\Local\Temp\arduino_build_907344 -warnings=none -build-cache C:\Users\Oma\AppData\Local\Temp\arduino_cache_172570 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\Oma\Arduino\2_PIR_Servo_Direction\2_PIR_Servo_Direction.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Oma\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Oma\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Oma\Arduino\libraries -fqbn=pololu-a-star:avr:a-star32U4 -ide-version=10813 -build-path C:\Users\Oma\AppData\Local\Temp\arduino_build_907344 -warnings=none -build-cache C:\Users\Oma\AppData\Local\Temp\arduino_cache_172570 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\Oma\Arduino\2_PIR_Servo_Direction\2_PIR_Servo_Direction.ino
Using board ‘a-star32U4’ from platform in folder: C:\Users\Oma\Documents\ArduinoData\packages\pololu-a-star\hardware\avr\4.0.2
Using core ‘arduino’ from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr
Detecting libraries used…
“C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_A_STAR_32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x1ffb -DUSB_PID=0x2300 “-DUSB_MANUFACTURER=“Pololu Corporation”” "-DUSB_PRODUCT=“Pololu A-Star 32U4"” “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\leonardo” “C:\Users\Oma\AppData\Local\Temp\arduino_build_907344\sketch\2_PIR_Servo_Direction.ino.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Servo.h: [Servo@1.1.6 Servo@1.1.7]
ResolveLibrary(Servo.h)
-> candidates: [Servo@1.1.6 Servo@1.1.7]
“C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_A_STAR_32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x1ffb -DUSB_PID=0x2300 “-DUSB_MANUFACTURER=“Pololu Corporation”” "-DUSB_PRODUCT=“Pololu A-Star 32U4"” “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\leonardo” “-IC:\Users\Oma\Arduino\libraries\Servo\src” “C:\Users\Oma\AppData\Local\Temp\arduino_build_907344\sketch\2_PIR_Servo_Direction.ino.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for PIR.h: [PIR]
ResolveLibrary(PIR.h)
-> candidates: [PIR]
“C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_A_STAR_32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x1ffb -DUSB_PID=0x2300 “-DUSB_MANUFACTURER=“Pololu Corporation”” "-DUSB_PRODUCT=“Pololu A-Star 32U4"” “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\leonardo” “-IC:\Users\Oma\Arduino\libraries\Servo\src” “-IC:\Users\Oma\Arduino\libraries\PIR” “C:\Users\Oma\AppData\Local\Temp\arduino_build_907344\sketch\2_PIR_Servo_Direction.ino.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for …/Generic/DigitalInput.h: []
ResolveLibrary(…/Generic/DigitalInput.h)
-> candidates: []
In file included from C:\Users\Oma\Arduino\2_PIR_Servo_Direction\2_PIR_Servo_Direction.ino:4:0:
Multiple libraries were found for “Servo.h”
C:\Users\Oma\Arduino\libraries\PIR/PIR.h:2:10: fatal error: …/Generic/DigitalInput.h: No such file or directory
Used: C:\Users\Oma\Arduino\libraries\Servo
#include “…/Generic/DigitalInput.h”
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\Servo
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Using library Servo at version 1.1.7 in folder: C:\Users\Oma\Arduino\libraries\Servo
Using library PIR in folder: C:\Users\Oma\Arduino\libraries\PIR (legacy)
exit status 1
Error compiling for board Pololu A-Star 32U4.

A post was merged into an existing topic: Where do I find the pir.h library?