Recipe.preproc.macros pattern is missing Error compiling for board Arduino Uno

I just installed Arduino IDE 1.8.19 on a laptop running Windows 11. When I compile Blink for an Arduino Uno, I get the full error shown at the bottom.

When I installed Arduino IDE 2.3.2 or 2.3.6, it does not open. I get a pulsing icon.

None of the above has ever happened to me in the last few years. Do you know what is the problem?


Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\mlowe\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\mlowe\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\mlowe\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10819 -build-path C:\Users\mlowe\AppData\Local\Temp\arduino_build_172132 -warnings=none -build-cache C:\Users\mlowe\AppData\Local\Temp\arduino_cache_3371 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -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 -hardware C:\Users\mlowe\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\mlowe\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\mlowe\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10819 -build-path C:\Users\mlowe\AppData\Local\Temp\arduino_build_172132 -warnings=none -build-cache C:\Users\mlowe\AppData\Local\Temp\arduino_cache_3371 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'uno' from platform in folder: C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\mlowe\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
recipe.preproc.macros pattern is missing
Error compiling for board Arduino Uno.

Corrupted or incomplete board package (platform) installation perhaps. Using board manager remove the AVR board package and then re-install it. Wait for uninstall to complete, then re-install it again.

BTW, as a hint, please could you wrap the error output n [CODE] tags. Makes it easier to read.

Not sure about the problem with 2.3.6, but since the post is in IDE 1.x and the output from 1.8.19, maybe lets Iconcentrate on that version for now.

I suggest that you open a new topic for that in the IDE 2.x section of the forum. In that new topic you can post the results of the instructions in IDE not starting after install windows 11 - #5 by ptillisch.

1 Like

I followed the instructions under post #2 and am now able to compile and upload code from IDE 1.8.19 to an Arduino Uno. My laptop is running Windows 11 Enterprise.

For the record, this is what I did. Went to Board Manager. AVR 1.8.6 was installed but there was no uninstall option. So I selected AVR 1.8.5, installed, then upgraded it to 1.8.6.

Regarding the pulsing icon issues with IDE 2.3.6 and 2.3.2, I followed the instructions in post #2 and placed my response in the requested location.

I asked to start a new topic, not to append :slight_smile:

Anyway, I did split your reply there to a new topic.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.