Compilation fails

Cr2O7

Member
Hi!
From out of the blue I can't compile any of my sketches. It worked fine a week ago, but not now.

The following appears in the output during the compilation:
"internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:192: MapViewOfFileEx: Attempt to access invalid address."

I am running Arduino IDE v2.3.2 on Windows 10.

Rgds,
Göran
 
Can confirm I also get this occasionally (on windows obviously, because it's mingw throwing a tantrum) and cleaning out the temp files works to get rid of it.
 
I am suddenly getting this error and removing the files in Temp doesn't help. Is there something else that could cause this?

I'm using Arduino IDE
Version: 2.3.4
Date: 2024-12-03T10:03:03.490Z
CLI Version: 1.1.1

Copyright © 2025 Arduino SA

And Teensy 1.59.0
 
Using arduino 2.3.4 and teensy 1.59
I deleted the files in C:\Users\<username>\AppData\Local\arduino\sketches\6DDFA74DF6067593195A812337EE5AD7\pch
and C:\Users\<username>\AppData\Local\Temp\arduino-language-server549245311\build\pch
The files causing problems are the precompiled header files *.gch that end up in both places.
To identify the specific sketch temporary folder (here 6DDFA74DF6067593195A812337EE5AD7) on Windows use the procmon utility and use the filter to locate path ending with .gch then compile again to see which directory it uses.
 
Back
Top