"Error compiling for board" with Blink sketch

Hi everyone,

I'm getting a very strange and quite vague error here that I've never seen before. When I attempt to either compile or upload a sketch (any sketch, even blink), the following happens:

The first time I upload or compile, the sketch is able to compile or successfully upload to the board as evidenced by my first uploading a blank sketch and then uploading blink.

The second time I press upload, I get the following error output from my console (verbose):

C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\hardware -hardware C:\Users\h366217\AppData\Local\Arduino15\packages -tools C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\tools-builder -tools C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr -tools C:\Users\h366217\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\libraries -libraries C:\Users\h366217\Documents\Arduino\libraries -fqbn=SparkFun:apollo3:amap3redboard:svl_baud=921600,loader=sparkfun_svl -vid-pid=1A86_7523 -ide-version=10812 -build-path C:\Users\h366217\AppData\Local\Temp\arduino_build_398506 -warnings=none -build-cache C:\Users\h366217\AppData\Local\Temp\arduino_cache_270339 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -prefs=runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path=C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -verbose C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\examples\01.Basics\Blink\Blink.ino
C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\arduino-builder -compile -logger=machine -hardware C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\hardware -hardware C:\Users\h366217\AppData\Local\Arduino15\packages -tools C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\tools-builder -tools C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr -tools C:\Users\h366217\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\libraries -libraries C:\Users\h366217\Documents\Arduino\libraries -fqbn=SparkFun:apollo3:amap3redboard:svl_baud=921600,loader=sparkfun_svl -vid-pid=1A86_7523 -ide-version=10812 -build-path C:\Users\h366217\AppData\Local\Temp\arduino_build_398506 -warnings=none -build-cache C:\Users\h366217\AppData\Local\Temp\arduino_cache_270339 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -prefs=runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path=C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -verbose C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\examples\01.Basics\Blink\Blink.ino

Using board 'amap3redboard' from platform in folder: C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.29
Using core 'arduino' from platform in folder: C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.29
Detecting libraries used...
Error compiling for board SparkFun RedBoard Artemis.

If I then change, say, to a different COM port, or reduce the baud rate, I am again able to upload the first time but not on subsequent attempts in the same manner as above.

What I have attempted thus far:

Restarting my PC after reinstalling the Arduino IDE after deleting my Arduino15 folder in appdata\local

Using the portable version of the IDE.

Using the Windows 10 App version of the IDE.

Attempting the previous process with both a second Sparkfun Artemis Redboard, and also with a regular Arduino Uno. The results have been identical so far as I can tell.

I am running Arduino in the following environment:

Windows 10 x64 with 32 GB RAM

Arduino IDE version 1.8.12

Has anyone else ever encountered this error before and dealt with it successfully? At this point I am suspecting interference from some other program installed on my work PC.

Thanks for any and all assistance.

EDIT: Solution was to roll back to Arduino 1.8.10. It appears Sparkfun has not updated their libraries for the Redboard yet.

Update.

It appears to me as though the first time the code compiles, it's fine as it is compiling the libraries. However when it compiles the second time, my guess is that it cannot detect the previously compiled libraries.

This confuses me as I have completely reinstalled multiple times. Furthermore everything was working fine a week ago. My hunch is that the issue comes from a program installed between a week ago and today. Investigating this.

Dear AEE297,

I had exactly the same problem and found it very annoying to close and open projects to be able to compile. I missed the line that you returned to version 1.8.10 in your post (wished I had seen it right away) but in the end I had the same idea and it worked for my computer also. I suspect the update from Microsoft Edge to be the problem, that was the only one I did before the problem started.

Cheers Peter